1
votes

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

2
How did you install 2.4.2? Did you use rvm for that too? Could you run which rvm and report back? which ruby? - Leonel Galán
yeah, and I have solved the problem, thank you very much - Han Zheng

2 Answers

1
votes

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 :)

0
votes

Try using:

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