httpd2.2.19源代码编译时出错了,参数:./configure --prefix=/usr/local/apache --enable-so
出错信息:
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
configure failed for srclib/apr-util
编译好几次了一直是这个错误!
red hat linux5 编译安装apache出错了
答案:3 悬赏:40
解决时间 2021-04-21 15:38
- 提问者网友:霸道又专情♚
- 2021-04-21 00:26
最佳答案
- 二级知识专家网友:甜野猫
- 2021-04-21 01:33
apr和apr-util包含在Apache httpd的发行源代码中,并且在绝大多数情况下使用都不会出现问题。当然,如果apr或apr-util的1.0或1.1版本已经安装在你的系统中了,则必须将你的apr/apr-util升级到1.2版本,或者将httpd单独分开编译。要使用发行源代码中自带的apr/apr-util源代码进行安装,你必须手动完成:
# 编译和安装 apr 1.2
cd srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make
make install
# 编译和安装 apr-util 1.2
cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
make
make install
# 编译和安装 apr 1.2
cd srclib/apr
./configure --prefix=/usr/local/apr-httpd/
make
make install
# 编译和安装 apr-util 1.2
cd ../apr-util
./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
make
make install
全部回答
- 1楼网友:浪者不回头
- 2021-04-21 02:58
./configure 后不要加参数也可以啊 默认的路径是/usr/local/apache2 ,具体的 你可以通过./configure --help查看下,我觉得--enable-so有问题
- 2楼网友:一场云烟
- 2021-04-21 02:34
应该是和oracle jvm feature有关的报错。如果db里不需要用oracle jvm feature,可以忽略。
如果必须要用jvm,可从dbca的建库log找出错误详细的信息。还就是查一下hs_err_pid5311.log里的出错提示。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