rbenv install 2.4.1 fails on High Sierra 10.13.2 with the following error.

Created on 8 Dec 2017  路  3Comments  路  Source: rbenv/rbenv

CONFIGURE_OPTS="--with-openssl-dir=brew --prefix openssl`" rbenv install 2.4.1
ruby-build: use openssl from homebrew
Downloading ruby-2.4.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.bz2
Installing ruby-2.4.1...
ruby-build: use readline from homebrew

BUILD FAILED (OS X 10.13.2 using ruby-build 20170914)

Inspect or clean up the working tree at /var/folders/88/c6kzzp1s0ml1n0d85gbt6df00000gn/T/ruby-build.20171208170319.9963
Results logged to /var/folders/88/c6kzzp1s0ml1n0d85gbt6df00000gn/T/ruby-build.20171208170319.9963.log

Last 10 log lines:
checking for long long... yes
checking for off_t... yes
checking char bit... 8
checking size of int... 0
checking size of short... 0
checking size of long... 0
checking size of long long... configure: error: in /var/folders/88/c6kzzp1s0ml1n0d85gbt6df00000gn/T/ruby-build.20171208170319.9963/ruby-2.4.1': configure: error: cannot compute sizeof (long long) Seeconfig.log' for more details
make: * No targets specified and no makefile found. Stop.`

This is not just with this version , but any version I try. It would appear to be a gcc/clang issue, but not obvious how to work around it. All suggestions gratefully received. Happy to test potential solutions to get this working.

Most helpful comment

All 3 comments

ruby-build.20171209085326.24028.log

Attached the log file.

I cannot reproduce using latest ruby-build version and same version of macOS. There must be something additional installed on your system (such as MacPorts) that aborts the build process.

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I'm going to close this since this is the wrong project to report these issues to. If you have more information, please report to https://github.com/sstephenson/ruby-build/issues

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sandys picture sandys  路  4Comments

slayer picture slayer  路  4Comments

nguyenhuuphuc83 picture nguyenhuuphuc83  路  3Comments

HuckyDucky picture HuckyDucky  路  4Comments

dazza-codes picture dazza-codes  路  4Comments