The Problem
I can't install ruby gems properly, here's what I get trying to install and run chef:
$ gem install chef && chef
Successfully installed chef-11.6.0
Parsing documentation for chef-11.6.0
1 gem installed
bash: chef: command not found
My path is:
$ echo $PATH
/Users/mcarey/.rvm/gems/ruby-2.0.0-p0/bin:/Users/mcarey/.rvm/gems/ruby-2.0.0-p0@global/bin:/Users/mcarey/.rvm/rubies/ruby-2.0.0-p0/bin:/Users/mcarey/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/mcarey/.rvm/gems/ruby-2.0.0-p0/gems
Background/History
It was all working fine until I accidentally (long story short) created a tilde (~) directory and then tried to remove it with 'rm -R ~', this of course started deleting my home directory but once it hit the first protected file it asked for permission and I cancelled it. My old ~/.bash_profile was removed but I'm not sure what else went.
Any thoughts? Any extra info needed?
If you deleted your ~/.bash_profile file, I think that Gems will work until you fix your path in this new file. So :
mate ~/.profile
)export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
. ~/.profile
in the terminalI guess your probleme is only a path problem but if you face with another problem here is a link where to find more info
But if your path is correct you can try to use your gem this way:
bundle install
bundle exec bower
=> MAYBE THIS CAN HELP : Checking documentation in github and google, ifound this article there is a possibility to use the bower-rails gem.
in your Gemfile:
I hope this will help :)