
Parece que no puedo instalar Python 2.7 en mi sistema FreeBSD. Aquí hay algo de información:
# portsnap update
Ports tree is already up to date.
Versión:
# uname -r
7.1-RELEASE
Instalación:
# 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.
Cualquier ayuda es muy apreciada.
Respuesta1
Lo más probable es que sea un síntoma de una versión obsoleta. La versión 7 tiene un tar
paquete antiguo que no puede manejar la extensión .xz. Se puede lograr una solución instalando libarchive
desde los puertos y luego configurando libarchives tar en el binario tar predeterminado agregando TAR=/usr/local/bin/bsdtar
o /etc/make.conf
creando un enlace simbólico al archivo bsdtar
.