中国网络水泥 发表于 2018-11-20 10:44:18

Apache 编译 --with-apr parameter is incorrect 错误

the --with-apr parameter is incorrect错误
  发表于2年前(2014-01-24 11:14)   阅读(3765) | 评论(0) 1人收藏此文章, 我要收藏
  摘要 安装apr和apr-util时提示:./configure --prefix=/usr/local/apr=util --with-apr=/usr/local/apr;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.的错误
  log4cxx安装
  因为项目需要按照log4cxx 0.10.0,然后根据Linux下编译安装log4cxx 0.10.0 这篇文章编译,发现安装apr-util-1.3.9的下边这一步是提示错误:
  ?
1$./configure --prefix=/usr/local --with-apr=/usr/local/apr/*这步出现问题*/  提示:./configure --prefix=/usr/local/apr=util --with-apr=/usr/local/apr;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.的错误
  原因是在安装apr时,下边这步没有写对:
  ?
1$./configure --prefix=/usr/local /*这步有问题*/  修改如下:
  ?
1$./configure --prefix=/usr/local/apr  这样问题就解决了,不知道是因为写上边那篇文章用的版本和我的不一样导致的还是作者粗心导致,我用的是新的版本(apr-1.5.0;apr-util-1.5.3;时间2014-1-24)。
  补充:
  后边在编译安装log4cxx时,会提示未定义(缺少头文件),可以参考下边这篇文章:
  Linux下编译和安装log4cxx
  ?
1treamreader.cpp:66: error: 'memmove' was not declared in this scope /*这是提示的错误,未定义*/
页: [1]
查看完整版本: Apache 编译 --with-apr parameter is incorrect 错误