RVM/rbenv rvm install ruby 1.9.3 安装失败,求帮助!

kaka · May 12, 2012 · Last by kaka replied at May 12, 2012 · 5265 hits

Error running 'make ', please read /home/kaka/.rvm/log/ruby-1.9.3-p125/make.log

There has been an error while running make. Halting the installation.

make.log 文件内容

linking shared-object openssl.so
/usr/bin/ld: /usr/local/lib/libssl.a(s2_meth.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libssl.a: could not read symbols: Bad value
collect2: ld 返回 1
make[2]: *** [../../.ext/x86_64-linux/openssl.so] 错误 1
make[2]:正在离开目录 `/home/kaka/.rvm/src/ruby-1.9.3-p125/ext/openssl'
make[1]: *** [ext/openssl/all] 错误 2
make[1]:正在离开目录 `/home/kaka/.rvm/src/ruby-1.9.3-p125'
make: *** [build-ext] 错误 2

rvm ruby 1.9.2 正常

Ref: http://dawning126.iteye.com/blog/1189889 可以参考下 主要是重新编译 openssl。另:http://www.ruby-forum.com/topic/206196

Hope HelpfulXD

试下 rvm requirements,安装所需要的包

#1 楼 @DavidWei #2 楼 @cantin 谢谢各位

./config --prefix=/usr/local --openssldir=/usr/local/openssl shared
make
make install
``` 就oK 
You need to Sign in before reply, if you don't have an account, please Sign up first.