Srinivas
Srinivas

Reputation: 390

Bugzilla throwing error DBD:Pg fail in DynaLoader?

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?

Upvotes: 2

Views: 683

Answers (1)

Srinivas
Srinivas

Reputation: 390

Setting proper SELinux contexts and don't forget set environment variable LD_LIBRARY_PATH. By setting this in httpd.conf fixed my problem like below: SetEnv LD_LIBRARY_PATH="/var/www/html/bugzilla-4.2.1/lib/i386-linux-thread-multi/auto/DBD/Pg/Pg.so".

Refer: stackoverflow discussion link and bugzilla google groups link

Upvotes: 1

Related Questions