0

现在我想将乘客安装到我的 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>'
4

1 回答 1

0

最后,我安装了一些头文件和工具,解决了这个问题。

sudo yum install zlib-devel e2fsprogs-devel krb5-devel libidn-devel curl-devel
于 2013-04-30T19:34:59.917 回答