2

The following error shown when I access 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.

What can I do to fix this?

4

1 回答 1

1

设置正确的 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" .

参考: stackoverflow讨论链接bugzilla google groups链接

于 2012-04-26T05:18:21.080 回答