Home » Infrastructure » Linux » Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk (Ubuntu 8.0.4 (LTS) Server)
icon4.gif  Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #408967] Thu, 18 June 2009 08:51 Go to next message
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 #408971 is a reply to message #408967] Thu, 18 June 2009 09:13 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Most probably it has to do with gcc.
Try reinstalling gcc or if you can afford, do a build essential.
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 Go to previous messageGo to next message
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 #408983 is a reply to message #408967] Thu, 18 June 2009 10:35 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
sudo vi /etc/sysctl.conf

does command open the file?
Re: Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #408984 is a reply to message #408983] Thu, 18 June 2009 10:40 Go to previous messageGo to next message
gansvv
Messages: 11
Registered: June 2009
Location: Gainesville, FL
Junior Member
Yes, the file exists. Here is the update I made to that file:

#Oracle Installation Tweaks
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
vm.swappiness=10
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 Go to previous messageGo to next message
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 #409151 is a reply to message #408967] Fri, 19 June 2009 13:44 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
find $ORACLE_HOME -name ntcontab\* -print
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 Go to previous messageGo to next message
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! Wink

[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 #409157 is a reply to message #408967] Fri, 19 June 2009 14:35 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
find $ORACLE_HOME -name agtsh -print
Re: Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #409158 is a reply to message #409157] Fri, 19 June 2009 14:49 Go to previous messageGo to next message
gansvv
Messages: 11
Registered: June 2009
Location: Gainesville, FL
Junior Member
The search for lagtsh draws blank.

I did come across these discussions though:
http://forums.oracle.com/forums/thread.jspa?threadID=577066&start=0&tstart=0
http://ubuntuforums.org/archive/index.php/t-592064.html

Is there a standard solution for this lagtsh (32-bit) problem?
Re: Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #409160 is a reply to message #408967] Fri, 19 June 2009 14:58 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
/u01/app/oracle/lib/libagtsh.so.1.0
/u01/app/oracle/lib/libagtsh.so
/u01/app/oracle/bin/genagtsh

Above is from Ubuntu V9.04 & Oracle V10.2..0.4
So I can't comment more on your combination.

I had problems installing V11 on Ubuntu & gave up.
I got Oracle V11 to install painlessly on CentOS.

Good Luck!
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 Go to previous messageGo to next message
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?
Re: Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #582610 is a reply to message #409161] Sat, 20 April 2013 02:19 Go to previous messageGo to next message
maninderkrb
Messages: 41
Registered: August 2012
Location: India
Member
http://dbamaninder.blogspot.in/2013/04/error-in-invoking-target-ntcontabo-of.html

I was facing same problem ,get it resolved like this. Smile
Re: Error in invoking target 'ntcontab.o' of makefile $ORACLE_HOME/network/lib/ins_net_client.mk [message #582616 is a reply to message #582610] Sat, 20 April 2013 03:17 Go to previous message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
So it is:

Quote:
I was stuck in the error when installing oracle on my vmvare centos 5 m/c

finally got solution,problem was with rpms.
as I don't have internet running on my m/c
I was not using yum cmd to install the rpms
I was downloading the rpms and then installing them
and getting the error like

libstdc++-devel-4.1.2-54.el5.i386 conflicts with file from package gcc-c++-4.1.2-33.i38

and reversal means order of installing rms doesn't work

then as solution I manage run internet on my system
and run

yum remove gcc-c++-4.1.2-33.i386
yum remove libstdc++-devel-4.1.2-54.el5.i386
yum remove libstdc++-devel
yum install gcc-c++
and finally get it resolved Smile


Note that OP mentioned Ubuntu and you vmware Centos, not sure it applies here.

Regards
Michel
Previous Topic: Manual DB creation error
Next Topic: SFTP locsite unit=vts3 equivalant command
Goto Forum:
  


Current Time: Thu Mar 28 15:19:07 CDT 2024