I am trying to do 'rake db:migrate' and getting the error message 'no such file to load -- openssl'. Both 'openssl' and 'openssl-devel' packages are installed. Others on Debian or Ubuntu seem to be able to get rid of this by installing 'libopenssl-ruby', which is not available for RedHat. Has anybody run into this and have a solution for it?
I had this problem on Ubuntu, after upgrading to 8.10. The solution for Ubuntu was
sudo apt-get install libopenssl-ruby
it seems you need to make the ruby header file
go into the openssl directory and:
ruby extconf.rb
cd ../..
make
make install
See here
If you are using RVM to manage your rubies follow the directions here:
I had the same issue. I tried going into the openssl folder and running make etc but it couldnt find the libraries lcrypto. I solved the issue by running ruby 1.9.3-p327.
Hope this helps!
There is probably a gem you are missing. Can you provide the stack trace and the line of code where it originates?
Re-run rake with --trace
to get the stack trace printed.
EDIT: Also what version of Ruby are you running? openssl.rb is in my 1.8.6 install
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.