截取了部分错误日志:
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,全部成功,安装完成后能进入面板了,但是不明白为什么安装脚本就会编译不成功呢?