ubuntu 16.04 LTS 安装ORACLE11g

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
wdliu
帖子: 4
注册时间: 2016-12-18 22:49

ubuntu 16.04 LTS 安装ORACLE11g

#1

帖子 wdliu » 2016-12-18 22:57

参考网上多份安装教程后安装过程中仍报:
Error in invoking target 'client_sharedlib' of makefile '/opt/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk'.错误

试了多种办法仍不能retry,感谢有解决了的大神帮忙指导下。
(ubuntu :32位;oracle 32位)
onlylove
论坛版主
帖子: 5214
注册时间: 2007-01-14 16:23

Re: ubuntu 16.04 LTS 安装ORACLE11g

#2

帖子 onlylove » 2016-12-18 23:16

没log 没 log 没log
wdliu
帖子: 4
注册时间: 2016-12-18 22:49

Re: ubuntu 16.04 LTS 安装ORACLE11g

#3

帖子 wdliu » 2016-12-18 23:33

onlylove 写了:没log 没 log 没log
INFO: ----------------------------------
INFO:

INFO: /opt/oracle/product/11.2.0/dbhome_1/bin/genclntsh

INFO: /opt/oracle/product/11.2.0/dbhome_1/bin/genclntsh: 301: /opt/oracle/product/11.2.0/dbhome_1/bin/genclntsh: gcc: not found
genclntsh: Failed to link libclntsh.so.11.1

INFO: make: *** [client_sharedlib] Error 127

INFO: /opt/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk:36: recipe for target 'client_sharedlib' failed

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'client_sharedlib' of makefile '/opt/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk'. See '/opt/orainventory/logs/installActions2016-12-18_04-30-37AM.log' for details.
Exception Severity: 1
INFO: Building Client Shared Libraries
INFO: Building Client Shared Libraries
onlylove
论坛版主
帖子: 5214
注册时间: 2007-01-14 16:23

Re: ubuntu 16.04 LTS 安装ORACLE11g

#4

帖子 onlylove » 2016-12-18 23:40

INFO: /opt/oracle/product/11.2.0/dbhome_1/bin/genclntsh: 301: /opt/oracle/product/11.2.0/dbhome_1/bin/genclntsh: gcc: not found
你确定你包装全了?
wdliu
帖子: 4
注册时间: 2016-12-18 22:49

Re: ubuntu 16.04 LTS 安装ORACLE11g

#5

帖子 wdliu » 2016-12-18 23:49

onlylove 写了:
INFO: /opt/oracle/product/11.2.0/dbhome_1/bin/genclntsh: 301: /opt/oracle/product/11.2.0/dbhome_1/bin/genclntsh: gcc: not found
你确定你包装全了?
oracle@ubuntu:/usr/lib64$ sudo apt-get install gcc
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
gcc 已经是最新版 (4:5.3.1-1ubuntu1)。
下列软件包是自动安装的并且现在不需要了:
g++-5 g++-5-multilib lib64stdc++-5-dev libstdc++-5-dev libx32stdc++-5-dev
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
oracle@ubuntu:/usr/lib64$
已经按照教程每个包都安装了。
onlylove
论坛版主
帖子: 5214
注册时间: 2007-01-14 16:23

Re: ubuntu 16.04 LTS 安装ORACLE11g

#6

帖子 onlylove » 2016-12-18 23:57

gcc -v看看,uname -a再看看
wdliu
帖子: 4
注册时间: 2016-12-18 22:49

Re: ubuntu 16.04 LTS 安装ORACLE11g

#7

帖子 wdliu » 2016-12-19 0:08

onlylove 写了:gcc -v看看,uname -a再看看
gcc -v 已经试过了是有值的,uname -a 也试过了是32位的。
oracle@ubuntu:~/product/11.2.0/dbhome_1/rdbms/lib$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/5/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
oracle@ubuntu:~/product/11.2.0/dbhome_1/rdbms/lib$ uname -a
Linux ubuntu 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux
oracle@ubuntu:~/product/11.2.0/dbhome_1/rdbms/lib$


刚才又看了下最近的日志,如下:
INFO: ----------------------------------
INFO:
INFO: /opt/oracle/product/11.2.0/dbhome_1/bin/genclntsh
INFO: /usr/bin/ld: /opt/oracle/product/11.2.0/dbhome_1/lib/libclient11.a(kputx.o): direct GOT relocation R_386_GOT32 against `kpuhhalo' without base register can not be used when making a shared object
/usr/bin/ld: final link failed: Bad value
INFO: collect2: error: ld returned 1 exit status
INFO: genclntsh: Failed to link libclntsh.so.11.1
INFO: /opt/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk:36: recipe for target 'client_sharedlib' failed
INFO: make: *** [client_sharedlib] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
onlylove
论坛版主
帖子: 5214
注册时间: 2007-01-14 16:23

Re: ubuntu 16.04 LTS 安装ORACLE11g

#8

帖子 onlylove » 2016-12-19 20:41

今天白天试了下,你那个错误的话,应该是发生在link binary阶段,你贴的log貌似都不对,至于你说的那个错误,网上有说两个的,有说4个的,我遇到了不止4个,总之就是要修改$ORACLE_HOME/下面的各个功能的lib里面的ins_xxx.mk文件,http://tutorialforlinux.com/2016/03/28/ ... asy-guide/
这个网站里面有很多方法,你可以慢慢试
回复