访问bugzilla时显示以下错误:
pg' is not a valid choice for $db_driver in localconfig:
Can't load 'lib/i386-linux-thread-multi/auto/DBD/Pg/Pg.so' for module DBD::Pg:
libpq.so.5: failed to map segment from shared object:
Permission denied at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
at Bugzilla/DB/Pg.pm line 47
Compilation failed in require at Bugzilla/DB/Pg.pm line 47.
BEGIN failed--compilation aborted at Bugzilla/DB/Pg.pm line 47.
Compilation failed in require at (eval 952) line 3.
我该怎么做才能解决这个问题?
设置正确的 SELinux 上下文,不要忘记设置环境变量LD_LIBRARY_PATH。通过在httpd.conf中设置它解决了我的问题,如下所示:SetEnv LD_LIBRARY_PATH="/var/www/html/bugzilla-4.2.1/lib/i386-linux-thread-multi/auto/DBD/Pg/Pg.so".
指:堆栈溢出讨论链接和 bugzilla 谷歌群组链接