Difference between revisions of "Sybase on linux-distro matrix"

From SybaseWiki
Jump to: navigation, search
(Ubuntu x86-64 version)
m
Line 30: Line 30:
 
|-
 
|-
 
! Ubuntu-6.06_x86-64
 
! Ubuntu-6.06_x86-64
| ? || no  || yes || no || yes
+
| ? || no  || yes || yes (with a trick) || yes
 
|}
 
|}
  
 
+
For detailed information how to install ASE go here: http://www.petersap.nl/SybaseWiki/index.php/Installation_guidelines_ASE
==Generic configuration advisories:==
+
Always configure more shared-memory before starting srvbuild(res). For 30G shared mem use for example:
+
[root]# echo 33554432000 > /proc/sys/kernel/shmmax
+
 
+
 
+
To make this permanent after reboot's, append to /etc/sysctl.conf
+
#Debian/Ubuntu:
+
kernel/shmmax=335544320
+
#Redhat:
+
kernel.shmmax = 335544320
+
  
 
==Version 11.0.x (x86-32)==
 
==Version 11.0.x (x86-32)==
Line 68: Line 58:
 
==Version 15.0.x (x86-32)==
 
==Version 15.0.x (x86-32)==
 
Used version 15.0.0-ebf13194
 
Used version 15.0.0-ebf13194
 
Create a ase1500.rs
 
SYBASE=/opt/sybase
 
#
 
SYBROOT=${SYBASE}
 
SYBASE_ASE=ASE-15_0
 
SYBASE_OCS=OCS-15_0
 
INCLUDE=${SYBASE}/${SYBASE_OCS}/include":$INCLUDE
 
LIB=${SYBASE}/${SYBASE_OCS}/lib:$LIB
 
SYBASE_JRE=${SYBASE}/shared/jre142
 
SYBASE_SYSAM=SYSAM-2_0
 
SYBASE_UA=${SYBASE}/ua
 
SCROOT=${SYBASE}/shared/sybcentral43
 
SYBASE_WS=WS-15_0
 
export SYBASE SYBROOT SYBASE_ASE SYBASE_OCS INCLUDE LIB SYBASE_JRE SYBASE_SYSAM SYBASE_UA SCROOT SYBASE_WS
 
#
 
PATH=${SYBASE}/ua/bin:$PATH
 
PATH=/opt/sybase/ASE-15_0/jobscheduler/bin:${SYBASE}/${SYBASE_ASE}/bin:${SYBASE}/${SYBASE_OCS}/bin:${SYBASE}/RPL-15_0/bin:$PATH
 
export PATH
 
#
 
LD_LIBRARY_PATH=${SYBASE}/${SYBASE_ASE}/lib:${SYBASE}/{SYBASE_OCS}/lib:${SYBASE}/{SYBASE_OCS}/lib3p:$LD_LIBRARY_PATH
 
LD_LIBRARY_PATH=${SYBASE}/DataAccess/ODBC/lib:$LD_LIBRARY_PATH
 
export LD_LIBRARY_PATH
 
  
 
===Redhat EL-Linux-4.0===
 
===Redhat EL-Linux-4.0===
Line 176: Line 143:
  
 
====Ubuntu x86-64 version====
 
====Ubuntu x86-64 version====
Works only after you installed the 32 bit libraries on the 64 bit Ubuntu installation. Addressing in ASE will ofcourse still be in 32 bit but it's a good workaround for some specific situations.
+
Sybase has now also released a 64 bit version for this distro.
 
+
You can access get a copy here http://www.sybase.com/linuxpromo.
See here for details how to get it to work: [[Running a 32 bit ASE executable with a 64 bit chip]]
+
When for some reason you want to stick to a 32 bit Sybase distribution see here http://www.petersap.nl/SybaseWiki/index.php/Running_a_32_bit_ASE_executable_with_a_64_bit_chip for details.
  
 
==Version 15.0.x (x86-64)==
 
==Version 15.0.x (x86-64)==
Software not yet delivered.
+
Sybase has now also released a 64 bit version for this distro.
 +
You can access get a copy here http://www.sybase.com/linuxpromo.
 +
===Ubuntu===
 +
====Ubuntu x86-64 version====
 +
Works out of the box.
  
 
=ReplicationServer=
 
=ReplicationServer=

