I've been struggling with this for a bit longer than I should. I am using RVM and Apache and this is the error I am getting after deploying my Rails 3 app. Is there something I am missing?!
我一直在努力比这更长时间。我正在使用RVM和Apache,这是我在部署Rails 3应用程序后得到的错误。有什么我想念的吗?!
the full error states the following:
完整错误说明以下内容:
Ruby (Rack) application could not be started A source file that the application requires, is missing.
无法启动Ruby(Rack)应用程序缺少应用程序所需的源文件。
It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
您可能没有正确上传您的应用程序文件。请检查是否上传了所有应用程序文件。
A required library may not installed. Please install all libraries that this application requires.
可能未安装所需的库。请安装此应用程序所需的所有库。
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
有关错误的更多信息可能已写入应用程序的日志文件。请检查它以分析问题。
Error message: no such file to load -- bundler/setup
错误消息:没有要加载的此类文件 - bundler / setup
Exception class: LoadError
异常类:LoadError
1 个解决方案
#1
1
It seems like Passenger is using a different Ruby than RVM probably the system Ruby. You'll need to either install Passenger manually (using your Ruby of choice with RVM) and remove the system Ruby or install bundler with the system Ruby.
似乎Passenger使用的不同于Ruby而不是RVM可能是系统Ruby。您需要手动安装Passenger(使用您选择的Ruby与RVM)并删除系统Ruby或使用系统Ruby安装bundler。
#1
1
It seems like Passenger is using a different Ruby than RVM probably the system Ruby. You'll need to either install Passenger manually (using your Ruby of choice with RVM) and remove the system Ruby or install bundler with the system Ruby.
似乎Passenger使用的不同于Ruby而不是RVM可能是系统Ruby。您需要手动安装Passenger(使用您选择的Ruby与RVM)并删除系统Ruby或使用系统Ruby安装bundler。