【发布时间】:2019-12-31 07:49:48
【问题描述】:
在我的 redhat 7.3 VM 中,我尝试为 linux x86_64 安装 oracle 11g r2 (11.2.0.1),但在安装过程中遇到以下错误。
调用 makefile '/home/oracle/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk' 的目标 'client_sharedlib' 时出错。有关详细信息,请参阅“/home/oracle/app/oraInventory/logs/installActions2019-08-27_02-27-28PM.log”。
在日志中,下面是最后几行:
INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:
INFO: /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/genclntsh
INFO: /bin/ld: cannot find -lstdc++_nonshared
collect2: error: ld returned 1 exit status
INFO: genclntsh: Failed to link libclntsh.so.11.1
make: *** [client_sharedlib] Error 1
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 '/home/oracle/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/ins_rdbms.mk'. See '/home/oracle/app/oraInventory/logs/installActions2019-08-27_02-27-28PM.log' for details.
Exception Severity: 1
对于安装先决条件检查,我已经用 yum 安装了所有必需的包,除了以下我无法在 RHEL7 中安装的包:
libaio-0.3.105 (i386) compat-libstdc++-33-3.2.3 (i386)
libaio-devel-0.3.105 (i386)
libgcc-3.4.6 (i386)
libstdc++-3.4.6 (i386)
unixODBC-2.2.11 (i386)
unixODBC-devel-2.2.11 (i386)
pdksh-5.2.14
【问题讨论】:
-
"/bin/ld: 找不到 -lstdc++_nonshared" 并且您无法安装 libstdc++-3.4.6 似乎相关,不是...?为什么您不能安装这些软件包 - 它们不存在于您的存储库中,或者您无法访问任何存储库,或者您只能获取更高版本,或者......其他什么?