amh4.2安装pdo_mysql_安装失败 · Issue #8 · maicong/amh-4.2 · GitHub

在尝试使用AMH4.2安装pdo_mysql时遇到错误,日志显示缺少libmhash 0.8.15及libltdl.so.3库。手动编译mcrypt和PHP后,虽能成功进入面板,但安装脚本为何无法通过仍是个谜。
摘要由CSDN通过智能技术生成

截取了部分错误日志:

checking whether mhash >= 0.8.15... no

configure: error: "You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/"

make: *** No targets specified and no makefile found. Stop.

/home/amh_install/packages/untar/php-5.6.9/sapi/cli/php: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory

make: *** [ext/phar/phar.php] Error 127

Generating phar.phar

/home/amh_install/packages/untar/php-5.6.9/sapi/cli/php: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory

make: *** [ext/phar/phar.phar] Error 127

Generating phar.phar

/home/amh_install/packages/untar/php-5.6.9/sapi/cli/php: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory

make: *** [ext/phar/phar.phar] Error 127

cp: cannot create regular file /usr/local/php/etc/php-fpm.conf': No such file or directory cp: cannot create regular file/usr/local/php/etc/php-fpm-template.conf': No such file or directory

mkdir: cannot create directory /usr/local/php/etc/fpm': No such file or directory mkdir: cannot create directory/usr/local/php/var/run/pid': No such file or directory

touch: cannot touch `/usr/local/php/etc/fpm/amh.conf': No such file or directory

amh-mc.sh: line 620: /usr/local/php/sbin/php-fpm: No such file or directory

sed: can't read /usr/local/php/etc/php-fpm.conf: No such file or directory

sed: can't read /usr/local/php/etc/php-fpm.conf: No such file or directory

sed: can't read /usr/local/php/etc/php-fpm.conf: No such file or directory

sed: can't read /usr/local/php/etc/php-fpm.conf: No such file or directory

[OK] php-5.6.9 install completed.

怀疑是ldconfig的问题,但是手动执行ldconfig -v 发现库是存在的

[root@localhost AMH4.2-MC]# ldconfig -v |more

ldconfig: Can't stat /usr/local/libunwind/lib: No such file or directory

ldconfig: Can't stat /usr/local/mysql/lib/mysql: No such file or directory #这两条错误的路径不确定是不是也和AMH有关,待查证

/usr/local/lib:

libmcrypt.so.4 -> libmcrypt.so.4.4.8

libltdl.so.3 -> libltdl.so.3.1.0 #存在

libmhash.so.2 -> libmhash.so.2.0.1 #存在

/usr/local/gperftools/lib:

libprofiler.so.0 -> libprofiler.so.0.4.5

libtcmalloc_and_profiler.so.4 -> libtcmalloc_and_profiler.so.4.2.6

libtcmalloc.so.4 -> libtcmalloc.so.4.2.6

libtcmalloc_debug.so.4 -> libtcmalloc_debug.so.4.2.6

libtcmalloc_minimal.so.4 -> libtcmalloc_minimal.so.4.2.6

libtcmalloc_minimal_debug.so.4 -> libtcmalloc_minimal_debug.so.4.2.6

/usr/local/pcre/lib:

libpcre.so.1 -> libpcre.so.1.2.4

libpcrecpp.so.0 -> libpcrecpp.so.0.0.1

libpcreposix.so.0 -> libpcreposix.so.0.0.3

/usr/local/zlib/lib:

libz.so.1 -> libz.so.1.2.8

/usr/lib/mysql:

libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0

libmysqlclient.so.16 -> libmysqlclient.so.16.0.0

于是手工重新编译mcrypt和PHP,全部成功,安装完成后能进入面板了,但是不明白为什么安装脚本就会编译不成功呢?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值