Reddirt
Reddirt

Reputation: 5953

Rails won't run anymore

I recently upgraded to Yosemite on my MAC. Rails was working fine. Then I needed to re-install brew. Now, Rails doesn't run. Not sure if the brew install caused my problems or not.

I get this when running $ rails s:

 /Users/davidburton/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/Users/  davidburton/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/x86_64-darwin13.0.0/digest/sha1.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/  libcrypto.1.0.0.dylib (LoadError)

If I look in /usr/local/opt - there is a file openssl but not a folder with that name. Is that the problem?

I just ran this:

$ rvm list

rvm rubies

=* ruby-1.9.3-p484 [ x86_64 ]
   ruby-2.0.0-p353 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

Bundle Install gives me:

Davids-iMac-2:ndeavor2 davidburton$ bundle install
Error loading RubyGems plugin "/Users/davidburton/.rvm/gems/ruby-1.9.3-   p484@global/gems/executable-hooks-1.2.6/lib/rubygems_plugin.rb":   dlopen(/Users/davidburton/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/x86_64-  darwin13.0.0/openssl.bundle, 9): Library not loaded:   /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

This line

image not found - /Users/davidburton/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/x86_64-darwin13.0.0/digest/sha1.bundle

I look using finder and it's there.

Upvotes: 1

Views: 654

Answers (3)

Joel
Joel

Reputation: 4593

You probably switched to the wrong ruby version. Try running rvm implode then gem install rails

Upvotes: 1

Ronak Jain
Ronak Jain

Reputation: 1783

Try Upgrading your RVM to the latest version, and also update your brew, you'd still find few gems not installing, if you use system v8 settings, that will install your gems.

Upvotes: 0

Pavel Tkackenko
Pavel Tkackenko

Reputation: 953

Library not loaded: /usr/local/opt/openssl/lib/  libcrypto.1.0.0.dylib (LoadError)

Try this http://www.dinduks.com/rails-cannot-load-such-file-openssl/

Upvotes: 0

Related Questions