简体   繁体   English

Ruby on Rails Mac OS X控制台解释器问题

[英]ruby on rails mac os x console interpreter problem

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 刚刚在Mac OS X Snow Leopard上的Rails上最后安装了ruby,ruby解释器无法在控制台中运行,例如,如果我键入:ruby filex.rb则什么也没有发生(根本没有输出)...如果我按ruby也没有任何反应,但如果我输入irb filex.rb,则irb命令有效

how to fix that... ? 如何解决...? installed directly , not with macports... 直接安装,不与macports一起安装...

You can try a which ruby see if you are getting anything. 您可以尝试which ruby看看是否有任何东西。 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 如果您知道将ruby安装到的位置,则可以尝试自己链接它

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 *路径可能因系统而异,因此并非在所有地方都是100%正确的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM