Morning got and update the Gem
Then try rails -v I got that:
command not found...
search for the solution by google...
then I use
locate gem | grep bin
found that gem is in "/usr/local/ruby/lib/ruby/gems/1.9.1/"
But the rails in "usr/bin" was ln to "/usr/local/ruby/lib/ruby/gems/1.8"
so I ln again use this:
sudo ln /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rails /usr/bin/rails
bundle always got the same issue and with the same solution:
sudo ln /usr/local/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/bin/bundle /usr/bin/bundle
本文记录了作者在更新Gem过程中遇到Rails及Bundle命令未找到的问题,并详细描述了解决过程,包括通过查找gem路径并创建软链接来修复命令缺失的情况。
1312

被折叠的 条评论
为什么被折叠?



