Ubuntu 64 bit ASE installation
The ASE 15.0.2 linux distribution is a mix of 64 and 32 bit executables. The dataserver itself (the ASE binary) is 64 bit, but for instance the isql client is 32 bit. Also, the installation software uses a 32 bit binary. For RedHat users this may not be an issue, but for Debian/Ubuntu users it is! This document describes how you can install and run this Sybase ASE distribution on x86_64 Debian / Ubuntu systems.
Contents
Download software
You can download Sybase ASE 15.0.2 at http://www.sybase.com/linuxpromo. Registration required.
Preparation
On your Ubuntu 64-bit (x86_64) machine run the following command to get started.
cd $HOME mkdir work mkdir sybase cd work
Put the downloaded file ase1502_xe_linux86-64.tgz in this directory.
tar -xf ase1502_xe_linux86-64.tgz rm ase1502_xe_linux86-64.tgz
Try the installation
The Sybase installation comes with an included Java JVM and some staticly linked objects but these are all for a 32 bit platform. When you start the installation now, you get this:
./setup -console InstallShield Wizard Initializing InstallShield Wizard... Searching for Java(tm) Virtual Machine... .............................A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>
Add some 32 bit libraries to your system
Not only does the installation software require 32 bit libraries, but also all client software like isql. Historical server is also a 32 bit binary.
Add ld-linux.so.2 to your system.
ld-linux.so.2 is the first file we need to add. Since we need to add more libraries create a dirictory to store them
mkdir $HOME/lib32bits cd $HOME/lib32bits
Now download the following file: http://www.petersap.nl/Download/lib32bits.tar.gz and put it in the lib32bits directory. This download has all the required 32 bit linux libraries as well as the ld-linux.so.2 linker that is required to run 32 bit binaries on a 64 bit system.
tar -xf lib32bits.tar.gz rm lib32bits.tar.gz
Become root and make a symbolic link. Replace $HOME with the appropriate value.
ln -s /lib/ld-linux.so.2 $HOME/lib32bits
Then exit from root.
Add the lib32bits directory to LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$HOME/lib32bits
Add some standard 64 bit libraries to your system
Two standard libraries need to be added to your system. You may have them installed aleady, but please check. You need to become root again.
apt-get install libaio apt-get install libstdc++5
Then exit from root.
Ready to install!
You have now completed your system configuration and you are ready to install Sybase ASE. Follow the detailed description on how to install and configure your Sybase installation here Installation guidelines ASE.
Final note
After you have completed "setup" modify SYBASE.sh and add the lib32bits directory to LD_LIBRARY_PATH. Then source in the file.
. $HOME/sybase/SYBASE.sh