Netbeans:加载共享库时出现错误:libucu .so.不能打开共享对象文件:没有这样的文件或目录
Netbeans: error while loading shared libraries: libicuuc.so.50: cannot open shared object file: No such file or directory
我试图在Ubuntu下使用Netbeans c++(7.3)的ICU-Timezone API。
我已经为ICU添加了libraries和include目录。
然后我想执行这个简单的示例代码:
#include <ctime>
#include <stdlib.h>
#include <stdio.h>
#include "DateFormats.h"
#include "NumberFormats.h"
#include <time.h>
#include <unistd.h>
#include <getopt.h>
#include <timezone.h>
using namespace std;
int main(int argc, char **argv) {
cout<<"hello"<<endl;
TimeZone *tz = TimeZone::createTimeZone("America/Los_Angeles");
}
我得到错误
/home/ubuntu/NetBeansProjects/DFC/dist/Debug/GNU-Linux-x86/DFC:加载共享库时出现错误:libicucu .so。无法打开共享目标文件:没有这样的文件或目录
希望你能帮助我!
谢谢Florian
run following command is fine
export LD_LIBRARY_PATH=/usr/local/lib
或者您可以使用vi永久地添加
到文件中 vi ~/.bashrc
相关文章:
- 在QTreeView中仅显示共享驱动器和文件夹
- 将共享库的搜索路径更改为生成文件中提供的 rpath
- 用于构建 cuda .so 文件(共享库)的生成文件
- 共享库 (.so) 没有扩展名的 Linux 可执行文件之间的区别?
- 如何在多写入器情况下对文件支持的共享内存中的大页面出错
- Linux 可执行文件通过 dlopen 在emplace_back崩溃打开共享库
- 内联函数的函数本地静态对象是否在共享对象文件之间共享?
- 我应该安装 .cmake 文件来共享/cmake 还是 lib/cmake?
- C :与多个文件共享变量
- C++跨文件共享的模板专用化定义
- 与从C++到C#的内存映射文件共享链式结构
- Dokan:我应该自己处理文件共享和访问权限吗?
- 如何在 libjingle 中编译 PCP 文件共享
- Linux 中的 C 到 C# (Mono) 内存映射文件/共享内存
- 由2个文件共享的C++变量
- 跨多个.cpp文件共享全局变量(visual studio 2015)
- 初始化两个不同应用程序的cpp文件共享的headerfile中的数组结构
- 为什么跨多个文件共享时不需要用"extern"装饰"const char *"
- c++全局指针被不同的文件共享
- 配置文件共享对象,无需重新编译主程序