无法安装 ruby-2.3.4
not able to install ruby-2.3.4
我正在尝试在我的 mac 中安装 ruby-2.3.4,但没有成功。以下是系统规格:
macOS塞拉利昂
版本 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.
任何 insight/idea 可能发生了什么?
下面是 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
很明显,它说权限被拒绝。但我不确定它在谈论什么样的许可?我可以毫无问题地安装 ruby 2.5.1p57
。
rvm reload
施展了魔法。 运行 rvm install ruby-2.3.4
在 运行 rvm reload
之后效果很好。
我正在尝试在我的 mac 中安装 ruby-2.3.4,但没有成功。以下是系统规格:
macOS塞拉利昂 版本 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.
任何 insight/idea 可能发生了什么?
下面是 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
很明显,它说权限被拒绝。但我不确定它在谈论什么样的许可?我可以毫无问题地安装 ruby 2.5.1p57
。
rvm reload
施展了魔法。 运行 rvm install ruby-2.3.4
在 运行 rvm reload
之后效果很好。