无法安装ruby-2.3.4

时间:2018-06-04 21:09:34

标签: ruby ruby-2.3

我正在尝试在我的mac中安装ruby-2.3.4,但没有运气。以下是系统规范:

macOS Sierra 版本10.12.6

我默认使用ruby 2.0并且设法安装ruby 2.5.1p57(2018-03-29修订版63029)[x86_64-darwin16]

以下是我执行rvm install ruby-2.3.4

时引发的错误
ruby-2.3.4 - #removing src/ruby-2.3.4..
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.12/x86_64/ruby-2.3.4.
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/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/someuser/.rvm/rubies/ruby-2.3.4, this may take a while depending on your cpu(s)...
ruby-2.3.4 - #downloading ruby-2.3.4, this may take a while depending on your connection...
ruby-2.3.4 - #extracting ruby-2.3.4 to /Users/someuser/.rvm/src/ruby-2.3.4.....
ruby-2.3.4 - #applying patch /Users/someuser/.rvm/patches/ruby/ruby_2_3_gcc7.patch.
ruby-2.3.4 - #applying patch /Users/someuser/.rvm/patches/ruby/2.3.4/fix_rb_thread_fd_close.patch.
ruby-2.3.4 - #applying patch /Users/someuser/.rvm/patches/ruby/2.3.4/random_c_using_NR_prefix.patch.
ruby-2.3.4 - #configuring...........................................................
ruby-2.3.4 - #post-configuration.
ruby-2.3.4 - #compiling...........
Error running '__rvm_make -j8',
please read /Users/someuser/.rvm/log/1528143943_ruby-2.3.4/make.log
There has been an error while running make. Halting the installation.

任何见解/想法可能会发生什么?

以下是make.log文件的底线。

compiling enc/unicode.c
compiling enc/utf_8.c
compiling enc/trans/newline.c
1 warning generated.
linking miniruby
generating encdb.h
make: ./miniruby: Permission denied
make: ./miniruby: Permission denied
make: *** [.rbconfig.time] Error 1
make: *** Waiting for unfinished jobs....
make: *** [encdb.h] Error 1
++ return 2
显然,它说Permission被拒绝了。但我不确定它在谈论什么样的许可?我可以毫无问题地安装ruby 2.5.1p57

1 个答案:

答案 0 :(得分:0)

rvm reload做了魔术。在运行rvm install ruby-2.3.4之后运行rvm reload就像魅力一样。