我正在尝试在本教程之后在Centos 5.8框上安装gitorious:http://gitorious.org/gitorious/pages/Rhel_Installation,但是在我安装Passenger并添加建议的行之后:
LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11
PassengerRuby /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby
到我的httpd.conf,apache无法启动。
我得到的错误是:
Iniciando httpd: httpd: Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-3.0.12/ext/apache2/mod_passenger.so into server: /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-3.0.12/ext/apache2/mod_passenger.so: failed to map segment from shared object: Permission denied
[FALLÃ]
我已经尝试了chmod -R 777 /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/并仍然出现此错误。
任何帮助将不胜感激!在此先感谢你们!
答案 0 :(得分:1)
事实证明它与gitorious没有任何关系,但是对于乘客模块而言,答案一直在这里:Why is this permissions error occurring with mod_passenger.so?
这是我为了启动apache而开始的:
chcon -R -h -t httpd_sys_content_t /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/
没有错误!那是什么了!
这是我第一次使用rails,所以它让我换了新手。
希望这有帮助!