解决cannot open shared object file: No such file or 
(2013-01-21 21:37:06)
标签:
it |
分类: coding |
C语言程序调用
1 2 3 4 5 6 7 8 9 10 |
#include #include int main() {
}
|
首先编译
$ gcc -Wall example.c -lgsl -lgslcblas -lm -o example
编译通过,运行:
$ ./example
./example: error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
报错。
解决方法是:
$ sudo ldconfig /usr/local/lib
$ example
J0(5) = -1.775967713143382920e-01
WP-CODEBOX
声明:文章未经说明都是原创,转载请注明: 转载自XiFage's Blog
本文链接地址:
http://xifage.com/cannot-open-shared-object-file-no-such-file-or-directory/
前一篇:C语言:printf的输出格式
后一篇:风热感冒与风寒感冒【转】

加载中…