Monday, April 25, 2011

Install Oracle 11gR2 Client on Ubuntu 11.04

Install Packages

$ sudo apt-get install unzip build-essential x11-utils rpm ksh lsb-rpm libaio1

Install libstdc++ 5 (Ubuntu is shipping a higher version)

64 bit

$ wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_amd64.deb
$ dpkg-deb -x libstdc++5_3.3.6-17ubuntu1_amd64.deb ia64-libs
$ sudo cp ia64-libs/usr/lib/libstdc++.so.5.0.7 /usr/lib64/
$ cd /usr/lib64/

$ sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5

32 bit

$ wget http://security.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_2.7ubuntu6.1_amd64.deb
$ dpkg-deb -x ia32-libs_2.7ubuntu6.1_amd64.deb ia32-libs
$ sudo cp ia32-libs/usr/lib32/libstdc++.so.5.0.7 /usr/lib32/
$ cd /usr/lib32
$ sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5

Create some symbolic links so the installer can find all the things it needs.

# ln -s /usr/bin/awk /bin/awk
# ln -s /usr/bin/rpm /bin/rpm
# ln -s /usr/bin/basename /bin/basename
# ln -s /usr/lib/i386-linux-gnu/libpthread_nonshared.a /usr/lib/libpthread_nonshared.a

# ln -s /usr/lib/libpthread_nonshared.a /usr/lib/i386-linux-gnu/libpthread_nonshared.a

#ln -s /usr/lib/i386-linux-gnu/libc_nonshared.a /usr/lib/libc_nonshared.a

9 comments:

yayo said...

u have missed a symlink:

sudo ln -s /usr/lib/i386-linux-gnu/libc_nonshared.a /usr/lib/libc_nonshared.a
bye :)

小田 said...

hello , I had the same problem as you.
But I can not even find the /usr/lib/i386-linux-gnu/libc_nonshared.a on my ubuntu server 11.04. do you have any idea how i can get the file ?
by apt-get install or I need to compile some source myself?
thanks in advance

Joshua Gray said...

Thanks yayo for pointing that out. The post has been edited appropriately

Joshua Gray said...

小田 ...

You might have it in a different directory if your running 64bit.

Ted said...

Thanks... this was a lot of help.

But, don't you have two symbolic links pointing to each other? Or, maybe I'm not understanding something.

# ln -s /usr/lib/i386-linux-gnu/libpthread_nonshared.a /usr/lib/libpthread_nonshared.a

# ln -s /usr/lib/libpthread_nonshared.a /usr/lib/i386-linux-gnu/libpthread_nonshared.a

Thanks again.

nssy said...

I agree. the symbolic link is pointing to itself.
Its not necessary to do
ln -s /usr/lib/libpthread_nonshared.a /usr/lib/i386-linux-gnu/libpthread_nonshared.a

tors said...

I did this on my x86_64:


#ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib/libpthread_nonshared.a

#ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib/libc_nonshared.a

#ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/libstdc++.so.6

#ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/libgcc_s.so.1

Florin Andrei said...

Wow. What a horrible mess. But that's typical of Oracle.

Scoop said...

I've tried linking all the stuff youve said.

I still keep getting the linking binary errors. im using 11.10 and i have no idea what to do at this point