|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58344 configure error
Submitted: 2008-09-16 07:59 UTC Modified: 2012-05-25 12:56 UTC
From: artur at bakaus dot de Assigned: pierrick (profile)
Status: Closed Package: mqseries (PECL)
PHP Version: 5.2.1 OS: Ubuntu 8.04 Server
Private report: No CVE-ID: None
 [2008-09-16 07:59 UTC] artur at bakaus dot de
install with pecl install mqseries-beta on ubuntu 8.04 server ends with error.

i installed a new ubuntu 8.04 server on a 64bit machine and wanted to load a mqseries extension. After install of the newest versions of php-pear and php5-dev i tried to run "pecl install mqseries-beta". This runs into error: "checking for mqseries files in default path... not found
configure: error: Please reinstall the mqseries distribution
ERROR: /tmp/pear/cache/mqseries-0.11.0/configure failed"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-18 15:53 UTC] l dot gouni at gmail dot com

root@gouni-laptop:/home/mqseries-0.9.0# phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
root@gouni-laptop:/home/mqseries-0.9.0# ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/php5/20060613+lfs
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... re2c
checking for re2c version... 0.13.3 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for mqseries support... yes, shared
checking for mqseries files in default path... not found
configure: error: Please reinstall the mqseries distribution
 [2010-02-10 16:15 UTC] wilfried dot loche at fr dot adp dot com
Hi Artur,

You may have succeeded in your compilation since a long time now ;)
Anyway, it could help other people with the same trouble.

I got the same issue on a 64bit server (HP Proliant DL360 G5 / SUSE10 SP2
4 HT Intel(R) Xeon(R) E5345 @ 2.30GHz / 8 Go RAM)

Here is what I had to do to make it work... not good way, but it works!

1. sed -i "s/\$MQSERIES_DIR\/lib/\$MQSERIES_DIR\/lib64/g" 
2. Edit configure: add lib64 here:
3. ./configure
4. edit Makefile, add lib64 here:
MQSERIES_SHARED_LIBADD = -Wl,-rpath,/opt/mqm/lib64 -L/opt/mqm/lib64 -lmqic

And it works for me:)

It would be a good idea to add the standard --with-libdir=lib64 option on configure, isnt'it?

Wilfried Loche
 [2012-05-25 12:56 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2012-05-25 12:56 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

You can now use --with-libdir=lib64
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Aug 08 07:01:25 2020 UTC