乘客无法生成网页

时间:2012-06-19 19:07:55

标签: apache ubuntu install passenger bundler

我一直在努力让我的网络服务器在我的电脑上运行。

我正在跑步: 红宝石1.9.3 rvm 1.14.2(稳定) 宝石1.8.24

在带有apache和passenger的ubuntu服务器上。

我可以访问我的网页,但我不断收到此错误消息:

无法启动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.

有关错误的更多信息可能已写入应用程序的日志文件。请检查它以分析问题。

错误讯息:     无法加载此类文件 - bundler / setup 例外类:     LoadError 应用程序根:     / SRV / FTP /奥托 回溯:     #文件行位置     0 /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb 36 require' 1 /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb 36 in require'     2 {/ 1}}中的/srv/ftp/otto/config/setup_load_paths.rb 15'需要'     {/ 1}} prepare_app_process'中的/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb 36     6 {us} / report / app_init     8 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb 154 ' 3 /usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb 36 in start_synchronously'     10 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 180 require' 5 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/utils.rb 301 in start'     12 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 253 block in initialize_server' 7 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/utils.rb 572 in lookup_or_add'     14 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 246 in initialize_server' 9 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 204 in block in synchronize'     16前奏> 10:在start' 11 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb 129 in同步'     在block (2 levels) in spawn_rack_application' 13 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb 132 in spawn_application'中18 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 244     在block in spawn_rack_application' 15 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb 82 in server_main_loop'中,20 /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb 275     22 {us {/ 1}}中的/usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb 206


我试过: 重新安装rvm和ruby 安装捆绑器 ......以及其他一些我不太懂的东西!

1 个答案:

答案 0 :(得分:0)

我必须在apache2.conf文件中指定我的GEM_HOME ...

我遵循了这个指南:

https://github.com/instructure/canvas-lms/issues/123