Skip to content

Instantly share code, notes, and snippets.

@elvuel
Created April 28, 2011 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elvuel/945720 to your computer and use it in GitHub Desktop.
Save elvuel/945720 to your computer and use it in GitHub Desktop.
Ubuntu rails error no such file to load -- openssl
ENV:
rvm-ruby 1.9.2 => install dir => gem env | grep 'INSTALLATION DIRECTORY' => rvm-ruby install dir_path
rails 3.0.7
CAUSE:
run scaffold generator: rails g scaffold modelname column:string ...
Fix Steps:
1) ensure openssl has been installed => which openssl => /usr/bin/ssl
2) cd ./rvm/src/ruby-verson/ext/openssl
3) ruby extconf.rb --with-openssl-include=/usr/include/openssl/ --with-openssl-lib=/usr/lib/ssl/
4) make & make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment