umangjain Posted February 3, 2011 Share Posted February 3, 2011 Hey all, I am using this command to configure php with db2 and other stuff we need: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --libdir=/usr/lib64 --with-libdir=lib64 --with-zlib-dir=/usr/local/lib --with-mysql=mysqlnd --with-mysql-sock=/opt/lampp/var/mysql/mysql.sock --enable-mbstring --enable-soap --with-curl --with-dom=/opt/lampp --with-mcrypt=/opt/php-5.3.2/ext/mcrypt --with-pdo-odbc=ibm-db2,/opt/user1/sqllib --with-ibm_db2=/opt/user1/sqllib I have installed IBM db2 client and then made an instance for user "user1" But when I run this command, everything goes fine until this error shows up: checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... /opt/lampp/var/mysql/mysql.sock checking for MySQL UNIX socket location... /opt/lampp/var/mysql/mysql.sock checking for MySQLi support... no checking whether to enable embedded MySQLi support... no checking for Oracle (OCI8) support... no checking for IBM DB2 support... no configure: error: build test failed. Please check the config.log for details. You need to source your DB2 environment before running PHP configure: # . $IBM_DB2/db2profile I have already set $IBM_DB2 as /opt/user1/sqllib and run "source db2profile" command or ". db2profile" command before running the php configure command. Can you put some light on the problem? I have already installed using the similar command on two other machines but on this machine it keeps giving me error to source the db2profile file. Thanks, Umang Jain Quote Link to comment https://forums.phpfreaks.com/topic/226524-configuring-php-with-db2/ Share on other sites More sharing options...
trq Posted February 3, 2011 Share Posted February 3, 2011 Is there a particular reason your installing from source and not using a package manager? Quote Link to comment https://forums.phpfreaks.com/topic/226524-configuring-php-with-db2/#findComment-1169183 Share on other sites More sharing options...
umangjain Posted February 3, 2011 Author Share Posted February 3, 2011 Because I have access to terminal only and i want all those extension to be installed and I can't use XAMPP. Quote Link to comment https://forums.phpfreaks.com/topic/226524-configuring-php-with-db2/#findComment-1169186 Share on other sites More sharing options...
umangjain Posted February 3, 2011 Author Share Posted February 3, 2011 Thank you thorpe. It got solved. I was missing some libraries like curl library files and zlib library files for which there was no mention of in the error at all. But now it configures fine. Thanks, Umang Quote Link to comment https://forums.phpfreaks.com/topic/226524-configuring-php-with-db2/#findComment-1169189 Share on other sites More sharing options...
trq Posted February 3, 2011 Share Posted February 3, 2011 Because I have access to terminal only and i want all those extension to be installed and I can't use XAMPP. I still don't understand. You can use most package manager from a terminal and they all allow you to install whatever individual extensions you need for php without having to install them all. There also a hell of allot easier to maintain than doing it yourself. I understand there are at times certain reasons while compiling from source is a better option, the reasons you have given however don't really apply. Quote Link to comment https://forums.phpfreaks.com/topic/226524-configuring-php-with-db2/#findComment-1169227 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.