博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ogg-./ggsci ./ggsci: error while loading shared libraries: libnnz11.so:
阅读量:6462 次
发布时间:2019-06-23

本文共 2510 字,大约阅读时间需要 8 分钟。

测试环境,安装linux 0gg,解压介质后./ggsci无法使用,提示目录不存在

 

原来是环境变量导致的问题:

 

1.报错现象

[ogg@enmo ogg]$ ./ggsci./ggsci: error while loading shared libraries: libnnz11.so: cannot open shared object file: No such file or directory

2.问题排查

[ogg@enmo ogg]$ ldd ggsci        linux-vdso.so.1 =>  (0x00007fff145da000)        libdl.so.2 => /lib64/libdl.so.2 (0x0000003763e00000)        libgglog.so => /home/ogg/ogg/libgglog.so (0x00007f08f716e000)        libggrepo.so => /home/ogg/ogg/libggrepo.so (0x00007f08f701a000)        libdb-5.2.so => /home/ogg/ogg/libdb-5.2.so (0x00007f08f6d79000)        libicui18n.so.38 => /home/ogg/ogg/libicui18n.so.38 (0x00007f08f6a18000)        libicuuc.so.38 => /home/ogg/ogg/libicuuc.so.38 (0x00007f08f66df000)        libicudata.so.38 => /home/ogg/ogg/libicudata.so.38 (0x00007f08f5703000)        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003764200000)        libxerces-c.so.28 => /home/ogg/ogg/libxerces-c.so.28 (0x00007f08f51eb000)        libantlr3c.so => /home/ogg/ogg/libantlr3c.so (0x00007f08f50d5000)        libnnz11.so => not found        libclntsh.so.11.1 => not found        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003776400000)        libm.so.6 => /lib64/libm.so.6 (0x0000003763a00000)        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003772c00000)        libc.so.6 => /lib64/libc.so.6 (0x0000003763600000)        /lib64/ld-linux-x86-64.so.2 (0x0000003763200000)[ogg@enmo ogg]$ echo $ORACLE_HOME/u01/app/oracle/product/11.2.0/dbhome_1[ogg@enmo ogg]$ echo $LD_LIBRARY_PATH/u01/app/oracle/product/11.2.0/dbhome_1/lib[ogg@enmo ogg]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/lib-bash: cd: /u01/app/oracle/product/11.2.0/dbhome_1/lib: No such file or directory
[ogg@enmo ogg]$ env|grep ORACLE_HOMEORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1[ogg@enmo ogg]$ env|grep LD_LIBRARY_PATHLD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib

 

enmo:/11.2.0.4/app/oracle/product/11.2.0/db_1env|grep ORACLE_HOMEORACLE_HOME=/11.2.0.4/app/oracle/product/11.2.0/db_1enmo:/11.2.0.4/app/oracle/product/11.2.0/db_1env|grep LD_LIBRARY_PATHLD_LIBRARY_PATH=/11.2.0.4/app/oracle/product/11.2.0/db_1/lib:/usr/lib

 

3.调整

OGG,old

export ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1export ORACLE_SID=t2export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/home/ogg/oggexport LD_LIBRARY_PATH=$ORACLE_HOME/lib

OGG,new

export ORACLE_BASE=/11.2.0.4/app/oracleexport ORACLE_HOME=/11.2.0.4/app/oracle/product/11.2.0/db_1

 

转载于:https://www.cnblogs.com/lvcha001/p/10329214.html

你可能感兴趣的文章
[GXOI/GZOI2019]旧词——树链剖分+线段树
查看>>
anroid 广播
查看>>
AJAX POST&跨域 解决方案 - CORS
查看>>
开篇,博客的申请理由
查看>>
Servlet 技术全总结 (已完成,不定期增加内容)
查看>>
[JSOI2008]星球大战starwar BZOJ1015
查看>>
centos 7 部署LDAP服务
查看>>
揭秘马云帝国内幕:马云的野心有多大
查看>>
iOS项目分层
查看>>
一个action读取另一个action里的session
查看>>
IntelliJ IDEA 注册码
查看>>
String字符串的截取
查看>>
DynamoDB Local for Desktop Development
查看>>
用javascript验证哥德巴赫猜想
查看>>
Shell编程-环境变量配置文件
查看>>
[Unity3d]DrawCall优化手记
查看>>
Struts2和Spring MVC的区别
查看>>
理解Javascript参数中的arguments对象
查看>>
p2:千行代码入门python
查看>>
bzoj1106[POI2007]立方体大作战tet*
查看>>