Thread: 11G installation on AMD64


Permlink Replies: 17 - Pages: 2 [ 1 2 | Next ] - Last Post: Apr 15, 2008 5:29 AM Last Post By: user460656
user505209

Posts: 9
Registered: 04/22/06
11G installation on AMD64
Posted: Oct 21, 2007 6:02 AM
Click to report abuse...   Click to reply to this thread Reply
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?
Ignacio Ruiz

Posts: 517
Registered: 06/27/07
Re: 11G installation on AMD64
Posted: Oct 22, 2007 2:12 PM   in response to: user505209 in response to: user505209
Click to report abuse...   Click to reply to this thread Reply
Hi,

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

Regards
http://oracledisect.blogspot.com
user505209

Posts: 9
Registered: 04/22/06
Re: 11G installation on AMD64
Posted: Oct 22, 2007 3:30 PM   in response to: Ignacio Ruiz in response to: Ignacio Ruiz
Click to report abuse...   Click to reply to this thread Reply
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.
Mike0108

Posts: 4
Registered: 05/14/07
Re: 11G installation on AMD64
Posted: Oct 23, 2007 1:21 AM   in response to: user505209 in response to: user505209
Click to report abuse...   Click to reply to this thread Reply
Hello,

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

Thanks,
Michael
Mike0108

Posts: 4
Registered: 05/14/07
Re: 11G installation on AMD64
Posted: Oct 23, 2007 2:20 AM   in response to: Mike0108 in response to: Mike0108
Click to report abuse...   Click to reply to this thread Reply
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
michael.j.halle...

Posts: 9
Registered: 01/16/04
Re: 11G installation on AMD64
Posted: Oct 26, 2007 8:30 AM   in response to: Mike0108 in response to: Mike0108
Click to report abuse...   Click to reply to this thread Reply
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.
jsaraiva

Posts: 1
Registered: 10/19/05
Re: 11G installation on AMD64
Posted: Oct 31, 2007 4:57 AM   in response to: michael.j.halle... in response to: michael.j.halle...
Click to report abuse...   Click to reply to this thread Reply
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
martin.d.pedersen

Posts: 11
Registered: 04/09/02
Re: 11G installation on AMD64
Posted: Oct 31, 2007 5:27 AM   in response to: Mike0108 in response to: Mike0108
Click to report abuse...   Click to reply to this thread Reply
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
revitt

Posts: 18
Registered: 11/05/01
Re: 11G installation on AMD64
Posted: Nov 2, 2007 2:26 AM   in response to: martin.d.pedersen in response to: martin.d.pedersen
Click to report abuse...   Click to reply to this thread Reply
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

Posts: 65
Registered: 10/20/06
Re: 11G installation on AMD64
Posted: Nov 6, 2007 2:24 AM   in response to: user505209 in response to: user505209
Click to report abuse...   Click to reply to this thread Reply
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?
Mike0108

Posts: 4
Registered: 05/14/07
Re: 11G installation on AMD64
Posted: Nov 6, 2007 10:17 PM   in response to: user505209 in response to: user505209
Click to report abuse...   Click to reply to this thread Reply
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.
ruckc

Posts: 26
Registered: 09/21/07
Re: 11G installation on AMD64
Posted: Nov 9, 2007 4:42 PM   in response to: martin.d.pedersen in response to: martin.d.pedersen
Click to report abuse...   Click to reply to this thread Reply
32bit compiler on ubuntu x86_64? What package is that i don't see anything in synaptic.
user470977

Posts: 1
Registered: 12/03/05
Re: 11G installation on AMD64
Posted: Nov 16, 2007 3:31 PM   in response to: Mike0108 in response to: Mike0108
Click to report abuse...   Click to reply to this thread Reply
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 ; 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

Posts: 16
Registered: 07/16/07
Re: 11G installation on AMD64
Posted: Mar 7, 2008 3:36 AM   in response to: martin.d.pedersen in response to: martin.d.pedersen
Click to report abuse...   Click to reply to this thread Reply
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
user625522

Posts: 2
Registered: 03/14/08
Re: 11G installation on AMD64
Posted: Mar 14, 2008 5:59 AM   in response to: hillrudy in response to: hillrudy
Click to report abuse...   Click to reply to this thread Reply
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 ?
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums