码迷,mamicode.com
首页 > 其他好文 > 详细

ogg-./ggsci ./ggsci: error while loading shared libraries: libnnz11.so:

时间:2019-01-28 12:10:42      阅读:279      评论:0      收藏:0      [点我收藏+]

标签:pen   code   pat   path   gre   load   环境   library   ase   

测试环境,安装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_HOME
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
[ogg@enmo ogg]$ env|grep LD_LIBRARY_PATH
LD_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_HOME
ORACLE_HOME=/11.2.0.4/app/oracle/product/11.2.0/db_1
enmo:/11.2.0.4/app/oracle/product/11.2.0/db_1env|grep LD_LIBRARY_PATH
LD_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/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=t2
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/home/ogg/ogg
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

OGG,new

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

 

ogg-./ggsci ./ggsci: error while loading shared libraries: libnnz11.so:

标签:pen   code   pat   path   gre   load   环境   library   ase   

原文地址:https://www.cnblogs.com/lvcha001/p/10329214.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!