与运行“ make install”时在AIX 7.2机器中安装PHP 7.2有关的错误

时间:2019-06-04 14:06:40

标签: apache aix php-7.2 make-install

我正在从Apache 2.4和源代码在AIX 7.2机器上安装PHP 7.2。按顺序使用以下命令。步骤1和2中没有错误。

1)./configure --prefix=/opt/php/install --with-config-file-path=/opt/php/install --with-apxs2=/opt/apache/install/bin/apxs --with-openssl=/opt/freeware/openssl --with-curl=/opt/curl/install --with-png-dir=/opt/freeware --with-zlib-dir=/opt/freeware --with-iconv=/opt/freeware --enable-mbstring --with-gd --with-gmp=/opt/gmp/install --enable-cli --disable-phar

2)make

3)make install.

出现以下错误。该如何解决?

        echo '\
\
        echo '\
\
Installing PHP SAPI module:       apache2handler
Use of uninitialized value in concatenation (.) or string at /opt/apache/install/bin/apxs line 222.
/opt/apache/install/build/instdso.sh SH_LIBTOOL='/opt/apache/install/build/libtool' libphp7.la /opt/apache/install/modules
rm -f /opt/apache/install/modules/libphp7.so
/opt/apache/install/build/libtool --mode=install install libphp7.la /opt/apache/install/modules/
libtool: install: install .libs/libphp7.a /opt/apache/install/modules/libphp7.a
find: bad status-- /opt/apache/install/modules/libphp7.a
install: File libphp7.a was not found.
apxs:Error: Command failed with rc=131072
.
make: The error code from the last command is 1.

Stop

我认为无法将libphp7.a文件从PHP的./libs文件夹复制到apache / install / modules。

1 个答案:

答案 0 :(得分:0)

这是AIX的典型错误。在第二个会话中,在进行make安装之前,在while循环中运行一个复制命令(cp .lib / libphp7.a / apache / modules /)。