【问题标题】:Error in invoking target 'client_sharedlib' of makefile调用 makefile 的目标“client_sharedlib”时出错
【发布时间】: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 似乎相关,不是...?为什么您不能安装这些软件包 - 它们不存在于您的存储库中,或者您无法访问任何存储库,或者您只能获取更高版本,或者......其他什么?

标签: linux oracle


【解决方案1】:

Linux x86-64 上的 Oracle Linux 7 和 Red Hat Enterprise Linux 7 支持

从 Oracle 数据库 11g 第 2 版 (11.2.0.4)、Oracle Linux 7 开始 Linux x86-64 支持 Red Hat Enterprise Linux 7。Oracle® Database Release Notes 11g Release 2 (11.2) for Linux

【讨论】:

    【解决方案2】:
    "Exception String: Error in invoking target 'client_sharedlib' of makefile 
    '/u01/app/oracle/product/19.0.0/dbhome_1/rdbms/lib/ins_rdbms.mk'. 
    See '/u01/app/oraInventory/logs/installActions2021-10-08_08-47-58PM.log' for details."
    

    -> 以上问题是在应用rpm "yum install glibc-devel-*"后排序的

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-31
      • 1970-01-01
      • 1970-01-01
      • 2023-03-30
      相关资源
      最近更新 更多