error while loading shared libraries 问题 10C

背景:
centos 6.9 , oracle 11g 。

问题描述:
切换oracle用户,执行 lsnrctl 或者 sqlplus 等命令 ,报错: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory

etc/ld.so.conf 已添加 $ORACLE_HOME/lib 目录

图片说明

        求大神搭救!!

2个回答

默认情况下,编译器只会使用/lib和/usr/lib这两个目录下的库文件,通常通过源码包进行安装时,如果不指定--prefix,会将库安装在/usr/local/lib目录下;当运行程序需要链接动态库时,提示找不到相关的.so库,会报错。也就是说,/usr/local/lib目录不在系统默认的库搜索目录中,需要将目录加进去。

  1、首先打开/etc/ld.so.conf文件

  2、加入动态库文件所在的目录:执行vi /etc/ld.so.conf,在"include ld.so.conf.d/*.conf"下方增加"/usr/local/lib"。

  3、保存后,在命令行终端执行:/sbin/ldconfig -v;其作用是将文件/etc/ld.so.conf列出的路径下的库文件缓存到/etc/ld.so.cache以供使用,因此当安装完一些库文件,或者修改/etc/ld.so.conf增加了库的新搜索路径,需要运行一下ldconfig,使所有的库文件都被缓存到文件/etc/ld.so.cache中,如果没做,可能会找不到刚安装的库。

  经过以上三个步骤,"error while loading shared libraries"的问题通常情况下就可以解决了。

  如果运行应用程序时,还是提示以上错误,那就得确认一下是不是当前用户在库目录下是不是没有可读的权限。像我遇到的问题就是,从别的机子拷贝了一些.so动态库,然后用root权限放到了/usr/local/lib中(普通用户没有对该目录的写权限),然后切换用户运行程序时,始终提示找不到.so库,一直以为是我配置有问题,结果是因为权限原因,那些我用root权限增加到/usr/local/lib中的.so文件对于普通用户而言,是没有访问权限的,所以以普通用户运行程序,当需要链接.so库时,在/usr/local/lib中是查找不到的。

  其实,对于由普通用户自己编译生成的.so库文件,比较好的做法是将这些.so库文件的路径用export指令加入到~/.bash_profile中的LD_LIBRARY_PATH变量中,LD_LIBRARY_PATH是程序运行需要链接.so库时会去查找的一个目录,~/.bash_profile是登陆或打开shell时会读取的文件,这样,每次用户登录时,都会把这些.so库文件的路径写入LD_LIBRARY_PATH,这样就可以正常地使用这些.so库文件了。

qq_34121797
Doutzen丶 感谢回答! 按照你的指导,依次在 /etc/ld.so.conf 加入 /usr/local/lib , 并将此目录权限设置为 777 ,重新ldconfig 。但是切换oracle用户 执行操作 依然报错。
一年多之前 回复

No such file or directory 提示你没有找到这样的目录,两种方式:1、可以通过 创建软链接 2、修改配置文件,但这种你好像试了,不行,可以再去检查一遍

