user188276
user188276

Reputation:

rbenv install 2.4.0 fails in Mac OS Sierra 10.12.6

> rbenv install 2.4.0 ruby-build: use openssl from homebrew Downloading
> ruby-2.4.0.tar.bz2...
> -> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2 Installing ruby-2.4.0... ruby-build: use readline from homebrew
> 
> BUILD FAILED (OS X 10.12.6 using ruby-build 20170726)
> 
> Inspect or clean up the working tree at
> /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759
> Results logged to
> /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759.log
> 
> Last 10 log lines:   Referenced from: /usr/local/bin/tar   Expected
> in: /usr/lib/libSystem.B.dylib
> 
> dyld: Symbol not found: _utimensat   Referenced from:
> /usr/local/bin/tar   Expected in: /usr/lib/libSystem.B.dylib
> 
> /usr/local/bin/ruby-build: line 344: 21953 Abort trap: 6           tar
> $tar_args "$package_filename"
> /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759/ruby-2.4.0
> /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759
> ~/Documents/Github /usr/local/bin/ruby-build: line 563: ./configure:
> No such file or directory

contents for /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build‌​.20170728015414.2175‌​9.log

dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /usr/local/bin/tar Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _utimensat Referenced from: /usr/local/bin/tar Expected in: /usr/lib/libSystem.B.dylib

/usr/local/bin/ruby-build: line 344: 21953 Abort trap: 6 tar $tar_args "$package_filename" /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759/ruby-2.4.0 /var/folders/9_/xjrq9lv11hl_82pmlzqh3h0m0000gn/T/ruby-build.20170728015414.21759 ~/Documents/Github /usr/local/bin/ruby-build: line 563: ./configure: No such file or directory

Upvotes: 1

Views: 1944

Answers (2)

Roman Tikhonov
Roman Tikhonov

Reputation: 81

xcode-select --install

fixes the similar ruby 2.4.2 installation problem on MacOS Sierra, happening when XCode 9 is installed without XCode Developer Tools.

Upvotes: 0

user188276
user188276

Reputation:

brew uninstall tar 

rbenv install ruby 2.4.0

Now it works, so looks like gnu-tar didn't play well with Mac OS 10.12.16 at the moment, must fall back to native macos tar

thanks @LucasCosta

Upvotes: 1

Related Questions