FreeBSD:无法安装Python 2.7

mormaii2

我似乎无法在FreeBSD系统上安装Python 2.7。这里是一些信息:

# portsnap update
Ports tree is already up to date.

版本:

# uname -r
7.1-RELEASE

安装:

# cd /usr/ports/lang/python27/
# make
===>  Found saved configuration for python27-2.7.5_1
=> Python-2.7.5.tar.xz doesn't seem to exist in /usr/ports/distfiles/python.
=> Attempting to fetch ftp://ftp.lv.freebsd.org/pub/FreeBSD/distfiles/python/Python-2.7.5.tar.xz
Python-2.7.5.tar.xz                           100% of    9 MB  159 kBps 00m00s
===> Fetching all distfiles required by python27-2.7.5_1 for building
===>  Extracting for python27-2.7.5_1
=> SHA256 Checksum OK for python/Python-2.7.5.tar.xz.
===>   python27-2.7.5_1 depends on file: /usr/local/bin/xz - found
tar: Unrecognized archive format: Inappropriate file type or format
tar: Error exit delayed from previous errors.
*** Error code 1

Stop in /usr/ports/lang/python27.
*** Error code 1

Stop in /usr/ports/lang/python27.

任何帮助都将受到高度赞赏。

提姆

最有可能是过时释放的症状。版本7具有较旧的tar程序包,无法处理.xz扩展名。一个解决可以通过安装来实现libarchive从端口,然后通过添加设置libarchives焦油默认焦油二进制文件TAR=/usr/local/bin/bsdtar/etc/make.conf或符号链接到bsdtar

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章