我有freeBSD 8.4,我想安装 git 。我尝试了以下步骤:
$ pkg_add -r git
Error: Unable to get http://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.4-release/Latest/git.tbz: Not Found
pkg_add: unable to fetch 'http://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.4-release/Latest/git.tbz' by URL
然后我尝试了:
$ cd /usr/ports/devel/git
$ make install clean
.
.
twofish-amd64.S: Assembler messages:
twofish-amd64.S:195: Error: `(%r8d,%r9d,2)' is not a valid 64 bit base/index expression
twofish-amd64.S:195: Error: `(%r8d,%r9d,2)' is not a valid 64 bit base/index expression
twofish-amd64.S:196: Error: `(%r8d,%r9d,2)' is not a valid 64 bit base/index expression
twofish-amd64.S:196: Error: `(%r8d,%r9d,2)' is not a valid 64 bit base/index expression
so on....
*** Error code 1
Stop in /usr/ports/security/libgcrypt/work/libgcrypt-1.7.3/cipher.
*** Error code 1
Stop in /usr/ports/security/libgcrypt/work/libgcrypt-1.7.3.
*** Error code 1
Stop in /usr/ports/security/libgcrypt/work/libgcrypt-1.7.3.
*** Error code 1
Stop in /usr/ports/security/libgcrypt.
*** Error code 1
Stop in /usr/ports/security/libgcrypt.
*** Error code 1
Stop in /usr/ports/textproc/libxslt.
*** Error code 1
Stop in /usr/ports/textproc/libxslt.
*** Error code 1
Stop in /usr/ports/textproc/xmlto.
*** Error code 1
Stop in /usr/ports/textproc/xmlto.
*** Error code 1
Stop in /usr/ports/devel/git.
*** Error code 1
Stop in /usr/ports/devel/git.
我在各种论坛上看到但失败了。我在一些freebsd中看到git应用程序已安装并存在于/ usr / local / bin / git中。
我也试过了pkg install git
。但那也失败了。
如果有任何办法,请告诉我。
答案 0 :(得分:3)
搜索 git.tbz 的端口树。一个在这里 FreeBSD 8.1 ports tree
现在设置环境变量PACKAGESITE并执行以下操作:
$ setenv PACKAGESITE http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/amd64/packages-8.1-release/Latest/
$ pkg_add -r git
这样做会很好。