Rails Server not loading + can't install gems due LoadError (possibly
corrupted $PATH)?
I suspect in the process of trying to fix my problems with brew and
install postgresql, I had corrupted my $PATH, and as a result, are not
able to start rails server on my rails app.
I get the following error:
/Users/amyhua/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:
45:in `require':
dlopen(/Users/amyhua/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin11.4.2/di
gest/sha1.bundle, 9): Library not loaded:
/opt/local/lib/libssl.1.0.0.dylib (LoadError)
Referenced from:
/Users/amyhua/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin11.4.2/digest/
sha1.bundle
Reason: image not found -
/Users/amyhua/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin11.4.
2/digest/sha1.bundle
I also get similar load errors when I try to install gems or try to run
bundle install. What's going on?...
Here is my PATH:
echo $PATH
/Users/amyhua/.rvm/gems/ruby-2.0.0-p247/bin:/Users/amyhua/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/a
myhua/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/amyhua/.rvm/bin:/user/local/bin:/usr/bin:/Users/amyhua/.r
v
m/scripts/rvm:/usr/local/heroku/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/git/bin:/opt/local/b
in :/usr/local/sbin:/usr/local/mysql/bin:/opt/local/lib/bin
and my bash_profile:
PS1="\u$ "
alias ll="ls -lahG"
# Setting PATH for MacPython 2.6
# The orginal version is saved in .bash_profile.pysave
PATH="/user/local/bin:/usr/bin:/Users/amyhua/.rvm/scripts/rvm:/Users/amyhua/.rvm/gems/ruby-2.0.0-p247/bin:/Users/amyhua/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/amyhua/.rvm/bin:/usr/local/heroku/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/git/bin:/opt/local/bin:/usr/local/sbin:/usr/local/mysql/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" #
Load RVM into a shell session *as a function*
export PATH
I have no bashrc
No comments:
Post a Comment