Created
April 28, 2011 03:05
-
-
Save elvuel/945720 to your computer and use it in GitHub Desktop.
Ubuntu rails error no such file to load -- openssl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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