
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.
どのような助けでも大歓迎です。
答え1
おそらく、古いリリースの症状です。バージョン 7 には、.xz 拡張子を処理できない古いパッケージがあります。回避策としては、ports からインストールし、を追加するか、 にシンボリックリンクすることで、libarchives tar をデフォルトの tar バイナリに設定tar
できます。libarchive
TAR=/usr/local/bin/bsdtar
/etc/make.conf
bsdtar