Reputation: 3937
I am trying to configure PHP-informix environment on ubuntu 11.10.I am installed PDO and pdo_sqlite and soap but i can not install pdo_informix.I dont know what is the next step.
I got this screenshot when i check it on openadmin tool.i am stuck with this step.
Upvotes: 1
Views: 461
Reputation: 11
I struggled for few days too but I eventually got it right. I used the below steps to create the connection to informix DB:
informix_pdo
file in the directory.cd PDO_INFORMIX-1.3.1/
.INFORMIXDIR
: $ export INFORMIXDIR=/myifx/csdk
.phpize
: $ phpize
$ ./configure
.$ make
.$ make install
.$ cd /etc/php5/conf.d $ echo "extension=pdo_informix.so" > pdo_informix.ini
Upvotes: 1
Reputation: 753455
One likely problem is that the environment is not set correctly to find the Informix libraries that PDO_Informix uses. You would normally need LD_LIBRARY_PATH to include $INFORMIXDIR/lib and $INFORMIXDIR/lib/esql. As an alternative, you could use or edit the ld.so.conf
file, perhaps.
You may find you need to set $INFORMIXDIR itself, and $INFORMIXSERVER too (or maybe instead).
Upvotes: 0