FreeBSD:无法安装Python 2.7

我似乎无法在我的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然后通过在/etc/make.conf中添加TAR = /usr/local/bin / bsdtar或通过符号链接到bsdtar来将libarchives tar设置为默认的tar二进制来实现解决方法.

上一篇:FreeBSD:在uwsgi中使用python3而不是python2


下一篇:用于在Linux和FreeBSD之间共享磁盘的文件系统