php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76474 Cannot install mqseries
Submitted: 2018-06-14 10:12 UTC Modified: 2018-11-07 15:43 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: umilinayu at rshb dot ru Assigned:
Status: Open Package: mqseries (PECL)
PHP Version: Irrelevant OS: SLES 11 SP4
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-06-14 10:12 UTC] umilinayu at rshb dot ru
Description:
------------
I'm use most updated PHP 5.3 in SLES 11 SP4 64bit, and want to install PECL mqseries.

But when i use default install option, i got an error like " mqseries files in default path... not found", like bug #59072 of 2010 year.

I tryed the workaround of user "wilfried dot loche", but it cannot help to me, install operation not completed successfully.

Test script:
---------------
# pecl install mqseries-beta
downloading mqseries-0.15.0.tar ...
Starting to download mqseries-0.15.0.tar (500,224 bytes)
.....................................................................................................done: 500,224 bytes
10 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
building in /tmp/pear/temp/pear-build-rootT7pRNt/mqseries-0.15.0
running: /tmp/pear/temp/mqseries/configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/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 for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for icc... no
checking for suncc... no
checking whether gcc -std=gnu99 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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-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
checking for PHP extension directory... /usr/lib64/php5/extensions
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for mqseries support... yes, shared
checking for mqseries files in default path... not found
configure: error: Please reinstall the mqseries distribution
ERROR: `/tmp/pear/temp/mqseries/configure' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-21 13:39 UTC] umilinayu at rshb dot ru
I'am try to install mqseries on modern OS: SLES12+PHP7.
Too same error: 
checking for mqseries files in default path... not found
configure: error: Please reinstall the mqseries distribution
 [2018-07-17 15:27 UTC] m dot matveev114 at gmail dot com
Seems like u cant install mqseries from pecl on 64bit systems.
But, you can compile it from source, next steps worked for me
1) first of all, you should download and install ibmmq. It not easy to found it)
Download page http://www-01.ibm.com/support/docview.wss?uid=swg24037500#1
Debian packages https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev903_ubuntu_x86-64.tar.gz
RHEL packeges https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev80_linux_x86-64.tar.gz

2) after installation all packages on your system download mqseries source by command "pecl download mqseries-beta" and unpack it

3) # ./configure --with-php-config=/usr/bin/php-config --with-libdir=lib64

4) # make

5) add manually compiled extension (modules/mqseries.so) to php.ini. Command php-config --extension-dir helps to found ext-dir location on your system.
  
profit!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC