简体   繁体   English

尝试通过rvm安装ruby时出现“运行make install时出错”

[英]“error while running make install” when trying to install ruby via rvm

I'm using macOS and I'm trying to install ruby 2.4.1 via rvm. 我正在使用macOS,并且尝试通过rvm安装ruby 2.4.1。 here is a log from my console 这是我的控制台上的日志

RETINA15M14:folder moi$ rvm install 2.4.1
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.12/x86_64/ruby-2.4.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl@1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/moi/.rvm/rubies/ruby-2.4.1, this may take a while depending on your cpu(s)...
ruby-2.4.1 - #downloading ruby-2.4.1, this may take a while depending on your connection...
ruby-2.4.1 - #extracting ruby-2.4.1 to /Users/moi/.rvm/src/ruby-2.4.1....
ruby-2.4.1 - #applying patch /Users/moi/.rvm/patches/ruby/2.4.1/random_c_using_NR_prefix.patch.
ruby-2.4.1 - #configuring..................................................................
ruby-2.4.1 - #post-configuration.
ruby-2.4.1 - #compiling...............................................................
ruby-2.4.1 - #installing.....
Error running '__rvm_make install',
please read /Users/moi/.rvm/log/1506928428_ruby-2.4.1/install.log
There has been an error while running make install. Halting the installation.

and here is what in the log https://pastebin.com/Lh3V0s2P , I'm not sure what to do next I tried every option I found I could find and nothing helped. 这是日志https://pastebin.com/Lh3V0s2P中的内容 ,我不确定下一步该怎么做,我尝试了我发现的所有选项,但没有任何帮助。 please tell me what whats wrong and how can it be solved. 请告诉我什么地方出了问题以及如何解决。

Try running the following before installing ruby. 在安装ruby之前,请尝试运行以下命令。

xcode-select --install

Refer here. 请参考这里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM