On 03/21/2005 12:34 PM, Simon Windsor said:

I am having problems accessing postgres from mod-perl on one box. The
error I am getting is

install_driver(Pg) failed: Can't load
'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-
multi/auto/DBD/Pg/Pg.so' for module DBD::Pg: libpq.so.3: failed to map
segment from shared object: Permission denied
at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line
230.\n at (eval 173) line 3\nCompilationfailed in require at (eval 173)
line 3.\nPerhaps a required shared library or dll isn't installed where
expected

I have run ldconfig, and a simple test scripts work ok.

Has anyone seen this before, and know a solution?

Make sure the process running mod-perl has the same environment variables set as the process you ran the test scripts in.


Make sure the account running mod-perl has permission to use Pg.so and all the Postgres shared libraries.

http://search.cpan.org/dist/DBI/DBI.pm#Why_doesn't_my_CGI_script_work_right?

http://search.cpan.org/dist/DBI/lib/DBI/FAQ.pm (search for 4.4)

--
Mac :})
** I usually forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Reply via email to