Revision as of 16:49, 4 January 2008

Content contributed by Luc Nieland

Adaptive Server Enterprise (ASE)

The ASE on Linux-distro working matrix:
\ 11.0.3.3_x86-32 12.5.3_x86-32 12.5.3_x86-64 15.0.0_x86-32 15.0.0-x86-64
RedHat-EL-4 x86-32  ? yes n.a. yes n.a.
RedHat-EL-4 x86-64  ? yes yes yes yes
Fedora-core5 x86-32 no no n.a. no n.a.
Fedora-core5 x86-64 no no no no no
Debian-3.1_x86-32  ?  ? n.a.  ? n.a.
Debian-3.1_x86-64  ?  ?  ?  ?  ?
Ubuntu-6.06_x86-32  ? yes n.a. yes n.a.
Ubuntu-6.06_x86-64  ? no yes yes (with a trick) yes

For detailed information how to install ASE go here: http://www.petersap.nl/SybaseWiki/index.php/Installation_guidelines_ASE

Version 11.0.x (x86-32)

When used with a recent Linux-distro, use the faq on the link below to allocate more than 128M memory. http://www.peppler.org/FAQ/linux.html#q1.22

Version 12.5.x (x86-32)

Used version 12.5.3-ebf12339

Redhat EL-Linux-4.0

(CentOS-4.x and Xos-Linux-4 use binaries similar to Redhat EL-Linux-4 )

Fedora Core-5

This release of the RedHat development-line is based on NPTL (The Native POSIX Threading Library) that has replaced Linux Threads completely.

Debian 3.1 (sarge)

Ubuntu 6.06(dapper)

Expect test-results here in a few days.

Version 12.5.x (x86-64)

Software not yet delivered.


Version 15.0.x (x86-32)

Used version 15.0.0-ebf13194

Redhat EL-Linux-4.0

Redhat x86-32 version

For a compact install choose "server install". Some might also select the X-server binaries, but for a real server this is of not much extra use. After everything is running, instal the rpm's from the CDrom in /cdrom/CentOS/RPMS below:

compat-libstdc++-296-2.96-132.7.2.i386.rpm
compat-libstdc++-33-3.2.3-47.3.i386.rpm

Some caveat's: Without the compat-rpm's, dataserver does not work.

[sybase@avondster ~]$ dataserver -v
dataserver: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

This is the problem:

[sybase@avondster ~]$ ldd ~/ASE-15_0/bin/dataserver
       libdl.so.2 => /lib/libdl.so.2 (0x006c4000)
       librt.so.1 => /lib/tls/librt.so.1 (0x00c86000)
       libm.so.6 => /lib/tls/libm.so.6 (0x006ca000)
       libnsl.so.1 => /lib/libnsl.so.1 (0x0089d000)
 ->    libstdc++.so.5 => not found                            <-
       libpam.so.0 => /lib/libpam.so.0 (0x00701000)
       libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00111000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00a40000)
       libc.so.6 => /lib/tls/libc.so.6 (0x00598000)
       /lib/ld-linux.so.2 (0x0057f000)
       libaudit.so.0 => /lib/libaudit.so.0 (0x00745000)

Redhat x86-64 version

works out of the box, when you choose a server install and also select the compat-packages.

[sybase@avondster ~]$ rpm -qa|grep compat
compat-openldap-2.1.30-4
compat-db-4.1.25-9
compat-libgcc-296-2.96-132.7.2
compat-libstdc++-296-2.96-132.7.2
compat-libstdc++-33-3.2.3-47.3
compat-libcom_err-1.0-5

Because of the mixed-library (32 and 64 bits) architecture of this distro, there are no problems with the 32-bit sybase binaries.

[sybase@avondster LUCSY03P]$ uname -a
Linux avondster 2.6.9-34.ELsmp #1 SMP Thu Mar 9 06:23:23 GMT 2006 x86_64 x86_64 x86_64 GNU/Linux

[sybase@avondster LUCSY03P]$ file ~/ASE-15_0/bin/dataserver
/opt/sybase/ASE-15_0/bin/dataserver: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, 
dynamically linked (uses shared libs), not stripped

