Netbeans和Rails错误:bin/ruby​​:没有这样的文件或目录-脚本/rails(LoadError) [英] Netbeans and rails error: bin/ruby: No such file or directory -- script/rails (LoadError)

查看:222
本文介绍了Netbeans和Rails错误:bin/ruby​​:没有这样的文件或目录-脚本/rails(LoadError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建项目后尝试在netbeans 7.4上启动Rails控制台时,我得到/home/mati/.rvm/rubies/ruby-2.1.0/bin/ruby: No such file or directory -- script/rails (LoadError),但是该文件存在.我在这里 Netbeans:未捕获的例外:没有此类文件可加载-脚本/服务器或脚本/控制台,但实际上并没有帮助.还有什么我可以尝试的吗?

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?

推荐答案

在终端上创建如下所示的符号链接:

Create a symbolic link as below on terminal:

ln -s ./bin ./script

这是因为在Rails 4中,script目录已移至bin.

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

这篇关于Netbeans和Rails错误:bin/ruby​​:没有这样的文件或目录-脚本/rails(LoadError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