【发布时间】:2013-04-28 08:21:27
【问题描述】:
现在我想将乘客安装到我的 CentOS6.4 中。
我通过 {gem install Passenger} 安装了乘客。但我无法运行 {passenger-install-apache2-module}。因为出现以下错误!
请告诉我如何解决这个问题!
/home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/lib/phusion_passenger/platform_info/apache.rb:188:in ``': No such file or directory - /usr/local/apache2/bin/apxs -q CFLAGS (Errno::ENOENT)
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/lib/phusion_passenger/platform_info/apache.rb:188:in `apache2_module_cflags'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/lib/phusion_passenger/platform_info.rb:110:in `apache2_module_cflags'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/lib/phusion_passenger/platform_info/apache.rb:293:in `apr_config_needed_for_building_apache_modules?'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/lib/phusion_passenger/platform_info.rb:92:in `apr_config_needed_for_building_apache_modules?'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/bin/passenger-install-apache2-module:69:in `dependencies'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/lib/phusion_passenger/abstract_installer.rb:166:in `check_dependencies'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/bin/passenger-install-apache2-module:90:in `install!'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/lib/phusion_passenger/abstract_installer.rb:63:in `start'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/gems/passenger-3.0.19/bin/passenger-install-apache2-module:236:in `<top (required)>'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/bin/passenger-install-apache2-module:19:in `load'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/bin/passenger-install-apache2-module:19:in `<main>'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/bin/ruby_noexec_wrapper:14:in `eval'
from /home/kenta/.rvm/gems/ruby-1.9.3-p392@global/bin/ruby_noexec_wrapper:14:in `<main>'
【问题讨论】:
-
听起来您缺少 apache 开发标头/工具
-
鹿弗雷德里克。感谢您的回复!你说的对 !我忘了安装一些标题/工具。谢谢!
标签: ruby-on-rails ruby rubygems passenger