开发者

ruby on rails mac os x console interpreter problem

开发者 https://www.devze.com 2023-02-28 02:35 出处:网络
just installed ruby on rails last ver on mac os x snow leopard, the ruby interpreter is not working in console, ex if i type : ruby filex.rb nothing happens (no output at all) ... if i press ruby also

just installed ruby on rails last ver on mac os x snow leopard, the ruby interpreter is not working in console, ex if i type : ruby filex.rb nothing happens (no output at all) ... if i press ruby also nothing happens, but the irb command works if i type irb filex.rb

how to fix that... ? installed directly , not with macports...开发者_C百科


You can try a which ruby see if you are getting anything. But it seems like the ruby binary is not linked in properly.

You can try to link it yourself if you know where the ruby installed to

ln -s /usr/bin/ruby /path/to/ruby/installation/ruby

*The paths may vary from system to system, so this might not be 100% correct everywhere

0

精彩评论

暂无评论...
验证码 换一张
取 消