我正试图在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/但仍然得到这个错误。
任何帮助都将不胜感激!!!!提前谢谢你们!!!!

最佳答案

结果发现这与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一起工作,所以它让我成为了一个新手。
希望这有帮助!

关于ruby - 在Centos 5.8(乘客模块)上安装gitorious,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10988194/

10-13 01:26