Topic: Command 'rails' yields error, but rails successfully installed

I have RVM installed with Ruby 1.9.3 and Rails

$ rails -v
Rails 3.2.8

system:      "redhat/5.8/x86_64"
I am trying to start the rails server using either: 'rails server -d' or even just 'rails' however I am getting the following error:

$ rails server -d
/home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': libcrypto.so.1.0.0: cannot open shared object file: No such file or directory - /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/x86_64-linux/digest/md5.so (LoadError)
from /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/lauren/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.8/lib/rails/generators/app_base.rb:1:in `<top (required)>'
from /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/lauren/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.8/lib/rails/generators/rails/app/app_generator.rb:1:in `<top (required)>'
from /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/lauren/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.8/lib/rails/commands/application.rb:24:in `<top (required)>'
from /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/lauren/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.8/lib/rails/cli.rb:15:in `<top (required)>'
from /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/lauren/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/lauren/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.8/bin/rails:7:in `<top (required)>'
from /home/lauren/.rvm/gems/ruby-1.9.3-p286/bin/rails:19:in `load'
from /home/lauren/.rvm/gems/ruby-1.9.3-p286/bin/rails:19:in `<main>'
from /home/lauren/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `eval'
from /home/lauren/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `<main>'
I have tried reinstalling rvm, ruby and rails. All seem to install successfully.

Any ideas?

Last edited by lithium2k (2012-10-29 13:50:38)

Re: Command 'rails' yields error, but rails successfully installed

I'm having similar/the same trouble using the same version of ruby (though I'm not trying to use rails).I was following along with this guide when I ran into trouble: http://net.tutsplus.com/tutorials/ruby/ … -app-2/The GEM installs went fine (once I had the correct gcc setup) but I cannot get require

Re: Command 'rails' yields error, but rails successfully installed

Wow, great forum - totally CHOPPED my post.

Short version: new install of rvm 1.16.17, upgraded to latest ruby (1.9.3-p286) and I keep getting this problem trying to load datamapper using require "datamapper""

/Users/jmac/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/jmac/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Volumes/crypto/code/bronson/public/recall.rb:3:in `<top (required)>'
/Users/jmac/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/jmac/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

Re: Command 'rails' yields error, but rails successfully installed

I am just learning and following tutorials regarding rails and I have created a ruby on rails app but have done so using my home directory.

Re: Command 'rails' yields error, but rails successfully installed

I don't want to judge you but I think that you need to do a little bit more research on the matter

entertainment news online

Re: Command 'rails' yields error, but rails successfully installed

http://stackoverflow.com/questions/1293 … bleshootin

Google and stackoverflow are your friends. Just take out the part of the first error line that has your name in it (obviously) and google it. Stackoverflow is usually the first result to pop up and usually has the answer.