qq_34121797
Doutzen丶 感谢回答! 在 $ORACLE_HOME/lib 目录下 没有libclntsh.so.11.1 这个文件,只有libclntsh.so 这个连接文件,且这个连接文件指向 $ORACLE_HOME/lib/libclntsh.so.11.1 , 是不是没有这个文件导致的?
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
error while loading shared libraries:在线等
昨天安装了QT这个编程软件,不过出现了如下问题:rndesigner: error while loading shared libraries: libQtDesignerComponents.so.4: cannot open shared object file: No such file or directoryrn我在profile(我的是bash)中加入:rnQTDIR=/usr/local/qtrnPATH=$QTDIR/bin:$PATHrnMANPATH=$QTDIR/man:$MANPATHrnLD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH后还是不行阿,rn可以找到bin下的文件,但是找不到库文件,那个so文件我在/usr/local/qt下面看过了,有的.rn请大虾帮帮忙啊,小弟在此谢过了,rn问题解决后马上结帖散分!
error while loading shared libraries:错误
我写了个程序,Makefile文件如下,该程序需要安装osip协议栈,而且我也安装了。rnjnsip:rngcc main.c process.c udp.c register.c MD5.c db.c aut.c -I /usr/include/mysql -I /usr/local/include/osipparser2 -L /usr/local/lib -losipparser2 -L /usr/lib/mysql -lmysqlclient -lpthread -o jnsiprn程序编译没有出现任何问题,生成可执行文件jnsip,但是./jnsipd时,出现了如下错误:rn[root@FC2 jn_osip_526]# ./jnsiprn./jnsip: error while loading shared libraries: libosipparser2.so.3: cannot open shared object file: No such file or directoryrn但是我去了/usr/local/lib下查看了一下确实有libosipparser2.so.3文件啊:rn[root@FC2 lib]# lsrnlibortp.a libortp.so libortp.so.0.0.0 libosip2.la libosip2.so.3 libosipparser2.a libosipparser2.so libosipparser2.so.3.0.0rnlibortp.la libortp.so.0 libosip2.a libosip2.so libosip2.so.3.0.0 libosipparser2.la libosipparser2.so.3 pkgconfigrn不知道问题出现在哪里,还请高手们指教啊!不胜感谢!
cygwin——error while loading shared libraries:?
刚下载安装cygwin,写个hello world不行。。。rn说下我的操作:rn1、开始选择安装在C盘,后来空间不够,放弃,重新安装在E盘rn2、按照教程来写:rn# cdrn 进入了/home/administrator目录,我当前的登陆帐号是administratorrnrn# mkdir sourcern 建立一个叫做source的子目录rnrn# cd sourcern 进入 /home/administrator/sourcernrn# vim hello.crnrn到这里不行了,报错:rn$ vim sourcern/usr/bin/gvim.exe: error while loading shared libraries: ?: cannot open shared ornbject file: No such file or directoryrnrn请问什么原因啊?google了好多,都不行啊???
error while loading shared libraries: libsqlora8-2.3.so.0
GCC编译程序出错rnrnrn[root@licheng ~]# gcc -lsqlora8 ./test.c -o testrn最后一次编译成功,但是执行却出现错误rnrn首先以root用户执行rn[root@licheng ~]# ./test rn./test: error while loading shared libraries: libsqlora8-2.3.so.0: cannot open shared object file: No such file or directoryrnrn再以oracle用户执行rn[oracle@licheng ~]$ ./testrn./test: error while loading shared libraries: libsqlora8-2.3.so.0: cannot open shared object file: No such file or directoryrnrn请教牛人这是怎么回事?rnrnrntest.c内容如下:rn#include rn#include rn#include "sqlora.h"rnstatic CONST char * _defuser="hr/hr@mydata";rnint main(int argc,char **argv)rnrnsqlo_db_handle_t dbh;rnCONST char * cstr = _defuser;rnchar server_version[100];rnif (SQLO_SUCCESS!= sqlo_init(SQLO_OFF,1,100))rnrnprintf("Failed to init libsqlora8\n");rnreturn EXIT_FAILURE;rnrnif (SQLO_SUCCESS != sqlo_connect(&dbh,cstr))rnrnprintf("Cannot login with %s \n",cstr);rnreturn EXIT_FAILURE;rnrnif (SQLO_SUCCESS != sqlo_server_version(dbh,server_version,sizeof(server_version)))rnrnprintf("Failed to get the server version: %s\n", sqlo_geterror(dbh));rnreturn EXIT_FAILURE;rnrnprintf("Connected to:\n%s\n\n", server_version);rnrn
error while loading shared libraries: libjthread-1.2.1.so怎么回事
我已经编译出libjthread-1.2.1.so,但是当运行程序时出现rnerror while loading shared libraries: libjthread-1.2.1.so: cannot open shared object file: No such file or directoryrn请高人指点一下
救命啊。。error while loading shared libraries
我在linux下使用gcc或vi的时候都出现提示:error while loading shared libraries:libdl.so.2 ELF file OS ABI error in shared libraryrn 我查看了下lib/目录下的libdl.so.2文件是连接到libdl-2.3.2.so文件的。我重新下载了libdl-2.3.2.so文件,结果还是不行,重新建立软连接到libdl.SO.2提示连接已经存在,但每次运行GCC编译还是提示error while loading shared libraries:libdl.so.2 ELF file OS ABI error in shared library,运行vi仍然会出现上面的问题,是在搞不定了,高手救命啊!!!rn
error while loading shared libraries: libclntsh.so.11.1 错误!
在centos 6.9 中安装 oracle 11g ,切换oracle用户,执行 lsnrctl 、sqlplus 等操作报错:error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory;rnrn参照网上给出的解决方案,切换root用户, 在 /etc/ld.so.conf 加入 $ORCALE_HOME/lib 目录:rn[img=https://img-bbs.csdn.net/upload/201806/12/1528771235_962760.png][/img]rnrn然后 重新 ldconfig,rnrn切换到 oracle 用户 执行lsnrctl 等操作 问题依然存在。rnrn[img=https://img-bbs.csdn.net/upload/201806/12/1528771487_860335.png][/img]rnrn仔细查看 $ORCALE_HOME/lib 目录下 没有 libclntsh.so.11.1 这个文件,只有 libclntsh.so 连接文件rnrn[img=https://img-bbs.csdn.net/upload/201806/12/1528771655_533305.png][/img]rn实际上 /usr/local/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1 这个文件是没有的。rnrn刚接触linux,不明白其中原理,求大神解惑!~~rnrnrn
error while loading shared libraries: libQtGui.so.4
大家好,小弟在Fedora9下尝试QT4.5.3移植至mini2440的过程最后一步,出现报错:rn./hello: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directoryrn 我使用的是网络文件系统nfs的方式将可执行文件hello复制到开发板中的,lib也同时放入其中。rn环境变量设置是:export QTDIR=/mini2440 rn export PATH=$QTDIR/bin:$PATH rn export LD_LIBRARY_PATH=$QTDIR/lib rn 请高手帮忙看一下!!谢谢了!rn另外这个是hello文件的属性显示:rnhello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped
error while loading shared libraries:libncurses.so.4
error while loading shared libraries:libncurses.so.4 rniplanet web server在linux 7.2下(内核:2.4.7)安装正常,但是到公司后,在linux 8下(内核:Kernel 2.4.18-14)但是在执行#./setup后,出现error while loading shared libraries:libncurses.so.4:Cannot open shared object file.rn说是公共的库没有找到或文件不存在。是我得linux安装有问题么?rn
/sbin/init error while loading shared libraries libm.so.6
使用 QEMU引导 linux kernel:rnqemu-system-mipsel -M malta -kernel ./linux-3.12/vmlinux -hda rootfs.img -append "root=/dev/hda rw rootfs=ext3 rootdelay=3 physmap.enabled=0 console=tty0"rn出现的错误如下:rn/sbin/init: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directoryrn但是 libm.so.6在 rootfs 的 lib下面已经有了:rn$ ls lib/libm* -lrn-rwxr-xr-x 1 root root 1740136 Jan 15 09:36 lib/libm-2.18.sornlrwxrwxrwx 1 root root 9 Jan 16 09:44 lib/libm.so -> libm.so.6rnlrwxrwxrwx 1 root root 12 Jan 16 09:43 lib/libm.so.6 -> libm-2.18.so
错误解决:当前目录下有so,提示 error while loading shared libraries
  真是让人莫名其妙……   ldd查看 ldd gh_main linux-vdso.so.1 => (0x00007ffed294f000) libgh2mqtt.so (0x00007f4475a29000) libgh2mysql.so (0x00007f4475826000) libgh2nvidia.so (0x00007f44755b6000) libgh2ki...
error while loading shared libraries: /lib/libcap.so.1: invalid ELF header
初学linux,我使用的redhat5.2 x86,安装 vsftpd-2.0.5-12.el5.i386.rpm后用 service vsftpd start启动服务出现错误:rnStarting vsftpd for vsftpd: /usr/sbin/vsftpd: error while loading shared libraries: /lib/libcap.so.1: invalid ELF headerrn/etc/rc.d/init.d/functions: line 458: 12590 Segmentation fault /usr/bin/rhgb-client --details=yesrnrn求高手指点,在线等rnrn补充:刚发现用startx进入图形界面也不行了,同样出现错误rn/usr/bin/dbus-launch:error while loading shared libraries: /lib/libcap.so.1: invalid ELF headerrnrngoogle无果,请问应该怎么解决这问题,谢谢!!!
error while loading shared libraries: ../../lib/libcxcore.so: cannot open share
rn[root@wws RobotVision2]# ./RobotVision2 -qwsrn./RobotVision2: error while loading shared libraries: ../../lib/libcxcore.so: cannot open shared object file: No such file or directoryrnrn希望大家帮我看看我的问题在哪里:rn因为不同的板子友善之臂mini2440和天嵌TQ210,弄了三个宿主机,两个Fedora(虚拟机上),一个ubuntu(PC上)。以下三个程序都跑在天嵌210开发板上:rn(1) E盘Fedorarn这里没有出现上述问题,但当时在编译QT时没有加入触摸屏,导致不能触屏,所以就又在F盘重新来了一遍。rnOpencv2.2.0rn [img=https://img-bbs.csdn.net/upload/201402/26/1393409974_576984.png][/img]rn运行Robotvision2时正常,因为触摸屏没驱动起来,当时又重新在F盘开始rn [img=https://img-bbs.csdn.net/upload/201402/26/1393409983_797344.png][/img]rn这是libcxcore.so,在开发板文件系统/lib目录下:rn [img=https://img-bbs.csdn.net/upload/201402/26/1393409989_942320.png][/img]rn这是/etc/profile里的内容:rn [img=https://img-bbs.csdn.net/upload/201402/26/1393409998_95761.png][/img]rn [img=https://img-bbs.csdn.net/upload/201402/26/1393410006_538867.png][/img]rn(2) F盘FedorarnOpencv-2.2.0rnrn [img=https://img-bbs.csdn.net/upload/201402/26/1393410015_216376.png][/img]rn再次运行同一个程序时:只是QTE版本不同,我现在都怀疑这个了,难道我两次编译opencv-arm不一样,我是按照同一个方法编译的,这里出现的问题和下面的ubuntu一样,可关键是在开发板文件系统/lib下的的确确放入了libcxcore!!!如下图:rnrn [img=https://img-bbs.csdn.net/upload/201402/26/1393410022_361840.png][/img]rn[img=https://img-bbs.csdn.net/upload/201402/26/1393410041_321927.png][/img]rn/etc/profile里如下:rn rnrn[img=https://img-bbs.csdn.net/upload/201402/26/1393410046_848892.png][/img]rn(3) ubuntu下(天嵌默认的宿主机•••)rnopencv-2.2.0rn[img=https://img-bbs.csdn.net/upload/201402/26/1393410072_36313.png][/img]rnrn运行程序时:rn[img=https://img-bbs.csdn.net/upload/201402/26/1393410082_974115.png][/img]rn同样的问题,在开发板文件系统里/lib下:有上面所说的库文件:rnrn[img=https://img-bbs.csdn.net/upload/201402/26/1393410090_397665.png][/img]rnrn[img=https://img-bbs.csdn.net/upload/201402/26/1393410097_982105.png][/img]rnrnrnrnrn请大家帮忙指点下,是那里的问题,有些头大。
arm-linux-gnueabihf-gcc: error while loading shared libraries: libstdc++.so.6: c
arm-linux-gnueabihf-gcc -o hello hello.c rnrnarm-linux-gnueabihf-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directoryrnrn在ubuntu14.10 64位的系统上做的,代码没有问题,用gcc编译是可以的,用交叉编译器编译就不行了,环境变量在/etc/profilern文件尾加了export PATH=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin:$PATHrnrn没有问题,在交叉编译器路径下找到了:rn/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/lib/libstdc++.so.6.0.20rnrn但是编译时就是老报错,实在不明白是怎么搞的。
error while loading shared libraries: libntopreport-3.4-pre2.so:cannot open 。。
ntop -u root启动的时候出现下面错误rnntop: error while loading shared libraries: libntopreport-3.4-pre2.so: cannot open shared object file: No such file or directoryrnrn# whereis libntopreport-3.4-pre2.sornlibntopreport-3.4-pre2: /usr/local/lib/libntopreport-3.4-pre2.sornrn/etc/ld.so.conf.d# vim libc.confrn打开这配置文件rn 1 # libc default configurationrn 2 /usr/local/librnrnrnntop是自己make编译的rnrn应该怎么改???3q
while loading shared libraries: libxerces-c.so.28: cannot open shared obje
在编译、链接的时候没有报这种错误!但是当利用TUXEDO启动的时候却出现了这种错误!rn 环境变量都已经设置了?rn 那位大牛能稍微指点一下?不胜感激!
error while loading share libraries: libQtGui.so.4
问题是这样的:rn 我在redhat5.5下安装了Qt4.7.4(诺基亚官方最新版),并别写了一个带界面的小程序,拿到redhat4运行,报错误如标题。rn 但是我的目标还是希望能在redhat4下跑起来。rnrn自我分析原因:rn 因为redhat4下没有安装qt库,所以报错。rnrn解决思路:rn 思路一、qt是否支持像MFC那样的静态编译,将程序用到的库直接编译到程序中,这样话肯定到处可以跑。如果您知道这样的静态编译,请详细告诉我怎么改,成功立马给分。rn 思路二、在redhat4下安装qt3的库,我尝试在redhat4下安装qt4.7——失败。但是qt3的界面库,能支持qt4写的程序吗?如果能,希望能给出qt3库下载的地址。rn
请问sco unix中出错:error while loading shared libraries : libxxx.so: cannot open shared object file
error while loading shared libraries : libxxx.so: cannot open shared object file: No such file or directory
error while loading shared libraries: libcunit.so.1: cannot open shared object f
rn./cunittest: error while loading shared libraries: libcunit.so.1: cannot open shared object file: No such file or directoryrnrnrnMakefilerncunittest:func.c run_test.c test_func.c func.hrn gcc -o cunittest -L/usr/local/lib -lcunit func.c run_test.c test_func.crnrnclean:rn rm -f cunittestrnrnrn说明:rnlibcunit.so这个是CUnit这个单元测试框架带的,rn应该是好用的,CUnit这个网上介绍挺多的,我也是在官网上下的2.1.0版本的.rn为什么执行的时候会报找不到动态库哪,是不是有什么依赖关系??rn我下来的时候cunit编译也是编不过去的,我又自己重下了个automake2.6版本的才编过去,rn现在总算是把我的程序也编过去了,但是执行的时候报加载动态库错误....不知道rn我下一步应该如何调查是啥问题哪??麻烦指点一下.谢谢.
error while loading shared libraries libgio-2.0.so.0:can't shared object file:no
在Linux 执行./qq 是出现错误。rn错误:./qq error while loading shared libraries libgio-2.0.so.0:can't shared object file:no such file or idrectory rn解决方法是什么??
while loading shared libraries:libxerces-c.so.28:cannot open share
在编译、链接的时候没有报这种错误!但是当利用TUXEDO启动这个服务时候却出现了这种错误!rn环境变量都已经设置了?rn那位大牛能稍微指点一下?不胜感激!
安装完 GoAccess以后,运行时候error while loading shared libraries: libGeoIP.so.1
在按照官方说明的步骤在Centos安装完了GoAccess以后,rn执行了rn[code=text]goaccess -f /www/web_logs/huichengwang.cn_access_log-20140708 -a[/code]rn但是却提示说rn[code=text]goaccess: error while loading shared libraries: libGeoIP.so.1: cannot open shared object file: No such file or directory[/code]rn然后我又rn[code=text]locate libGeoIP.so.1[/code]rn返回结果rn[code=text]/root/GeoIP-1.4.8/libGeoIP/.libs/libGeoIP.so.1rn/root/GeoIP-1.4.8/libGeoIP/.libs/libGeoIP.so.1.4.8rn/usr/local/lib/libGeoIP.so.1rn/usr/local/lib/libGeoIP.so.1.4.8[/code]rn然后rn[code=text]vi ld.so.conf[/code]rn追加了/root/GeoIP-1.4.8/libGeoIP/.libs/libGeoIP.so.1,在执行rn[code=text]/sbin/ldconfig[/code]rn没有任何反应。rn最后重新执行rn[code=text]goaccess -f /www/web_logs/huichengwang.cn_access_log-20140708 -a[/code]rn返回结果依然报错。rn请问大侠这个问题怎么解决?rn谢谢了!
更新库,发现error while loading shared libraries: libwebkit-1.0.so.2: cannot open shar
最近在更新webkit库,可以更新完成以后,我按照以往给库增加一个软链接。运行程序,却提示“error while loading shared libraries: libwebkit-1.0.so.2: cannot open shared object file: No such file or directory“rnrn使用ldconfig也不行。库是在/usr/lib/。rn我是这样做软链接的。libwebkit-1.0.so.2.17.3 是新库名。rnln -s libwebkit-1.0.so.2.17.3 libwebkit-1.0.so.2rnrn只要使用以前的库libwebkit-1.0.so.2.14.1 做软链接就好了。哪怕我把libwebkit-1.0.so.2.17.3 改成libwebkit-1.0.so.2.14.1 也不行。rnrn谁能帮我下。
我在装oracle的时候报error while loading shared libraries: libstdc++-libc6.1-1.so.2什么原因
Initializing Java Virtual Machine from /tmp/OraInstall2005-12-26_04-39-43PM/jre/bin/java. Please wait...rn/tmp/OraInstall2005-12-26_04-39-43PM/jre/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directoryrnrn这个是因为文件的问题还是什么设置没有设好rn他找的目录应该是安装的时候自动生成的把rn应该更设置没什么关系把
启动 httpd: /usr/sbin/httpd"error while loading shared libraries:libdb-4.0.s
运行service httpd start 和/etc/rc.d/init.d/httpd start 都报这个错误出来. 求救高手!!
请教:普通用户可执行,sudo 执行却报错error while loading shared libraries
编写的程序 ./SerialFlowTestrn在普通用户下可以运行,但是因为要open串口,所以使用 sudo ./SerialFlowTest,结果此时会报错。rnerror while loading shared libraries: libcJSON.so.1: cannot open shared object file: No such file or directoryrn1.1程序使用QtCreator生成rn[img=https://img-bbs.csdn.net/upload/201712/14/1513259446_158268.png][/img]rnrn1.2.程序目录如下:rn[img=https://img-bbs.csdn.net/upload/201712/14/1513258067_886877.png][/img]rnrn2.在普通用户下可以执行rn[img=https://img-bbs.csdn.net/upload/201712/14/1513257971_627431.png][/img]rnrn3.使用sudo却报错。rn[img=https://img-bbs.csdn.net/upload/201712/14/1513258012_299776.png][/img]rnrn4.找资料时找到这个网页,rn4.1 使用在sudo gedit /etc/ld.so.conf 文件中加入这个目录,就成功了。rn[color=#FF0000]4.2 但是 使用 export 的方式却不成功,修改 .bashrc的方式也不成功。[/color]rn[img=https://img-bbs.csdn.net/upload/201712/14/1513258101_171539.png][/img]rn[color=#FF0000]rn5.问题,请教一下:rn5.1 既然在普通用户下可以执行,那为什么 sudo却不能执行,是有什么原理吗?rn5.2 理解,既然链接库 与 执行程序都在同一个目录下,那应该能够正常执行才对啊?rn5.3奇怪为什么 4.1可以成功,4.2却不能成功?rn5.4奇怪,为什么另一个库libcomlib却不会报这个错误呢??[/color]rnrn6.问题排查rn6.1使用 ldd 命令查看程序涉及的链接库。普通用户下能够找到,使用sudo却找不到,为什么??rn[img=https://img-bbs.csdn.net/upload/201712/14/1513259331_249315.png][/img]rn-------rn我的积分好少啊,得赚啊
视觉SLAM十四讲——9.2特征提取和匹配报错“error while loading shared libraries: xxx.so.x”
找不到共享库的问题,在直接配置ORB-SLAM2的过程中也会出现。 参考:https://stackoverflow.com/questions/12335848/opencv-program-compile-error-libopencv-core-so-2-4-cannot-open-shared-object-f https://blog.csdn.net/qq_25653577/art...
求助error while loading shared libraries: libdb2.so.1: wrong ELF class: ELFCLASS32
求助error while loading shared libraries: libdb2.so.1: wrong ELF class: ELFCLASS32rn,我已经用了/db2/lib64的类库了,编译通过,运行的时候报了这个错误。
/bin/sh: error while loading shared libraries: /usr/local/arm/2.95.3/arm-linux/l
/bin/sh: error while loading shared libraries: /usr/local/arm/2.95.3/arm-linux/lib/libdl.so.2: ELF file OS ABI invalidrn 这是 安装QT环境时出现错误 应该怎么改啊
redhat 安装MySQL报错:error while loading shared libraries: libnuma.so.1 急求!Linux大神帮
[img=https://img-bbs.csdn.net/upload/201807/02/1530544381_914579.jpg][/img]rn显示这个错误。rn搜索解决方法后:显示下图情况。哪位大神知道这是怎么回事?rn[img=https://img-bbs.csdn.net/upload/201807/02/1530544491_476510.jpg][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/32.gif][/img]
undefined reference to `main' & " error while loading shared libraries: "大家见过这个错误吗? MM 求助啦!
我编的程序要用到一个头文件和共享库rnInclude the client header file at /usr/local/globus-4/include/globus_rls_client.h.rnrnLink to the client shared library atrn/usr/local/globus-4/lib/libglobus_rls_client_gcc32dbgpthrrnrn而且我确信,在这些路径下,头文件和库也确实存在。rnrnrn具体在/usr/local/globus-4/lib/下面是这样的,有好多连接文件:rnrnlrwxrwxrwx 1 globus globus 42 5ÔÂ 17 21:25 libglobus_rls_client_gcc32dbgpthr.so -> libglobus_rls_client_gcc32dbgpthr.so.0.0.0rnrnlrwxrwxrwx 1 globus globus 42 5ÔÂ 17 21:25 libglobus_rls_client_gcc32dbgpthr.so.0 -> libglobus_rls_client_gcc32dbgpthr.so.0.0.0rnrn-rwxr-xr-x 1 globus globus 158608 5ÔÂ 17 21:25 libglobus_rls_client_gcc32dbgpthr.so.0.0.0rnrn现在我的程序已经简化到只有一个main()函数了:rn#include rn#include rn#define __USE_XOPEN /* Stops compiler warning on linux */rn#include rn#include "globus_rls_client.h"rnrnstatic globus_module_descriptor_t *modules[] = rn GLOBUS_COMMON_MODULE,rn GLOBUS_IO_MODULE,rn GLOBUS_RLS_CLIENT_MODULE,rn;rnrn#define NMODS (sizeof(modules) / sizeof(globus_module_descriptor_t *))rnrnstatic void cleanexit(int s);rnstatic globus_rls_handle_t *h = NULL;rnstatic char *rlsserver="rlsn://192.168.10.3";rnrnint main()rnrnrn int rc;rn globus_result_t r;rn char errmsg[MAXERRMSG];rn int i;rnrnrn/*activate the modules!*/rn /*for (i = 0; i < NMODS; i++)rn if ((rc = globus_module_activate(modules[i])) != GLOBUS_SUCCESS) rn fprintf(stderr, "globus_module_activate(%d): %d\n", i, rc);rn exit(1);rn */rnrnrn printf("Connecting to %s\n", rlsserver);rn /*if ((r = globus_rls_client_connect(rlsserver, &h)) != GLOBUS_SUCCESS) rn globus_rls_client_error_info(r, NULL, errmsg, MAXERRMSG, GLOBUS_FALSE);rn fprintf(stderr, "%s: %s\n", rlsserver, errmsg);rn cleanexit(1);rn */rnrnrn printf("All tests completed successfully\n");rn /*cleanexit(0);*/rnrnrn我的Makefile是这样写的:rnrnRlsTry:tryrls.orn gcc -I /usr/local/globus-4/include/gcc32dbgpthr -L/usr/local/globus-4/lib -lglobus_rls_client_gcc32dbgpthr -o tryrls.ornrntryrls.o:tryrls.crn gcc -I /usr/local/globus-4/include/gcc32dbgpthr -L/usr/local/globus-4/lib -lglobus_rls_client_gcc32dbgpthr -c tryrls.crnrnclean:rn rm *.o RlsTryrnrnmake的结果是:rnrn/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In function `_start':rn../sysdeps/i386/elf/start.S:77: undefined reference to `main'rncollect2: ld returned 1 exit statusrnrnrn而我直接敲命令时:gcc -I /usr/local/globus-4/include/gcc32dbgpthr -L/usr/local/globus-4/lib -lglobus_rls_client_gcc32dbgpthr -o tryrls tryrls.crnrn编译通过,但是运行 ./tryrls时:却出现如下的话:rn./tryrls: error while loading shared libraries: libglobus_rls_client_gcc32dbgpthr.so.0: cannot open shared object file: No such file or directoryrnrnrn我实在是不知该如何解决这个问题,麻烦各位帮帮忙,谢啦!rn
error while loading shared libraries: /usr/lib/a.so: ELF file OS ABI invalid
我使用的系统是[红帽企业Linux.5.5.for.x86_64.桌面版].[i.Studio]rhel-client-5.5-x86_64-dvd.iso,64位的,同样的程序在ubuntu 64位下面运行成功,但是在小红帽系统下编译可以成功,运行时提示error while loading shared libraries: /usr/lib/a.so: ELF file OS ABI invalid。查了下资料,觉得有可能是两个系统下的ABI不同,可能需要在出问题的系统上重新编译库a.so。不知道有没有人遇到过这样的问题并解决了的。rn rn 贴出下面的一些信息。rn 在出现问题的系统上其他库的ELF头信息:rnELF Header:rn Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00rn Class: ELF32rn Data: 2's complement, little endianrn Version: 1 (current)rn OS/ABI: UNIX - System Vrn ABI Version: 0rn Type: DYN (Shared object file)rn Machine: Intel 80386rn Version: 0x1rn Entry point address: 0xa609a0rn Start of program headers: 52 (bytes into file)rn Start of section headers: 246868 (bytes into file)rn Flags: 0x0rn Size of this header: 52 (bytes)rn Size of program headers: 32 (bytes)rn Number of program headers: 5rn Size of section headers: 40 (bytes)rn Number of section headers: 29rn Section header string table index: 28rnrn下面的是出现问题的a.so的ELF头信息。rnMagic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00rn Class: ELF64rn Data: 2's complement, little endianrn Version: 1 (current)rn OS/ABI: UNIX - Linuxrn ABI Version: 0rn Type: DYN (Shared object file)rn Machine: Advanced Micro Devices X86-64rn Version: 0x1rn Entry point address: 0x2d10rn Start of program headers: 64 (bytes into file)rn Start of section headers: 108496 (bytes into file)rn Flags: 0x0rn Size of this header: 64 (bytes)rn Size of program headers: 56 (bytes)rn Number of program headers: 6rn Size of section headers: 64 (bytes)rn Number of section headers: 29rn Section header string table index: 26rnrnrn其中OS/ABI这项不同,不知道是否和这个相关。rnrn求高手回复。
[紧急求助]libclntsh.so.10.1问题error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file o
=======rnoracle版本:rn=======rnoracle10g_linux_10201rnrn=====rn故障现象:rn=====rn以root用户运行某程序时,出现如下提示(已经将oracle的环境变量增至root后面)rnrn[root@SAC-CAOFEIDIAN shlr1000]# ./shlr_b12_sp4 rn./shlr_b12_sp4: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directoryrnrn======rn用户环境变量:rn======rn[root@SAC-CAOFEIDIAN ~]# cat .bash_profilern# .bash_profilernrn# Get the aliases and functionsrnif [ -f ~/.bashrc ]; thenrn . ~/.bashrcrnfirnrn# User specific environment and startup programsrnrnPATH=$PATH:/usr/local/mysql/bin:$HOME/binrnrnexport PATHrnunset USERNAMErnrn# User specific environment and startup programsrnrnPATH=$PATH:$HOME/binrnrnexport PATHrnPATH=$PATH:/usr/local/mysql/bin:$HOME/binrnexport PATHrnunset USERNAMErnexport ORACLE_BASE=/opt/oraclernexport ORACLE_SID=sacrnexport ORACLE_HOME=$ORACLE_BASE/product/sacrnexport TNS_ADMIN=$ORACLE_HOME/network/adminrnexport ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/datarnexport PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_BASE/OPatch:/sbinrn#export LANG=en_USrn#export LC_ALL=en_USrn export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/ctx/librnexport CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlibrnexport THREADS_FLAG=nativernumask 022rnexport LANG="zh_CN.gb2312"rnexport LANGUAGE="zh_CN.gb2312"
proc时错误:error while loading shared libraries.....
我的是redhat9+oracle9rn在进行proc test.pc时,出现以下错误:rnerror while loading shared libraries: libclntsh.so.9.0: cannot open .....rn是什么造成的呢
How To Write Shared Libraries
how to write shared library 一篇关于编写动态库的好文档 。
ffmpeg2.1.3 shared libraries
android builded ffmpeg2.1.3 to shared libraries
An error occurred while loading `/home/.emacs':
每次打开emacs都有这样的警告:rnWarning (initialization): An error occurred while loading `/home/simon/.emacs':rnrnerror: Font `-microsoft-MS Reference Sans Serif-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1' is not definedrnrnTo ensure normal operation, you should investigate and remove therncause of the error in your initialization file. Start Emacs withrnthe `--debug-init' option to view a complete error backtrace.rnrnemacs --debug-init启动后信息:rnDebugger entered--Lisp error: (error "Font `-microsoft-MS Reference Sans Serif-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1' is not defined")rn modify-frame-parameters(# ((font . "-microsoft-MS Reference Sans Serif-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1")))rn set-default-font("-microsoft-MS Reference Sans Serif-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1")rn eval-buffer(# nil "/home/simon/.emacs" nil t) ; Reading at buffer position 103rn load-with-code-conversion("/home/simon/.emacs" "/home/simon/.emacs" t t)rn load("~/.emacs" t t)rn #[nil "\205\264rnrnrn请问大神这种情况应该怎么解决?谢谢rn
编译openWR linux时出现一个xz: error while loading shared libraries错误,请问该如何解决
具体错误信息如下:rnXZKERN arch/arm/boot/compressed/piggy.xzkernrn SHIPPED arch/arm/boot/compressed/lib1funcs.Srn SHIPPED arch/arm/boot/compressed/ashldi3.Srnxz: error while loading shared libraries: liblzma.so.5: cannot open shared object file: No such file or directoryrn AS arch/arm/boot/compressed/lib1funcs.ornmake[7]: *** [arch/arm/boot/compressed/piggy.xzkern] Error 1rnmake[7]: *** Waiting for unfinished jobs....rn AS arch/arm/boot/compressed/ashldi3.ornmake[6]: *** [arch/arm/boot/compressed/vmlinux] Error 2rnmake[5]: *** [uImage] Error 2
关于共享库(Shared libraries)设置问题
Redhat linux 7.0 + WAS 5.0 rn应用程序为strutsrn添加了一个共享库rn/home/test/webbank/avalon-framework-4.1.4.jarrn/home/test/webbank/bspdf.jarrn/home/test/webbank/bsxml.jarrn/home/test/webbank/certj.jararn/home/test/webbank/commons-beanutils.jarrn/home/test/webbank/commons-collections.jarrn/home/test/webbank/commons-configuration-1.0-dev-3.20030607.194155.jarrn/home/test/webbank/commons-dbcp-1.1.jarrn/home/test/webbank/commons-digester.jarrn/home/test/webbank/commons-fileupload.jarrn/home/test/webbank/commons-lang.jarrn/home/test/webbank/commons-logging.jarrn/home/test/webbank/commons-pool-1.1.jarrn/home/test/webbank/db2jcc.jarrn/home/test/webbank/frash_validator_1.0.0.jarrn/home/test/webbank/jakarta-oro.jarrn/home/test/webbank/jakarta-regexp-1.3.jarrn/home/test/webbank/jcs-20030822.182132.jarrn/home/test/webbank/jdbc2_0-stdext.jarrn/home/test/webbank/log4j-1.2.8.jarrn/home/test/webbank/stratum-1.0-b3.jarrn/home/test/webbank/struts.jarrn/home/test/webbank/torque-3.1.jarrn/home/test/webbank/village-2.0-dev-20030825.jarrn/home/test/webbank/xerces.jarrnrnrn同时在application中添加了library但是不起作用,好像没有设置共享库的rn
linux 启动 错误:/sbin/init:errors while loading shared librar
软件:Linux as5rn硬件:DELL 1950rn在SSH工具PUTTY里,拷贝时不小心,执行了#libdl.so.2 -> libdl-2.5.so命令,现在导致系统启动错误,大致意思如下:rn/sbin/init:errors while loading shared libraries:/lib/libdl.so.2:file too shortrnkernel panic - not syncing:attempted to kill init!rn不知道有没有碰到过此类问题,该如何解决,期盼高手指点!分外感激!rn
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数