FreeBSD Unrecognized archive format


錯誤問題 (FreeBSD 7)

1
2
3
tar: Unrecognized archive format: Inappropriate file type or format
tar: Error exit delayed from previous errors.
*** Error code 1

可以嘗試

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 更新 libtool >= 2.4
cd /usr/ports/devel/libtool
make reinstall

# 移除 TAR 的指向,和編譯設置
unsetenv TAR
vim /etc/make.conf

# TAR=/usr/bin/bsdtar
MAKE_JOBS_UNSAFE=yes

# 安裝 libarchive
cd /usr/ports/archivers/libarchive
make install

# 建立軟連結
ln -sf /usr/local/bin/bsdtar /usr/bin/tar

# 測試版本
bsdtar 3.1.2 - libarchive 3.1.2

# 如果在安裝 libarchive 時出現錯誤可以嘗試
make clean
make rmconfig
make ac_cv_header_spawn_h=no MAKE_JOBS_UNSAFE=yes