0
我使用Apache和FastCGI运行一个ruby应用程序。我已经安装了apache fcgi模块以及Ruby fcgi gem。使用apache时未找到FCGI Ruby Gem
当我运行FCGI脚本 'search.fcgi' 像这样
ruby search.fcgi
它成功运行。但是启动Apache时,我得到了下面的错误在我的日志文件时它会尝试运行同一个脚本:
/usr/local/rvm/rubies/ruby-2.1.8/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- fcgi (LoadError)
from /usr/local/rvm/rubies/ruby-2.1.8/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/user/fcgi/search.fcgi:13:in `<main>'
线13 search.fcgi简直是 require 'fcgi'
通过运行时,就好像它出现Apache无法检测到已安装的gem。我已经加载irb并运行require 'fcgi'
,它返回true。
我在这里错过了什么吗?我需要设置一些路径或配置项目?