Difference between revisions of "Ubuntu 64 bit ASE installation"

From SybaseWiki
Jump to: navigation, search
(Add some 32 bit libraries to your system)
Line 1: Line 1:
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.
+
The Sybase ASE 15.0 or 15.5 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.
  
 
==Download software==
 
==Download software==
You can download Sybase ASE 15.0.2 at http://www.sybase.com/linuxpromo. Registration required.
+
You can download Sybase ASE at http://www.sybase.com/linux/ase or http://www.sybase.com/ase_1500devel. Registration required.
  
 
==Preparation==
 
==Preparation==
Line 10: Line 10:
 
  mkdir sybase
 
  mkdir sybase
 
  cd work
 
  cd work
Put the downloaded file ase1502_xe_linux86-64.tgz in this directory.
+
Put the downloaded file Sybase installation file (e.g. ase155_linuxx86-64.tgz) in this directory.
  tar -xf ase1502_xe_linux86-64.tgz
+
  tar -xf ase155_linuxx86-64.tgz
  rm ase1502_xe_linux86-64.tgz
+
  rm ase155_linuxx86-64.tgz
  
 
==Try the installation==
 
==Try the installation==
Line 24: Line 24:
 
  Searching for Java(tm) Virtual Machine...
 
  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>
 
  .............................A suitable JVM could not be found. Please run the program again using the option -is:javahome <JAVA HOME DIR>
 +
 +
or
 +
 +
./setup.bin
 +
Preparing to install...
 +
Extracting the JRE from the installer archive...
 +
Unpacking the JRE...
 +
Extracting the installation resources from the installer archive...
 +
Configuring the installer for this system's environment...
 +
 +
Launching installer...
 +
 +
exec: 2470: /tmp/install.dir.1506/Linux/resource/jre/bin/java: not found
 +
 +
A solution for these problems is here.
  
 
==Add some 32 and 64 bit libraries to your system==
 
==Add some 32 and 64 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. We also need to add two additional 64 bit libraries.
+
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. We also may need to add two additional 64 bit libraries.
 
===Add the 32 bit libraries===
 
===Add the 32 bit libraries===
 
The following libraries need to be added:
 
The following libraries need to be added:
Line 51: Line 66:
  
 
Become root and make a symbolic link. Replace $HOME with the appropriate value.
 
Become root and make a symbolic link. Replace $HOME with the appropriate value.
  ln -s /lib/ld-linux.so.2 $HOME/lib32bits
+
 
 +
  ln -s $HOME/lib32bits/ld-linux.so.2 /lib
 +
 
 
Then exit from root.
 
Then exit from root.
  
Line 58: Line 75:
  
 
===Add some standard 64 bit libraries to your system===
 
===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.
+
Some standard libraries may 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 libaio
 +
apt-get install libaio1
 
  apt-get install libstdc++5
 
  apt-get install libstdc++5
 
Then exit from root.
 
Then exit from root.

Revision as of 19:40, 17 October 2010

The Sybase ASE 15.0 or 15.5 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.

Download software

You can download Sybase ASE at http://www.sybase.com/linux/ase or http://www.sybase.com/ase_1500devel. 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 Sybase installation file (e.g. ase155_linuxx86-64.tgz) in this directory.

tar -xf ase155_linuxx86-64.tgz
rm ase155_linuxx86-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>

or

./setup.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

exec: 2470: /tmp/install.dir.1506/Linux/resource/jre/bin/java: not found

A solution for these problems is here.

Add some 32 and 64 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. We also may need to add two additional 64 bit libraries.

Add the 32 bit libraries

The following libraries need to be added:

ld-linux.so.2
libc.so.6
libdl.so.2
libgcc_s.so.1
libm.so.6
libnsl.so.1
libnss_dns.so.2
libnss_files.so.2
libpthread.so.0
libresolv.so.2
libstdc++.so.5
libstdc++-libc6.2-2.so.3

Create a directory to store them

mkdir $HOME/lib32bits

You can copy the above mentioned files from a 32 bit Ubuntu system over to your 64 bit system, and place them in the directory.

For your convenience, you can also download them here: http://www.petersap.nl/Download/lib32bits.tar.gz

cd $HOME/lib32bits
tar -xf lib32bits.tar.gz
rm lib32bits.tar.gz

Become root and make a symbolic link. Replace $HOME with the appropriate value.

ln -s $HOME/lib32bits/ld-linux.so.2 /lib

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

Some standard libraries may 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 libaio1 
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