Similar to this post on superuser, I used installrails.com to successfully set up my ruby on rails environment. I have been able to create a basic rails application and deploy to heroku, but every time I exit terminal and then return and try to start my local server, I get the following message:
$ rails s
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
So I try and reinstall rails by using the following command:
gem install rails
And get this error message:
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
Referenced from: /Users/bparman/.rvm/rubies/ruby-2.1.4/bin/ruby
Reason: image not found
So I have tried reinstalling and following the directions on these articles: Ruby installation issues with RVM and Rails keeps telling me that it's not currently installed. Again, these work briefly, and I'm able to update my application, deploy it to Heroku, etc. only to come back 10 minutes later and receive this error message:
Rails is not currently installed on this system.
Here are my ruby installs:
$ rvm list
rvm rubies
=> ruby-2.1.3 [ x86_64 ]
* ruby-2.1.4 [ x86_64 ]
# => - current
# =* - current && default
# * - default
Here are my gemsets:
$ rvm gemset list_all
gemsets for ruby-2.1.3 (found in /Users/bparman/.rvm/gems/ruby-2.1.3)
=> (default)
global
gemsets for ruby-2.1.4 (found in /Users/bparman/.rvm/gems/ruby-2.1.4)
=> (default)
global
Again, as soon as I follow the instructions, it reinstalls, but later will say it's not installed.
The dyld: Library not loaded
message makes me think you might have an out of date homebrew build of libgmp picked up by your rubies.
perhaps try something like
> brew update
> brew install gmp
> rvm reinstall 2.1.4 --disable-binary