Menu

recompile sybase_ct module on Linux

Jean-Paul Martin

Compilation of sybase_ct module on Linux

Apply this procedure if a PHP installation already exist on your Linux but the sybase_ct module is missing. You must know which php version is installed because you must recompile sybase_ct module for the same version.

For Red-Hat or Centos Linux.

You need gcc installed (as well as all other developpement tools checked during the php configure operation)

1 Download php source from php download site (Choose the same version as the one installed on youyr Linux)

2 Untar php distribution in a directory

3 Install files needed for building PHP extensions :

yum install php-devel.x86_64

4 Make and install new sybase_ct module :

cd your_php_source_installation
cd ext/sybase_ct
phpize

# Note for php 5.3.x you must modify 'php_sybase_ct.c' and replace
# PHP_FE_END
# by :
# {NULL, NULL, NULL}
# This is not necessary for other higher versions

# In file 'php_sybase_ct.h' you can change SYBASE_VERSION to
# CS_VERSION_157 rather than CS_VERSION_100 in order to support latest features

./configure --with-sybase-ct=/your_sybase_home/ASE157/OCS-15_0
make

# the new sybase_ct module should be generated in :
# "/your_php_source_installation/ext/sybase_ct/modules"

5 Copy new module :

# as root
cp /your_php_source_installation/ext/sybase_ct/modules/sybase_ct.so /usr/lib64/php/modules

6 Modify php.ini :

# php.ini file should be in /etc
vi /etc/php.ini
...
# add the following extension :
extension=/usr/lib64/php/modules/sybase_ct.so

Related

Wiki: install asemon_report on Linux

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.