免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5110 | 回复: 2
打印 上一主题 下一主题

安装apache2.2.9中遇到apr、subversion相关错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-06 16:36 |只看该作者 |倒序浏览
我刚装的FreeBSD7,cvsup后变成了freeBSD current8.0,然后apache22下make install失败,信息提示大概是apr的问题。看了看apache手册和google,照猫画虎的操作:
# 编译和安装 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/

依然错误。

再看看ports/UPDATING,发现有如下提示:
2008-06-22
Affects: users of devel/subversion, subversion-devel and subversion-freebsd
         with apr from www/apache22
Author: Clement Laforet <clement@FreeBSD.org>
Reason:
  apr and apr-util bundled with apache 2.2.9 have been upgraded to 1.3.x, so
  shared libraries' versions have been bumped. If you are using subversion
  with apache22 apr, you must rebuild subversion after the update.


于是到devel/subversion下make install,还是错误:
……===>   Returning to build of subversion-1.5.2
===>   subversion-1.5.2 depends on shared library: serf-0.0 - not found
===>    Verifying install for serf-0.0 in /usr/ports/www/serf
===>  Vulnerability check disabled, database not found
=> serf-0.2.0.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://serf.googlecode.com/files/.
serf-0.2.0.tar.bz2                            100% of  134 kB   91 kBps
===>  Extracting for serf-0.2.0
=> MD5 Checksum OK for serf-0.2.0.tar.bz2.
=> SHA256 Checksum OK for serf-0.2.0.tar.bz2.
===>  Patching for serf-0.2.0
===>   serf-0.2.0 depends on executable: gmake - found
===>   serf-0.2.0 depends on shared library: apr - found
===>  Configuring for serf-0.2.0
checking for chosen layout... Serf
checking for working mkdir -p... yes
checking build system type... i386-portbld-freebsd8.0
checking host system type... i386-portbld-freebsd8.0
checking target system type... i386-portbld-freebsd8.0

Configuring Apache Portable Runtime library...

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.
===>  Script "configure" failed unexpectedly.
Please report the problem to rodrigc@FreeBSD.org [maintainer] and attach the
"/usr/ports/www/serf/work/serf-0.2.0/config.log" including the output of the
failure of your make command. Also, it might be a good idea to provide an
overview of all packages installed on your system (e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/serf.
*** Error code 1

Stop in /usr/ports/devel/subversion.
*** Error code 1

Stop in /usr/ports/devel/subversion.

好像还是和APR有关的错误,我头都大了。

再看看ports/UPDATING,和devel/subversion相关的还有如下信息:

2008-07-01
Affects: users of devel/subversion*
Author: Lev Serebryakov <lev@FreeBSD.org>
Reason:
  subversion now uses neon-0.28.x (www/neon2 port, and automatic
  portupgrade will fail because www/neon28 will conflict with installed
  www/neon26 port.

  You should upgrade neon library before subversion with the command:

        # portupgrade -o www/neon28 neon26

  Also, if you use any special subversion ports with bindings, you
  should upgrade these ports to clean subversion port with

        # portupgrade -o devel/subversion subversion-\*

  and install needed bindings (p5-subversion, py-subversion and/or
  ruby-subversion) after that.

  If you use subversion with bindings installed from devel/subversion
  with custom options, don't forget to install separate bindings ports
  after subversion upgrade.

看了半天没看懂,因此没敢操作。

我的E文太烂,对BSD更是不熟悉,请过来人指点迷津,不胜感谢。

[ 本帖最后由 iamrch 于 2008-10-6 16:39 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-10-08 15:03 |只看该作者
自己再顶一下,我一知半解的又实验了N次,始终未能装上apache2.2.9。

没有方向,就是没头苍蝇。

请各位老兄指点方向,谢……

论坛徽章:
0
3 [报告]
发表于 2008-10-09 21:50 |只看该作者
唉,重装系统,cvsup RELENG_7_0的src和ports,没有make world,直接在apache22下 make install clean 一次性成功。

难道current8.0下编译apache2.2.9_5就有问题?

不解……
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP