Erro ao construir o cliente Oracle 11g R2 no RHEL 5.5

3

Estamos tentando instalar o oracle 11g R2 de 64 bits na máquina Rhel 5.5 (64 bits). A versão do kernel é 2.6.18-194.el5. Estamos recebendo o erro abaixo durante a instalação.

error in  invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile '/home/oracle/app/product/11.2.0/network/lib/ins_net_client.mk'.
See '/home/oracle/oraInventory/logs/installAction2013-09-03_04-52-05PM.log' for details.

Instalamos todos os pacotes de biblioteca necessários.

binutils-2.17.50.0.6-14.el5.x86_64
compat-libstdc++-33-3.2.3-61.x86_64
compat-libstdc++-33-3.2.3-61.i386
elfutils-libelf-0.137-3.el5.x86_64
elfutils-libelf-0.137-3.el5.i386
elfutils-libelf-devel-static-0.137-3.el5.x86_64
elfutils-libelf-devel-static-0.137-3.el5.i386 
elfutils-libelf-devel-0.137-3.el5.x86_64
elfutils-libelf-devel-0.137-3.el5.i386
gcc-4.1.2-48.el5.x86_64
gcc-c++-4.1.2-48.el5.x86_64
glibc-2.5-49.x86_64
glibc-2.5-49.i686
glibc-common-2.5-49.x86_64
glibc-devel-2.5-49.x86_64
glibc-devel-2.5-49.i386
glibc-headers-2.5-49.x86_64
ksh-20100202-1.el5.x86_64
libaio-0.3.106-5.x86_64
libaio-0.3.106-5.i386
libaio-devel-0.3.106-5.x86_64
libaio-devel-0.3.106-5.i386
libgcc-4.1.2-48.el5.x86_64
libgcc-4.1.2-48.el5.i386
libstdc++-4.1.2-48.el5.x86_64
libstdc++-4.1.2-48.el5.i386 
libstdc++44-devel-4.4.0-6.el5.x86_64
libstdc++44-devel-4.4.0-6.el5.i386
libstdc++-devel-4.1.2-48.el5.x86_64 
libstdc++-devel-4.1.2-48.el5.i386

make já está instalado:

make-3.81-3.el5.x86_64

Conteúdo do arquivo de log:

INFO: Calling Query fileQueries10.1.0.3.0  exists

filename = /home/oracle/app/product/11.2.0/rdbms/lib/libknlopt.a
INFO: Query Returned: false
INFO: Calling Action unixActions10.2.0.3.0  registerForMake
        installMakePath = /usr/bin/make
        installMakeFileName = /home/oracle/app/product/11.2.0/network/lib/ins_nau.mk
        installTarget = ioklist
        installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        undoMakeFileName = null
        undoTarget = null
        undoArguments = null
        logFile = /home/oracle/app/product/11.2.0/install/make.log
        progMsg = Linking Adapters

INFO: Calling Action unixActions10.2.0.3.0  registerForMake
        installMakePath = /usr/bin/make
        installMakeFileName = /home/oracle/app/product/11.2.0/network/lib/ins_nau.mk
        installTarget = iokinit
        installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        undoMakeFileName = null
        undoTarget = null
        undoArguments = null
        logFile = /home/oracle/app/product/11.2.0/install/make.log
        progMsg = Linking Adapters

INFO: Calling Action unixActions10.2.0.3.0  registerForMake
        installMakePath = /usr/bin/make
        installMakeFileName = /home/oracle/app/product/11.2.0/network/lib/ins_nau.mk
        installTarget = iokdstry
        installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        undoMakeFileName = null
        undoTarget = null
        undoArguments = null
        logFile = /home/oracle/app/product/11.2.0/install/make.log
        progMsg = Linking Adapters

INFO: Linking 'Oracle Database Utilities 11.2.0.3.0 '
INFO: Linking 'Oracle Database Utilities 11.2.0.3.0 '
INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle Database Utilities
INFO: Calling Action unixActions10.2.0.3.0  registerForMake
        installMakePath = /usr/bin/make
        installMakeFileName = /home/oracle/app/product/11.2.0/rdbms/lib/ins_rdbms.mk
        installTarget = utilities
        installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        undoMakeFileName = null
        undoTarget = null
        undoArguments = null
        logFile = /home/oracle/app/product/11.2.0/install/make.log
        progMsg = Linking Utilities Executables

INFO: Linking 'SQL*Plus 11.2.0.3.0 '
INFO: Linking 'SQL*Plus 11.2.0.3.0 '
INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component SQL*Plus
INFO: Calling Action unixActions10.2.0.3.0  registerForMake
        installMakePath = /usr/bin/make
        installMakeFileName = /home/oracle/app/product/11.2.0/sqlplus/lib/ins_sqlplus.mk
        installTarget = install
        installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        undoMakeFileName = null
        undoTarget = null
        undoArguments = null
        logFile = /home/oracle/app/product/11.2.0/install/make.log
        progMsg = Linking SQLPLUS Executables

