尝试在创建新的rails项目后第一次运行rails服务器" /usr/bin/ruby1.9.1:没有这样的文件或目录 - /usr/share/rubygems-integration/1.9.1/gems /bundler-1.3.5/bin/bundle(LoadError)"这个错误来了
答案 0 :(得分:0)
我遇到同样的问题" rails new myproject "。
我的环境是: 红宝石版本:1.9.3p484 rails版本:4.2.0
此修复程序适用于我:
public static voidcompileAsy(File name)
{
try
{
Runtime rt = Runtime.getRuntime();
String[] cmdarray = {"/usr/texbin/asy", name.getName()};
//String[] envp = {"PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin:/usr/local/bin"};
String[] envp = null;
File fd = new File("/xxxxxx/xxxxx");
Process proc = rt.exec(cmdarray, envp, fd);
// any errors?
StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), "error");
// any output?
StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), "output");
// kick them off
errorGobbler.start();
outputGobbler.start();
int exitVal = proc.waitFor();
System.out.println("Process exitValue: " + exitVal);
}
catch(Throwable t)
{
t.printStackTrace();
}
在此之后,你可以做"捆绑安装"接着说。如果您看到捆绑安装中的错误,只需删除现有的" myproject"目录和重做 " rails new myproject "。