错误详情:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| ruby-2.3.3 - Error running '__rvm_make -j4', showing last 15 lines of /usr/local/rvm/log/1488041042_ruby-2.3.3/make.log exts.mk:210: recipe for target 'ext/openssl/all' failed make[1]: *** [ext/openssl/all] Error 2 make[1]: *** Waiting for unfinished jobs.... installing default nkf libraries compiling objspace_dump.c linking shared-object json/ext/generator.so make[2]: Leaving directory '/usr/local/rvm/src/ruby-2.3.3/ext/json/generator' linking shared-object objspace.so make[2]: Leaving directory '/usr/local/rvm/src/ruby-2.3.3/ext/objspace' linking shared-object nkf.so make[2]: Leaving directory '/usr/local/rvm/src/ruby-2.3.3/ext/nkf' make[1]: Leaving directory '/usr/local/rvm/src/ruby-2.3.3' uncommon.mk:203: recipe for target 'build-ext' failed make: *** [build-ext] Error 2 ++ return 2 There has been an error while running make. Halting the installation.
|
查看/usr/local/rvm/log/1488041042_ruby-2.3.3/make.log发现是openssl版本过老导致的。
解决方案:
第一步:先安装用于rvm的openssl:
第二步:编译安装ruby,指定openssl目录(我的是/usr/local/rvm/usr/)
1
| rvm install ruby-2.3.3 --with-openssl-dir=/usr/local/rvm/usr/
|