文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>apache: [libapr-1.la] Error 1

apache: [libapr-1.la] Error 1

时间:2008-10-28  来源:yangle21g


###################

原创,转载请注明出处
###################
centos5 安装 apache 的时候的错误
这是错误信息
libtool: link: `passwd/apr_getpass.lo' is not a valid libtool object
make[3]: *** [libapr-1.la] Error 1
make[3]: Leaving directory `/usr/src/httpd-2.2.10/srclib/apr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/httpd-2.2.10/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/httpd-2.2.10/srclib'
make: *** [all-recursive] Error 1
这是./configure后的文件目录
[root@localhost httpd-2.2.10]# ls
ABOUT_APACHE    Makefile          acinclude.m4      configure.in  os
Apache.dsw      Makefile.in       apachenw.mcp.zip  docs          server
BuildAll.dsp    Makefile.win      build             emacs-style   srclib
BuildBin.dsp    NOTICE            buildconf         httpd.dsp     support
CHANGES         NWGNUmakefile     config.layout     httpd.spec    test
INSTALL         README            config.log        include
InstallBin.dsp  README.platforms  config.nice       libhttpd.dsp
LAYOUT          ROADMAP           config.status     modules
LICENSE         VERSIONING        configure         modules.c

解决办法:
需要apr-util和apr的包,要求要到更高的版本,去下载个最新的装上就可以了
# 编译和安装 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

# 配置 httpd
cd ../../
./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载