Netbeans and rails error: bin/ruby: No such file or directory — script/rails (LoadError)

混江龙づ霸主 提交于 2019-12-31 02:14:06

问题


When I'm trying to launch Rails console on netbeans 7.4 after I create project I get /home/mati/.rvm/rubies/ruby-2.1.0/bin/ruby: No such file or directory -- script/rails (LoadError) , but this file exists. I was looking here Rails on Netbeans: Uncaught exception: no such file to load -- script/server or script/console but it didn't really help. Is there something else I could try?


回答1:


Create a symbolic link as below on terminal:

ln -s ./bin ./script

This is because in Rails 4 script directory has been moved to bin.



来源:https://stackoverflow.com/questions/22571206/netbeans-and-rails-error-bin-ruby-no-such-file-or-directory-script-rails-l

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!