gpt4 book ai didi

apache2 - 在 Centos 6.2 (64bit) 上编译 Apache 2.4.3

转载 作者:行者123 更新时间:2023-12-04 19:35:03 25 4
gpt4 key购买 nike

我尝试在 Centos 6.2(64 位)上使用 apr-1.4.6 和 apr-util-1.5.1 编译 Apache 2.4.3。

./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-bz2 --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-native-ttf --with-t1lib=/usr --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --with-kerberos --enable-ucd-snmp-hack --enable-shmop --enable-calendar --with-libxml-dir=/usr --enable-xml --with-system-tzdata --with-mhash --with-apxs2=/usr/sbin/apxs --libdir=/usr/lib64/php --enable-pdo=shared --with-mysql=shared,/usr --with-mysqli=shared,/usr/lib64/mysql/mysql_config --with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config --without-pdo-sqlite --without-gd --disable-dom --disable-dba --without-unixODBC --disable-xmlreader --disable-xmlwriter --without-sqlite3 --disable-phar --disable-fileinfo --disable-json --without-pspell --disable-wddx --without-curl --disable-posix --disable-sysvmsg --disable-sysvshm --disable-sysvsem ./configure --with-included-apr --with-included-apr-util



当我发出这种情况时:

/root/httpd-2.4.3/srclib/apr/libtool: line 5989: cd: yes/lib: 没有这样的文件或目录
libtool: 链接: 无法确定 yes/lib'
make[3]: *** [libaprutil-1.la] Error 1
make[3]: Leaving directory
的绝对目录名/root/httpd-2.4.3/srclib/apr-util'
制作[2]: * [全递归] 错误 1
make[2]: 离开目录 /root/httpd-2.4.3/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
/root/httpd-2.4.3/srclib'
制作: *
[全递归] 错误 1

我错过了什么?

最佳答案

请执行以下操作:

# Build and install apr 1.2
cd srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make
make install

# Build and install apr-util 1.2
cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
make
make install

# Configure httpd
cd ../../
./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/

关于apache2 - 在 Centos 6.2 (64bit) 上编译 Apache 2.4.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13813856/

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