1 最后由 takyee (2012-03-18 09:16:51) 编辑

主题: 已解决!急急急!!iRedMail 0.7.4+FreeBSD 8.2 安装出错,

错误内容如下:

/usr/bin/find /usr/ports/textproc/libxml2/work/libxml2-2.7.8 -type f -name configure  -exec /bin/sh -c "  mtime=\$(date -r \$(stat -f '%m' \$0) '+%Y%m%d%H%M.%S');  /usr/bin/sed -i '.batman' -e 's|freebsd1\*)|freebsd1.\*)|g'  -e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \$0;  touch -mt \$mtime \$0" {} \; || /usr/bin/true
===>   libxml2-2.7.8_2 depends on executable: gmake - found
===>   libxml2-2.7.8_2 depends on executable: pkg-config - found
===>   libxml2-2.7.8_2 depends on shared library: iconv.3 - found
===>  Configuring for libxml2-2.7.8_2
configure: error: unrecognized option: `---with-html-dir=/usr/local/share/doc'
Try `./configure --help' for more information
===>  Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
"http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
solve the problem, report the build failure to the FreeBSD GNOME team at
gnome@FreeBSD.org, and attach (a)
"/usr/ports/textproc/libxml2/work/libxml2-2.7.8/config.log", (b) the output
of the failed make command, and (c) the gnomelogalyzer output. Also, it might
be a good idea to provide an overview of all packages installed on your system
(i.e. an `ls /var/db/pkg`). Put your attachment up on any website,
copy-and-paste into http://freebsd-gnome.pastebin.com, or use send-pr(1) with
the attachment. Try to avoid sending any attachments to the mailing list
(gnome@FreeBSD.org), because attachments sent to FreeBSD mailing lists are
usually discarded by the mailing list software.
*** Error code 1

Stop in /usr/ports/textproc/libxml2.
*** Error code 1

Stop in /usr/ports/lang/php5.
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.

回复: 已解决!急急急!!iRedMail 0.7.4+FreeBSD 8.2 安装出错,

问题已解决,感谢Zhang Huangbin的帮助


On Mar 16, 2012, at 5:23 PM, Zhang Huangbin wrote:

> 看了一下,是 /usr/ports/textproc/libxml2/Makefile 这个文件里有 typo error:
>
> CONFIGURE_ARGS?=---with-html-dir=${PREFIX}/share/doc \
>
> 这里 ?= 后面是连着3个-,正确的应该是两个。修改后即可。

此错误于26分钟前被修正了:
http://www.freebsd.org/cgi/cvsweb.cgi/p … 2/Makefile