现在的位置: 首页 > 综合 > 正文

rails command not found

2013年02月03日 ⁄ 综合 ⁄ 共 469字 ⁄ 字号 评论关闭

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

 

 

 

 

【上篇】
【下篇】

抱歉!评论已关闭.