Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

11G installation on AMD64

508212Oct 21 2007 — edited Apr 15 2008
Trying to install 11G on Ubuntu AMD64. All goes well except a single linker error of target all_no_orcl of makefile ../rdbms/lib/ins_rdbms.mk

gcc -m32 -o /db/orcl11/db/rdbms/lib/extproc32 -L/db/orcl11/db/rdbms/lib32/ -L/db/orcl11/db/lib32/ -L/db/orcl11/db/lib32/stubs/ /db/orcl11/db/rdbms/lib32/hormc.o /db/orcl11/db/rdbms/lib32/homts.o -lagtsh -lpthread -lclntsh `cat /db/orcl11/db/lib32/sysliblist` -Wl,-rpath,/db/orcl11/db/lib32 -lm `cat /db/orcl11/db/lib32/sysliblist` -ldl -lm -L/db/orcl11/db/lib32
/usr/bin/ld: cannot find -lagtsh
collect2: ld returned 1 exit status

I'm really confused because libagtsh.so is in ../lib32 and should get picked up I think.

Any ideas?

Comments

585319
Hi,

The Oracle Server software is 64bit? ...it must be same bit-size as underlying OS.

Regards
http://oracledisect.blogspot.com
508212
Thanks -- yes.

Looking on the web, these linker errors are a longstanding issue, no doubt a result of a tactical decision to mix compiles of 32 and 64 bit systems. I've tried everything I can think of to track down the cause to no avail. Certainly, of the many suggestions made on Metalink and elsewhere, none seem to work at least in this case.

No doubt the issue is a library not installed or not on the correct path. I just can't seem to find my way to a solution.
577519
Hello,

my installation is now at the same point ... are there any solutions to this ?

Thanks,
Michael
577519
In my installation the libagtsh.so is a link to libagtsh.so.1.0 which is not there...

-rw-r--r-- 1 oracle oinstall 865884 2007-10-04 06:23 libagent11.a
lrwxrwxrwx 1 oracle oinstall 15 2007-10-23 11:00 libagtsh.so -> libagtsh.so.1.0
-rw-r--r-- 1 oracle oinstall 5602642 2007-10-04 06:23 libclient11.a
lrwxrwxrwx 1 oracle oinstall 66 2007-10-23 10:59 libclntsh.so -> /opt/oracle/app/oracle/product/11.1.0/db_1/lib32/libclntsh.so.11.1
lrwxrwxrwx 1 oracle oinstall 61 2007-10-23 11:00 libclntsh.so.10.1 -> /opt/oracle/app/oracle/product/11.1.0/db_1/lib32/libclntsh.so
-

Maybe that helps ?

Michael
423277
In my installation the libagtsh.so is a link to
libagtsh.so.1.0 which is not there...

-rw-r--r-- 1 oracle oinstall 865884 2007-10-04
06:23 libagent11.a
lrwxrwxrwx 1 oracle oinstall 15 2007-10-23
11:00 libagtsh.so -> libagtsh.so.1.0
-rw-r--r-- 1 oracle oinstall 5602642 2007-10-04
06:23 libclient11.a
lrwxrwxrwx 1 oracle oinstall 66 2007-10-23
10:59 libclntsh.so ->
/opt/oracle/app/oracle/product/11.1.0/db_1/lib32/libcl
ntsh.so.11.1
lrwxrwxrwx 1 oracle oinstall 61 2007-10-23
11:00 libclntsh.so.10.1 ->
/opt/oracle/app/oracle/product/11.1.0/db_1/lib32/libcl
ntsh.so
-

Maybe that helps ?

Michael
I've got this same issue.
461164
Hi, download the 32bit version of 11g extract the zip file and open the database/stage/Components/oracle.rdbms.util/11.1.0.6.0/1/DataFiles/filegroup14.jar file. Inside you will find the 32bit version of libagtsh.so. Put it in the /opt/oracle/app/oracle/product/11.1.0/db_1/lib32 directory.

JS
255574
I had the exact same problem.

If libagtsh.so.1.0 is missing it seems that the previous linking of client libs has failed.
So I tried a manual rebuld of the client libs: make -f ins_rdbms.mk client_sharedlib
And it failed with an error about it couldnt find -lgcc while it was linking a 32bit part.

So I figured that I needed to install the 32bit compiler too.
I did that and it all worked perfectly!

Hope this will help you
370282
Thanks for that, this has been driving me mad for around a week.

I followed your advice and installed all gcc 32 bit installers and have just completed an error free installation.

