Rails LoadError with openssl.so: undefined symbol: d2i_ECPKParameters

后端 未结 3 1234
遇见更好的自我
遇见更好的自我 2021-01-07 11:21

rails --version

Rails 3.2.1

ruby -v

ruby 1.9.3p0 (2011-10-30) [x86_64-linux]

rpm -qa | grep openssl

openssl-0.9.8e-20.el5 opens

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-07 11:58

    This problem arises when you don't install openssl prior to installing ruby. There are two fixes:

    1. (Suggested fix) Install openssl and then recompile your version of ruby. Assuming you are using rvm, you can solve this by doing: rvm pkg install openssl then rvm remove 1.9.3 then rvm install 1.9.3 --with-openssl-dir=$HOME/.rvm/usr which compiles ruby with openssl.

    2. Modify your Gemfile to say source "http://rubygems.org" instead of source "https://rubygems.org"

    Option 2 is quicker and easier, but more likely to cause problems in the future.

提交回复
热议问题