您可能正在尋找運行錯誤「__rvm_make -j 1」
這只是說,雖然編制紅寶石出事了。此問題僅與您有關,如果openssl
和/或ossl_ssl
是您的錯誤消息的一部分。
但也許你的問題是類似之一,你可以解決你的問題與一些定製。在rvm Ruby安裝期間運行'__rvm_make -j 1'時出錯| OpenSSL的錯誤
背景
今天,我想刪除項目的所有寶石卻忘了指定捆綁的路徑預先那麼,安裝在~/.rvm/gems/ruby-2.2.4/gems/
所有寶石。
因爲它是唯一的紅寶石2.2.4項目,我雖然rm -rf ~/.rvm/gems/ruby-2.2.4/gems/*
將會很好。事實並非如此。 Bundler不見了,gem install bundler
也沒有工作了。
我刪除了洞紅寶石安裝rvm remove ruby-2.2.4
螞蟻試圖重新安裝它。這是我得到了錯誤的控制檯輸出:
控制檯輸出
> rvm install ruby-2.2.4
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.2.4.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/fkammer/.rvm/rubies/ruby-2.2.4, this may take a while depending on your cpu(s)...
ruby-2.2.4 - #downloading ruby-2.2.4, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12.7M 100 12.7M 0 0 655k 0 0:00:19 0:00:19 --:--:-- 234k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.2.4 - #extracting ruby-2.2.4 to /Users/fkammer/.rvm/src/ruby-2.2.4....
ruby-2.2.4 - #configuring..........................................................
ruby-2.2.4 - #post-configuration.
ruby-2.2.4 - #compiling..............................................................
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/fkammer/.rvm/log/1456431932_ruby-2.2.4/make.log
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ossl_ssl.c:19:35: note: expanded from macro 'numberof'
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
^~~~~
ossl_ssl.c:2217:21: error: invalid application of 'sizeof' to an incomplete type 'const struct (anonymous struct at ossl_ssl.c:115:14) []'
for (i = 0; i < numberof(ossl_ssl_method_tab); i++) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ossl_ssl.c:19:35: note: expanded from macro 'numberof'
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
^~~~~
9 errors generated.
make[2]: *** [ossl_ssl.o] Error 1
make[1]: *** [ext/openssl/all] Error 2
make: *** [build-ext] Error 2
++ return 2
There has been an error while running make. Halting the installation.
重試不會改變任何東西。我也嘗試徹底卸載rvm(rvm implode
)並重新安裝它,但那不成功。
系統
的Mac OS X - 埃爾卡皮坦(10.11.3)
RVM 11年1月26日(最新)
家釀0.9.5
只是重新安裝'rvm'沒有爲我工作不幸 –