Sunday, May 1, 2011

Necessary workaround to install Oracle 11gR2 client on Ubuntu 11.04 (64bit)

Environment:

donghua@rh6:/usr/lib/x86_64-linux-gnu$ lsb_release -id
Distributor ID: Ubuntu
Description: Ubuntu 11.04

Actually I did not experience such issue on Ubuntu 10.10


Symptoms:

/opt/software/client_112020/bin/genclntsh
/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a
collect2: ld returned 1 exit status
genclntsh: Failed to link libclntsh.so.11.1
make: *** [client_sharedlib] Error 1

Workaround:

sudo ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/
sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64/

sudo ln -s /usr/bin/basename /bin/basename
sudo ln -s /usr/bin/awk /bin/awk


The workaround works:

donghua@rh6:/usr/lib/x86_64-linux-gnu$ sqlplus

SQL*Plus: Release 11.2.0.2.0 Production on Sun May 1 16:23:56 2011

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Enter user-name: