我正在尝试将 Apache 2.4.58 从源代码安装到 AIX 7.2 上的自定义位置,但 make 总是遇到问题,我束手无策。我知道 build/aix 下有一个脚本,但据我所知,我们以前从未使用过它。以前,以这种方式从源代码安装从来都不是问题。
export CFLAGS="-m64"
export OBJECT_MODE=64
bison -pap_expr_yy --defines=/mylocation/apache/httpd-2.4.58/server/util_expr_parse.h -o /mylocation/apache/httpd-2.4.58/server/util_expr_pa
rse.c /mylocation/apache/httpd-2.4.58/server/util_expr_parse.y
make: 1254-059 The signal code from the last command is 13.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
make: 1254-004 The error code from the last command is 1.
Stop.
Bison 已安装并可以访问,所以我不确定它为什么遇到问题。
配置参数:./configure \
--prefix=/mylocation/apache/apache2458 \ --enable-rewrite \ --enable-so \ --with-ssl=/mylocation/apache/openssl \ --enable-ssl \ --with-included-apr \ --enable-dav \ --enable-dav-fs \ --enable-auth-digest \ --enable-proxy \ --with-pcre=/mylocation/apache/pcre2/bin/pcre2-config \ --with-expat=/mylocation/apache/expat \ --cache-file=/dev/null \ --exec-prefix=/mylocation/apache/apache2458 \ --libdir=/mylocation/apache2458/lib \ --includedir=/mylocation/apache/apache2458/include \ --bindir=/mylocation/apache/apache2458/bin
答案1
您可以使用新版本的bison在AIX上编译apache 2.4.58。新版本的bison(参考链接https://github.com/akimd/bison/commit/31d4ec28bd4f7ed001bb46457ea090812c7003a7)再次支持纯解析器语法,可从此处下载https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/bison/bison-3.8.2-2.aix7.1.ppc.rpm