Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #408967] |
Thu, 18 June 2009 08:51  |
gansvv
Messages: 11 Registered: June 2009 Location: Gainesville, FL
|
Junior Member |
|
|
Hi, I am trying to install Oracle 11g on Ubuntu Server, and got stuck with this error:
Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk
I followed the instructions from Oracle OTN, and particularly from pythian.com.
Here is the /oraInventory/install/logs/... entry:
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'ntcontab.o' of makefile '/opt/app/oracle/product/11gdatabase/network/lib/ins_net_client.mk'. See '/opt/oraInventory/logs/installActions2009-06-18_09-13-18AM.log' for details.
Exception Severity: 1
INFO: Exception handling set to prompt user with options to Retry Ignore
User Choice: Retry
INFO: The output of this make operation is also available at: '/opt/app/oracle/product/11gdatabase/install/make.log'
INFO:
INFO: Start output from spawned process:
INFO: ----------------------------------
INFO:
INFO: rm -f ntcontab.*
INFO: (if [ "compile" = "compile" ] ; then \
/opt/app/oracle/product/11gdatabase/bin/gennttab > ntcontab.c ;\
gcc -c ntcontab.c ;\
rm -f /opt/app/oracle/product/11gdatabase/lib/ntcontab.o ;\
mv ntcontab.o /opt/app/oracle/product/11gdatabase/lib/ ;\
/usr/bin/ar rv /opt/app/oracle/product/11gdatabase/lib/libn11.a /opt/app/oracle/product/11gdatabase/lib/ntcontab.o ; fi)
INFO: /bin/bash: /usr/bin/gcc: Too many open files in system
INFO: mv: cannot stat `ntcontab.o'
INFO: : No such file or directory
INFO: /usr/bin/ar: /opt/app/oracle/product/11gdatabase/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 'ntcontab.o' of makefile '/opt/app/oracle/product/11gdatabase/network/lib/ins_net_client.mk'. See '/opt/oraInventory/logs/installActions2009-06-18_09-13-18AM.log' for details.
Exception Severity: 1
I have made the changes to /etc/security/limits.conf and /etc/sysctl.conf, and installed the required libraries.
cat /proc/sys/fs/file-max
65536
$ cat /proc/sys/fs/file-nr
512 0 65536
Could someone help me here. What could be the problem?
Thanks!
[Updated on: Thu, 18 June 2009 09:10] Report message to a moderator
|
|
|
|
Re: Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #408980 is a reply to message #408971] |
Thu, 18 June 2009 10:14   |
gansvv
Messages: 11 Registered: June 2009 Location: Gainesville, FL
|
Junior Member |
|
|
Thanks. I tried reinstalling gcc.
It now gives:
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file:
I have seen this error before (since I have tried installing 11g thrice on this Ubuntu server and keep getting stuck at the same spot!). Another error that I saw is: "error while loading shared libraries: libncurses.so.x"
$ locate libdl.so
/lib/libdl.so.2
/lib32/libdl.so.2
/opt/app/oracle/product/11gdb/lib/stubs/libdl.so
/opt/app/oracle/product/11gdb/lib/stubs/libdl.so.2
/opt/app/oracle/product/11gdb/lib32/stubs/libdl.so
/opt/app/oracle/product/11gdb/lib32/stubs/libdl.so.2
Could it have something to do with a more recent libc version running on an older kernel? Should I set/reset LD_ASSUME_KERNEL?
[Updated on: Thu, 18 June 2009 10:34] Report message to a moderator
|
|
|
|
|
Re: Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #409148 is a reply to message #408967] |
Fri, 19 June 2009 13:21   |
gansvv
Messages: 11 Registered: June 2009 Location: Gainesville, FL
|
Junior Member |
|
|
My machine is x86_64. Reinstallation of gcc and gcc-multilib seems to have had some effect.
The error is now:
INFO: rm -f ntcontab.*
INFO: (if [ "compile" = "compile" ] ; then \
/opt/app/oracle/product/db11g/bin/gennttab > ntcontab.c ;\
gcc -c ntcontab.c ;\
rm -f /opt/app/oracle/product/db11g/lib/ntcontab.o ;\
mv ntcontab.o /opt/app/oracle/product/db11g/lib/ ;\
/usr/bin/ar rv /opt/app/oracle/product/db11g/lib/libn11.a /opt/app/oracle/product/db11g/lib/ntcontab.o ; fi)
INFO: mv: cannot stat `ntcontab.o'
INFO: : No such file or directory
INFO: /usr/bin/ar: /opt/app/oracle/product/db11g/lib/ntcontab.o: No such file or directory
INFO: make: *** [ntcontab.o] Error 1
|
|
|
|
Re: Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #409155 is a reply to message #408967] |
Fri, 19 June 2009 14:26   |
gansvv
Messages: 11 Registered: June 2009 Location: Gainesville, FL
|
Junior Member |
|
|
Okay. gcc wasn't working again! Once I set the /usr/bin/gcc to point back to gcc-4.2, it got running again.
But now, I am stuck with the lagtsh error on ins_rdbms.mk:
INFO: make -f /opt/app/oracle/product/db11g/rdbms/lib/ins_rdbms.mk /opt/app/oracle/product/db11g/rdbms/lib/extproc32 EXTPROC=/opt/app/oracle/product/db11g/rdbms/lib/extproc32 LIBDIR=lib32 LDFLAGS='-m32 -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME) $(LDPATHFLAG)$(LIBHOME)stubs/'
INFO: make[1]: Entering directory `/opt/app/oracle/product/db11g/rdbms/lib'
INFO:
INFO: Linking external procedure agent (/opt/app/oracle/product/db11g/rdbms/lib/extproc32)
INFO: rm -f /opt/app/oracle/product/db11g/rdbms/lib/extproc32
INFO: gcc -m32 -o /opt/app/oracle/product/db11g/rdbms/lib/extproc32 -L/opt/app/oracle/product/db11g/rdbms/lib32/ -L/opt/app/oracle/product/db11g/lib32/ -L/opt/app/oracle/product/db11g/lib32/stubs/ /opt/app/oracle/product/db11g/rdbms/lib32/hormc.o /opt/app/oracle/product/db11g/rdbms/lib32/homts.o -lagtsh -lpthread -lclntsh `cat /opt/app/oracle/product/db11g/lib32/sysliblist` -Wl,-rpath,/opt/app/oracle/product/db11g/lib32 -lm `cat /opt/app/oracle/product/db11g/lib32/sysliblist` -ldl -lm -L/opt/app/ora
INFO: cle/product/db11g/lib32
INFO: /usr/bin/ld: cannot find -lagtsh
INFO: collect2: ld returned 1 exit status
make[1]: *** [/opt/app/oracle/product/db11g/rdbms/lib/extproc32] Error 1
INFO: make[1]: Leaving directory `/opt/app/oracle/product/db11g/rdbms/lib'
INFO: make: *** [extproc32] Error 2
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'all_no_orcl' of makefile '/opt/app/oracle/product/db11g/rdbms/lib/ins_rdbms.mk'. See '/opt/oraInventory/logs/installActions2009-06-19_02-52-10PM.log' for details.
Exception Severity: 1
I had created a /usr/bin/gcc before, with
if [ "$1" = "-m32" ]; then
gcc-4.2 -L/usr/lib32 $*
else
gcc-4.2 $*
fi
Is this a chicken 'n egg kinda problem!
[Updated on: Fri, 19 June 2009 14:26] Report message to a moderator
|
|
|
|
|
|
Re: Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #409161 is a reply to message #409160] |
Fri, 19 June 2009 15:02   |
gansvv
Messages: 11 Registered: June 2009 Location: Gainesville, FL
|
Junior Member |
|
|
Thanks. Interesting you should mention that. I also have these files.
$ find /opt/app/oracle/ -name libagtsh* -print |more
/opt/app/oracle/product/db11g/lib/libagtsh.so
/opt/app/oracle/product/db11g/lib/libagtsh.so.1.0
/opt/app/oracle/product/db11g/lib32/libagtsh.so
$ find /opt/app/oracle/ -name genagtsh* -print |more
/opt/app/oracle/product/db11g/bin/genagtsh
Can I use them for the -lagtsh option? Do I need to change any of the make files?
|
|
|
|
|