Han Zheng
Han Zheng

Reputation: 21

Error running '__rvm_make -j8' in MacOS

Now my ruby version is 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]

But my teachers in university ask us to install 2.3.1, so I have tried rvm install 2.3.1 but it reports

Error running '__rvm_make -j8',

please read /Users/mac/.rvm/log/1508247055_ruby-2.3.1/make.log There has been an error while running make. Halting the installation.

There is the make.log

dyld: lazy symbol binding failed: Symbol not found: _utimensat
Referenced from: /Users/mac/.rvm/src/ruby-2.3.1/./miniruby Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _utimensat Referenced from: /Users/mac/.rvm/src/ruby-2.3.1/./miniruby Expected in: /usr/lib/libSystem.B.dylib

Upvotes: 1

Views: 3500

Answers (3)

Naveed Shah
Naveed Shah

Reputation: 326

I was getting the same error while install ruby 2.5.1, Error running '__rvm_make -j8' ,

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

Worked for me. Thanks.

Upvotes: 0

user9869932
user9869932

Reputation: 7377

Try using:

brew install openssl
rvm install 2.3 --with-openssl-dir=/usr/local/opt/openssl

Upvotes: 0

Han Zheng
Han Zheng

Reputation: 21

I found the reason that is a bug of newest Xcode.

Probably because the font or coding format is not compatible, so if you try

xcode-select --install

and continue to try your install command

rvm install 2.3.1

It may help you :)

Upvotes: 1

Related Questions