Ubuntu 13.10 64位,
ruby 2.1.1
rvm 1.25.24
gem 2.2.2
来自日志文件:
compiling pipe.cpp
linking shared-object rubyeventmachine.so
/usr/bin/ld: /usr/local/lib/libssl.a(s23_srvr.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [rubyeventmachine.so] Error 1
make failed, exit code 2
我该如何修复此问题?
答案1
这看起来像 Github 上的这个问题:https://github.com/eventmachine/eventmachine/issues/392
基本解决方案是使用共享重新编译 ssl,详细信息在链接内。