RE: PHP 7.2 DB2 Driver

From: Date: Wed, 29 Jan 2020 15:22:53 +0000
Subject: RE: PHP 7.2 DB2 Driver
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-326997@lists.php.net to get a copy of this message
Hello Christopher, Thank you so much for responding to my email. Yes, I have read and followed the instructions. I have read the instruction from PECL and from IBM. I have read and followed all the README files from all the downloads. There just seems to be something "missing" from the PHP 7.2 installation. I have a laptop running Debian 8 (Jessie) with PHP 5, and the PECL install works perfectly. No problem on the download or compile. And we get the ibm_db2.so shared object file in the PHP Extension directory (2013126). On PHP 7.2 the PECL download get a cross-compile error indicating a platform inconsistency. So, for the manual compile we added --host=amd64 and that got us passed the cross-compile error. But then the compiler complained about not finding the include directory for the header files. I was unable to concatenate the include directory on the IBM_DB2_HOME system variable, so we just copied the include directory to the lib (IBM CLI) directory. Finally we got a clean compile, but no ibm_db2.so file. If we could figure out how to generate the .so file from the Make file, I think we would be home free. Thanks again. -----Original Message----- From: Christoph M. Becker <cmbecker69@gmx.de> Sent: Wednesday, January 29, 2020 8:58 AM To: Robin Luzi <robin.luzi@pisd.edu>; php-general@lists.php.net Subject: Re: PHP 7.2 DB2 Driver CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you validate the sender and know the content is safe. On 29.01.2020 at 15:22, Robin Luzi wrote: > I am not sure this is the mailing list to ask this question, but if not maybe someone can > direct me to the one I need to use. We are trying to install the IBM DB2 driver on Ubuntu 18.04 with > PHP 7.2. We have attempted to install the PECL package but it fails. We have download the IBM Server > Driver package but it does not contain the ibm_db2.so file. We have download the source from PECL > and done a manual compile. And while we have successfully compiled the code after considerable > difficulties, it does not produce the ibm_db2.so file. It does produce libibm_db2.a, however. > > Has anyone successfully created the ibm_db2.so file for PHP 7.2? Have you read the installation instructions[1]? Would they work, or is that info out-dated? [1] <https://www.php.net/manual/en/ibm-db2.installation.php> -- Christoph M. Becker

« previous php.general (#326997) next »