INFO: Linking 'Oracle Programmer 11.2.0.3.0 '
INFO: Linking 'Oracle Programmer 11.2.0.3.0 '
INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle Programmer
INFO: Linking 'Oracle Internet Directory Client 11.2.0.3.0 '
INFO: Linking 'Oracle Internet Directory Client 11.2.0.3.0 '
INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle Internet Directory Client
INFO: Calling Action unixActions10.2.0.3.0  registerForMake
        installMakePath = /usr/bin/make
        installMakeFileName = /home/oracle/app/product/11.2.0/ldap/lib/ins_ldap.mk
        installTarget = clientonlyinstall
        installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        undoMakeFileName = null
        undoTarget = clientonlyinstall
        undoArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        logFile = /home/oracle/app/product/11.2.0/install/make.log
        progMsg = Linking OID Client

INFO: Calling Action unixActions10.2.0.3.0  registerForMake
        installMakePath = /usr/bin/make
        installMakeFileName = /home/oracle/app/product/11.2.0/ldap/lib/ins_ldap.mk
        installTarget = clientonlyinstall
        installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        undoMakeFileName = /home/oracle/app/product/11.2.0/ldap/lib/ins_ldap.mk
        undoTarget = clientonlyinstall
        undoArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        logFile = /home/oracle/app/product/11.2.0/install/make.log
        progMsg = Linking Client-only Install

INFO: Linking 'SQLJ Runtime 11.2.0.3.0 '
INFO: Linking 'SQLJ Runtime 11.2.0.3.0 '
INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component SQLJ Runtime
INFO: Linking 'Oracle SQLJ 11.2.0.3.0 '
INFO: Linking 'Oracle SQLJ 11.2.0.3.0 '
INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle SQLJ
INFO: Linking 'Oracle Client 11.2.0.3.0 '
INFO: Linking 'Oracle Client 11.2.0.3.0 '
INFO: 9/3/13 4:54:07 PM IST: Starting install Link Phase of component Oracle Client
INFO: Linking in progress
INFO: Linking in progress
INFO: Link Phase JRE files in Scratch :0
INFO: Calling Action unixActions10.2.0.3.0  make
        registerOnly = false
        installMakePath = /usr/bin/make
        installMakeFileName = /home/oracle/app/product/11.2.0/network/lib/ins_net_client.mk
        installTarget = mkldflags ntcontab.o nnfgt.o
        undoMakeFileName =
        installArguments = ORACLE_HOME=/home/oracle/app/product/11.2.0
        logFile = /home/oracle/app/product/11.2.0/install/make.log
        undoTarget =
        progMsg = Linking ldflags Executables

INFO: Linking ldflags Executables
INFO: Linking ldflags Executables
INFO: The output of this make operation is also available at: '/home/oracle/app/product/11.2.0/install/make.log'
INFO:

INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:

INFO: rm -f ntcontab.*

INFO: (if [ "compile" = "compile" ] ; then \
          /home/oracle/app/product/11.2.0/bin/gennttab > ntcontab.c ;\
          /usr/bin/gcc -m32  -m32  -fPIC -c ntcontab.c ;\
          rm -f /home/oracle/app/product/11.2.0/lib/ntcontab.o ;\
          mv ntcontab.o /home/oracle/app/product/11.2.0/lib/ ;\
          /usr/bin/ar rv /home/oracle/app/product/11.2.0/lib/libn11.a /home/oracle/app/product/11.2.0/lib/ntcontab.o ; fi)

INFO: /bin/sh: line 2: /usr/bin/gcc: No such file or directory

INFO: mv: cannot stat 'ntcontab.o'
INFO: : No such file or directory

INFO: /usr/bin/ar: /home/oracle/app/product/11.2.0/lib/ntcontab.o: No such file or directory

INFO: make: *** [ntcontab.o] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile '/home/oracle/app/product/11.2.0/network/lib/ins_net_client.mk'. See '/home/oracle/oraInventory/logs/installActions2013-09-03_04-52-05PM.log' for details.
Exception Severity: 1
INFO: Adding ExitStatus STOP_INSTALL to the exit status set
INFO: Finding the most appropriate exit status for the current application
INFO: Exit Status is -4
INFO: Shutdown Oracle Client Installer

Por favor, deixe-nos saber qual é a solução para este erro.

    
por user44663 04.09.2013 / 15:23

1 resposta

0

Faça login no sistema como root e faça o seguinte:

  1. Mova o arquivo / usr / bin / gcc existente para /usr/bin/gcc.orig com o comando mv: mv / usr / bin / gcc /usr/bin/gcc.orig
  2. Usando um editor de texto como o vi, crie um novo arquivo chamado gcc41 que contenha o seguinte conteúdo (a linha que começa com exec deve ser uma única linha):

     #!/bin/sh
     exec /usr/bin/gcc.orig -m32 -static-libgcc -B /usr/lib/gcc/x86_64-redhat-linux/4.4.7/32/ $*
    

Nota: O diretório usr / lib / gcc / x86_64-redhat-linux / 4.1.2 / 32 / pode diferir ligeiramente dependendo da versão do seu sistema operacional Linux. Pesquise pelo correspondente diretório de 32 bits em / usr / lib / gcc em seu sistema operacional Linux. sistema e usar esse diretório no arquivo gcc41.

  1. Altere a permissão do arquivo para o arquivo gcc41 usando o seguinte comando:

    chmod 755 /usr/bin/gcc41 
    chmod 755 /usr/bin/gcc
    
  2. Crie um link simbólico para / usr / bin / gcc com o seguinte comando: ln -s -f /usr/bin/gcc41/usr/bin/gcc
  3. Sair como usuário root
por 12.09.2017 / 11:00