[sybase@avondster LUCSY03P]$ ldd ~/ASE-15_0/bin/dataserver
       linux-gate.so.1 =>  (0xffffe000)
       libdl.so.2 => /lib/libdl.so.2 (0xf7fcc000)
       librt.so.1 => /lib/tls/librt.so.1 (0xf7fb8000)
       libm.so.6 => /lib/tls/libm.so.6 (0xf7f95000)
       libnsl.so.1 => /lib/libnsl.so.1 (0xf7f7f000)
       libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xf7ec6000)
       libpam.so.0 => /lib/libpam.so.0 (0xf7ebe000)
       libpthread.so.0 => /lib/tls/libpthread.so.0 (0xf7eab000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7ea3000)
       libc.so.6 => /lib/tls/libc.so.6 (0xf7d79000)
       /lib/ld-linux.so.2 (0xf7fe9000)
       libaudit.so.0 => /lib/libaudit.so.0 (0xf7d6b000)

[sybase@avondster LUCSY03P]$ ls -ald /lib*
drwxr-xr-x  10 root root 4096 Jun  4 14:12 /lib
drwxr-xr-x   6 root root 4096 Jun  4 14:10 /lib64

Debian 3.1 (sarge)

Ubuntu 6.06(dapper)

Ubuntu x86-32 version

works out of the box. Just give the box some extra System-V shared memory before starting srvbuild(res).

sybase@saito:~$ file /opt/sybase/ASE-15_0/bin/dataserver
/opt/sybase/ASE-15_0/bin/dataserver: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

sybase@saito:~$ ldd /opt/sybase/ASE-15_0/bin/dataserver
       linux-gate.so.1 =>  (0xffffe000)
       libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f07000)
       librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7efe000)
       libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7edc000)
       libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7ec7000)
       libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7e0d000)
       libpam.so.0 => /lib/libpam.so.0 (0xb7e05000)
       libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7df3000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7de8000)
       libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7cb9000)
       /lib/ld-linux.so.2 (0xb7f19000)


Ubuntu x86-64 version

Sybase has now also released a 64 bit version for this distro. You can access get a copy here http://www.sybase.com/linuxpromo. When for some reason you want to stick to a 32 bit Sybase distribution see here http://www.petersap.nl/SybaseWiki/index.php/Running_a_32_bit_ASE_executable_with_a_64_bit_chip for details.

Version 15.0.x (x86-64)

Sybase has now also released a 64 bit version for this distro. You can access get a copy here http://www.sybase.com/linuxpromo.

Ubuntu

Ubuntu x86-64 version

Works out of the box.

ReplicationServer

The ReplicationServer on Linux-distro working matrix:
\ 12.5_x86-32 12.6_x86-64 15.0.0_x86-32 15.0.0-x86-64(not yet released)
RedHat-EL-4 x86-32 yes yes yes n.a.
RedHat-EL-4 x86-64 yes yes yes yes (expected)
Fedora-core5 x86-32  ?  ?  ? n.a.
Fedora-core5 x86-64  ?  ?  ?  ?
Debian-3.1_x86-32  ?  ?  ? n.a.
Debian-3.1_x86-64 no  ? no yes (expected)
Ubuntu-6.06_x86-32  ?  ?  ? n.a.
Ubuntu-6.06_x86-64 no  ? no yes (expected)


Version 12.6.x (x86-32)

Redhat EL-Linux-4.0

(CentOS-4.x and Xos-Linux-4 use binaries similar to Redhat EL-Linux-4 )

Debian 3.1 (sarge)

Ubuntu 6.06(dapper)

Openswitch

The Openswitch on Linux-distro working matrix:
\ 12.5_x86-32 12.6_x86-64 15.0.0_x86-32 15.0.0-x86-64(not yet released)
RedHat-EL-4 x86-32 yes yes yes n.a.
RedHat-EL-4 x86-64 yes yes yes yes (expected)
Fedora-core5 x86-32  ?  ?  ? n.a.
Fedora-core5 x86-64  ?  ?  ?  ?
Debian-3.1_x86-32  ?  ?  ? n.a.
Debian-3.1_x86-64 no  ? no yes (expected)
Ubuntu-6.06_x86-32  ?  ?  ? n.a.
Ubuntu-6.06_x86-64 no  ? no yes (expected)


Version 12.5.x (x86-32)

Redhat EL-Linux-4.0

Debian 3.1 (sarge)

Ubuntu 6.06(dapper)