我正在尝试安装用于 Subversion 的 Python 绑定:
# cd /usr/ports/devel/py-subversion
# make
===> Patching for py26-subversion-1.6.15
===> Applying extra patch /usr/ports/devel/py-subversion/../../devel/subversion/files /bindings-patch-subversion--bindings--swig--perl--native--Makefile.PL.in
cannot open /usr/ports/devel/py-subversion/../../devel/subversion/files/bindings-patch-subversion--bindings--swig--perl--native--Makefile.PL.in: No such file or directory
*** Error code 2
是的,中没有这样的文件subversion/files
,但有文件patch-subversion::bindings::swig::perl::natives::Makefle.PL.in
(用冒号代替连字符)。
重命名并重新运行后,make
我收到另一个错误:
# make
===> Patching for py26-subversion-1.6.15
===> Applying extra patch /usr/ports/devel/py-subversion/../../devel/subversion/files/bindings-patch-subversion--bindings--swig--perl--native--Makefile.PL.in
cannot open /usr/ports/devel/py-subversion/../../devel/subversion/files/bindings-patch-subversion--bindings--swig--perl--native--Makefile.PL.in: No such file or directory
*** Error code 2
但现在没有什么像的bindings-*
了subversion/files
。
那么,问题是为什么会这样以及我该如何安装 py-subversion?
PS:FreeBSD 在虚拟专用服务器上运行,所以我认为它以某种方式被修补了。
# uname -a
FreeBSD mskhug.ru 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0 r50: Thu Feb 24 10:15:34 IRKT 2011 [email protected]:/root/src/sys/amd64/compile/DEBUG amd64
答案1
首先要尝试:
删除整个端口树
获取最新的端口树
# rm -rf /usr/ports
# portsnap fetch
# portsnap extract
然后尝试再次进行端口创建。