Sunday, May 1, 2011

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


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


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


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 Production on Sun May 1 16:23:56 2011

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

Enter user-name:

No comments:

Post a Comment