I do get 3 package warnings during the check, but ignored these as I think they are 10.0 packages and the 10.3 pacakages have different names.
RMantingh
Excuse my ignorance (I'm new to all this - just tell me to go away :-) ).
Why do we need to generate these 32 bit 'counterparts' if we already
have proper 64 bit executables as well?
On my Ubuntu 7.10 AMD64 system I've been able to link everything by
just stripping all 32 bit references from the make files.
Well, nearly everything. Only ctxhx gives me problems as it only comes
with a 32-bit object file and no 64 bit equivalent (linking therefore failed).
The database (plus tools) seems to run OK though without all these 32-bit
add-ons.
Why could Oracle not have provided a 64-bit object for ctxhx as well?
577519
I 've now managed to get 11g working on Gutsy x86_64. I did it the following way:
When a link fails I looked into ORACLE_HOME/install/make.log and copy the last make to a shell. Then I added -L/usr/lib32 after the gcc -m32. Then clicked on Retry and repeat the procedure for the next error. So I do not loose some 32 bit things that may be important for some functionality.
599290
32bit compiler on ubuntu x86_64? What package is that i don't see anything in synaptic.
473980
I think I have a simpler solution:
assuming your /usr/bin/gcc link to /usr/bin/gcc-4.1, do:
mv /usr/bin/gcc /usr/bin/gcc.orig

create a new /usr/bin/gcc, to be the following script:
#!/bin/bash

if [ "$1" = "-m32" ]; then
gcc-4.1 -L/usr/lib32 $*
else
gcc-4.1 $*
fi


When installation completes, remove the scripts and replace it which the original symlink.
It's a hack, but it'll work, saving you the hassle of manually linking oracle libs.
hillrudy
Can you please provide us with the name of the 32 bit compiler packages?
I've installed many 32 bit libs, but it still doesn't work.
I just can't figure them out.

Thank you!

Message was edited by:
hillrudy
628525
I am using ubuntu 64bit, I was having the same problems you guys were having. when i added the 32bit path I find a different probelm.


NFO: gcc -m32 -o /opt/oracle-home/oracle/11.1.0/db_1/rdbms/lib/extproc32 -L/opt/oracle-home/oracle/11.1.0/db_1/rdbms/lib32/ -L/opt/oracle-home/oracle/11.1.0/db_1/lib32/ -L/opt/oracle-home/oracle/11.1.0/db_1/lib32/stubs/ /opt/oracle-home/oracle/11.1.0/db_1/rdbms/lib32/hormc.o /opt/oracle-home/oracle/11.1.0/db_1/rdbms/lib32/homts.o -lagtsh -lpthread -lclntsh `cat /opt/oracle-home/oracle/11.1.0/db_1/lib32/sysliblist` -Wl,-rpath,/opt/oracle-home/oracle/11.1.0/db_1/lib32 -lm `cat /opt/oracle-home/oracle/1
INFO: 1.1.0/db_1/lib32/sysliblist` -ldl -lm -L/opt/oracle-home/oracle/11.1.0/db_1/lib32

INFO: /usr/bin/ld: cannot find -lagtsh

INFO: collect2: ld returned 1 exit status

INFO: make[1]: *** [opt/oracle-home/oracle/11.1.0/db_1/rdbms/lib/extproc32] Error 1

INFO: make[1]: Leaving directory `/opt/oracle-home/oracle/11.1.0/db_1/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/oracle-home/oracle/11.1.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2008-03-13_05-58-42PM.log' for details.
Exception Severity: 1

Im assuming that agtsh can't be found? if so where can i get it ?
lynwode
Hi,
I'm getting the same error. Did anyone solve this?
Ivan Kartik
Can you post last 15 - 20 lines from $ORACLE_HOME/install/make.log file?
463659
i am getting following problem

INFO: suse
INFO: -
INFO: linux
INFO: /
INFO: 4.2.1
INFO: /
INFO: .
INFO: .
INFO: /
INFO: .
INFO: .
INFO: /
INFO: .
INFO: .
INFO: /
INFO: .
INFO: .
INFO: /
INFO: x86_64
INFO: -
INFO: suse
INFO: -
INFO: linux
INFO: /
INFO: bin
INFO: /
INFO: ld
INFO: :
INFO:
INFO: cannot
INFO:
INFO: find
INFO:
INFO: -
INFO: lgcc
INFO:

INFO: collect2:
INFO: ld returned 1 exit status
INFO:

INFO: make:
INFO: *** [ctxhx] Error 1
INFO:

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'install' of makefile '/opt/app/oracle/product/11/ctx/lib/ins_ctx.mk'. See '/opt/app/oraInventory/logs/installActions2008-04-15_01-02-38PM.log' for details.
Exception Severity: 1
1 - 17
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 13 2008
Added on Oct 21 2007
17 comments
21,143 views