ubuntu 11.10 x64 安装oracle 11gR2时碰到的问题及解决方法

INFO: /home/musictom/oracle/product/11.2.0/dbhome_2/bin/genclntsh

INFO: /
INFO: usr
INFO: /
INFO: bin
INFO: /
INFO: ld
INFO: :
INFO:  
INFO: cannot
INFO:  
INFO: find /usr/lib64/libpthread_nonshared.a
collect2: ld returned 1 exit status
genclntsh: Failed to link libclntsh.so.11.1

INFO: make: *** [client_sharedlib] Error 1
解决办法:
sudo mkdir /usr/lib64
ln --s /lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64/libpthread_nonshared.a

 

 

==================================================================

 

NFO: /
INFO: usr
INFO: /
INFO: bin
INFO: /ld: cannot find /usr/lib64/libc_nonshared.a
collect2: ld returned 1 exit status
genclntsh: Failed to link libclntsh.so.11.1

解决办法:
sudo mkdir /usr/lib64
ln --s /lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/libc_nonshared.a

 

==================================================================

INFO: gcc -o /home/musictom/oracle/product/11.2.0/dbhome_2/rdbms/lib/dg4odbc -m64 -L/home/musictom/oracle/product/11.2.0/dbhome_2/rdbms/lib/ -L/home/musictom/oracle/product/11.2.0/dbhome_2/lib/ -L/home/musictom/oracle/product/11.2.0/dbhome_2/lib/stubs/   /home/musictom/oracle/product/11.2.0/dbhome_2/hs/lib/dg4odbc.o          /home/musictom/oracle/product/11.2.0/dbhome_2/rdbms/lib/homts.o          -lhgosh11 -lhggcon11 -lhgosh11  -lagtsh -lpthread -lclntsh   `cat /home/musictom/oracle/product/11.2.0/dbhome_2/lib/sysliblist` -W
INFO: l,-rpath,/home/musictom/oracle/product/11.2.0/dbhome_2/lib -lm    `cat /home/musictom/oracle/product/11.2.0/dbhome_2/lib/sysliblist` -ldl -lm   -L/home/musictom/oracle/product/11.2.0/dbhome_2/lib

INFO: /usr/bin/ld: warning: libaio.so.1, needed by /home/musictom/oracle/product/11.2.0/dbhome_2/lib//libclntsh.so, not found (try using -rpath or -rpath-link)
/home/musictom/oracle/product/11.2.0/dbhome_2/lib//libagtsh.so: undefined reference to `nnfyboot'
collect2: ld returned 1 exit status



解决办法:

#"hsodbc agent" (nnfyboot) link bug solution
export ORACLE_HOME=/home/musictom/oracle/product/11.2.0/dbhome_2
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
ln --s /usr/bin/basename /bin/basename
ln --s $ORACLE_HOME/lib/libclient11.a $ORACLE_HOME/lib/libagtsh.a
$ORACLE_HOME/bin/genagtsh $ORACLE_HOME/lib/libagtsh.so 1.0
 

你可能感兴趣的:(oracle 11g)