Home > Archive > SQL Anywhere for Linux > June 2005 > How to compile the php5 module?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to compile the php5 module?
Daigo Moriwaki

2005-06-06, 3:23 am

Hi,

The php5 binary module in SQL Anywhere 9.0.2 does not run with my PHP5.

Warning: dl(): sqlanywhere: Unable to initialize module
Module compiled with module API=20040412, debug=0, thread-safety=0
PHP compiled with module API=20041030, debug=0, thread-safety=0
These options need to match

This problem is same as the post at sybase.public.sqlanywhere.general:14831.


I was able to compile the module, which worked well, however, I'd like to know the
correct way to compile, because I am not good at PHP.

$ cd $ASANY9/src/php
$ phpize
$ ./configure
$ make
$ sudo make install

modules/sqlanywhere.so installed in /usr/lib/php5/20041030.

But there should be two thread types: php5_sqlanywhere9.so, php5_sqlanywhere9_r.so.
How can I produce them?


My environment:

hermes{daigo}% uname -a
Linux hermes 2.6.10-1-686 #1 Fri Mar 11 03:55:46 EST 2005 i686 GNU/Linux
hermes{daigo}% php -v
PHP 5.0.4-0.4 (cli) (built: May 20 2005 15:59:42) (Debian GNU/Linux)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
hermes{daigo}% dbeng9 -v
9.0.2.2552


Thanks,
Daigo

--
Daigo Moriwaki
iAnywhere Solutions K.K. [Tokyo]
daigo.moriwaki@ianywhere.com
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com