gpt4 book ai didi

php - 安装 mqseries PHP 时出现问题 - Ubuntu

转载 作者:太空宇宙 更新时间:2023-11-04 03:45:30 26 4
gpt4 key购买 nike

我正在尝试在 PHP 中使用 mqseries 扩展,但遇到了麻烦。错误显示:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/mqseries.so' - libmqic.so: wrong ELF class: ELFCLASS32 in Unknown on line 0*`

命令 dspmqver -a 命令向我显示

Name: WebSphere MQ
Version: 7.5.0.4
Level: p750-004-140807
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 3.11.0-19-generic
InstName: Installation1
InstDesc:
Primary: Yes
InstPath: /opt/mqm
DataPath: /var/mqm
MaxCmdLevel: 750
AMQ8351: WebSphere MQ Java environment has not been configured correctly.
AMQ8351: WebSphere MQ Java environment has not been configured correctly.

Name: IBM Global Security Kit for WebSphere MQ
Version: 8.0.14.43
Build Type: Production
Mode: 64-bit

mqseries 扩展的版本是 mqseries 0.14.1。有人可以帮助我吗?

最佳答案

MQ 版本 v7.5 是 64 位,但您的连接库是 x86(32 位)二进制文件。

无论如何,您可以检查您的库:

$ file lib/libmqic.so lib64/libmqic.so
lib/libmqic.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
lib64/libmqic.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped

...您应该将 32 位库文件夹 (/opt/mqm/lib) 添加到 LD_LIBRARY_PATH。

关于php - 安装 mqseries PHP 时出现问题 - Ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28351542/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com