Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I can't seem to be able to install Python 2.7 on my FreeBSD system. Here is some info:

# portsnap update
Ports tree is already up to date.

Version:

# uname -r
7.1-RELEASE

Installation:

# 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.

Any help is highly appreciated.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Most likely a symptom of an obsolete release. Version 7 has an older tar package that cannot handle the .xz extension. A work around can be achieved by installing libarchive from ports and then setting libarchives tar to the default tar binary by adding TAR=/usr/local/bin/bsdtar in /etc/make.conf or by symlinking to the bsdtar.

share|improve this answer
    
Thanks! This solved it for me! –  mormaii2 Jul 24 '13 at 19:57
    
Great! Glad to help :) –  Tim Jul 24 '13 at 20:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.