在 FreeBSD 13.2 里尝试安装 iRedMail 1.6.8 - 放弃
原因:看到 iRedMail 群里有人说在 FreeBSD 13.2 里安装出错,提示如:
lsof-4.99.3_1,8 requires kernel sources.
error code 1
stop.
make stopped in /usr/ports/sysutils/lsof
error code 1
stop
make stooped to /usr/ports/devel/py-Jinjia2
error failed to downloading package, please fix it manually and then relaunch iRedMail installer.
我在一台国外的机子,配置是 Atom C2750, 8GB 内存里测试 iRedMail 的安装。遇到同样的报错信息。虽然可以手工下载 ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.2-RELEASE/src.txz 后继续安装,但通过 ports 编译软件,所需的时间太长了。过了约24小时,还没完成,当前界面信息停留在:
l' -Cprefer-dynamic -Z binary-dep-depinfo -L native=/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage0-rustc/x86_64-unknown-freebsd/release/build/psm-d1aad399e5dbb6f5/out -L native=/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/stage0-rustc/x86_64-unknown-freebsd/release/build/rustc_llvm-938455d976a8c95f/out -L native=/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/llvm/build/lib`
Building [=======================> ] 316/323: rustc_driver_impl
但我不想等待结果,放弃了。
-- Build files have been written to: /usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/lld/build
running: cd "/usr/ports/lang/rust/work/_build/x86_64-unknown-freebsd/lld/build" && DESTDIR="" "cmake" "--build" "." "--target" "install" "--config" "Release" "--" "-j" "1"
[ 1% 3/127] Building CXX object Common/CMakeFiles/lldCommon.dir/CommonLinkerContext.cpp.o^C
ninja: build stopped: interrupted by user.
Build completed unsuccessfully in 14:46:49
*** Error code 1
*** Signal 2
参考:
- https://github.com/iredmail/iRedMail/issues/197
- https://forum.iredmail.org/topic19648-freebsd-131release-and-iredmail-162-unexpected-fatal-error.html
- https://docs.iredmail.org/install.iredmail.on.freebsd.html
- https://unix.stackexchange.com/questions/204956/how-do-you-install-the-freebsd10-kernel-sources