Failure while executing: tar xJf during installation of libpng


(Ganzman1) #1

Hi,

I couldnt find any post on the issue, but it seems to me like brew is not taring correctly.

here’s what i get:Downloading ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1
######################################################################## 100.0%
Usage:
List: tar -tf
Extract: tar -xf
Create: tar -cf [filenames…]
Help: tar --help
Error: Failure while executing: tar xJf /Users/Ganzman/Library/Caches/Homebrew/libpng-1.6.26.tar.xz
MrGs-iMac:~ Ganzman$ tar xJf /Users/Ganzman/Library/Caches/Homebrew/libpng-1.6.26.tar.xz
Usage:
List: tar -tf
Extract: tar -xf
Create: tar -cf [filenames…]
Help: tar --help

thanks in advance for any help

i am running on OS X Mavericks


(Mike McQuaid) #2

What does which tar output? It seems likely it’s not /usr/bin/tar (which is what it should be).


(Ganzman1) #3

I don’t know…
That’s all the output I got from the brew.

Thanks


(Mike McQuaid) #4

Please run the requested commands and print their output, thanks.


(Ganzman1) #5

which tar
/usr/bin/tar


(Mike McQuaid) #6

What does brew config output?


(Ganzman1) #7

brew config
HOMEBREW_VERSION: 1.1.5
ORIGIN: h_ttps://github.com/Homebrew/brew
HEAD: 9cd5a21b473f0271b162bbe7f77f7d1468c0cfa1
Last commit: 13 days ago
Core tap ORIGIN: ht_tps://github.com/Homebrew/homebrew-core
Core tap HEAD: e151bf001ec17ff2d6ac5683448a4bfbd083235c
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: ht_tps://homebrew.bintray.com
CPU: dual-core 64-bit penryn
Homebrew Ruby: 2.0.0-p481
Clang: 6.0 build 600
Git: 1.9.5 => /Library/Developer/CommandLineTools/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_112
macOS: 10.9.5-x86_64
Xcode: 6.2
CLT: 6.2.0.0.1.1424975374
X11: 2.7.11 => /opt/X11


(Ganzman1) #8

i added _ in the http due to new user limitations


(Mike McQuaid) #9

Thanks! And your brew list?


(Ganzman1) #10

Mike,

brew list produced:

jpeg makedepend pkg-config

libusb openssl wget


(Mike McQuaid) #11

No idea what’s going on here, I’m afraid. Can you try to brew update and brew upgrade libpng? Thanks!


(Ganzman1) #12

Thanks Mike,

The outcome of upgrade said libpng is not installed.

brew update
Already up-to-date.

brew upgrade libpng
Error: libpng not installed

brew install libpng
==> Using the sandbox
==> Downloading ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1
Already downloaded: xxx/xxx/xxx/libpng-1.6.27.tar.xz
Usage:
List: tar -tf
Extract: tar -xf
Create: tar -cf [filenames…]
Help: tar --help
Error: Failure while executing: tar xJf xxx/xxx/xxx/libpng-1.6.27.tar.xz


(Mike McQuaid) #13

Not sure what the problem is here then, sorry. Have you considered updating to a later version of macOS?