#3294 DBD::Pg installation hangs

1.450
closed-wont-fix
5
2009-02-09
2009-02-06
cj0
No

Starting with this warning within Webmin PostgreSQL:
Warning: The Perl module DBD::Pg is not installed on your system, so Webmin will not be able to reliably access your PostgreSQL database. Click here to install it now.

I choose "Click here to install it now".

Downloading http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-2.11.8.tar.gz (218125 bytes) ..
Received 1024 bytes (0 %)
Received 22528 bytes (10 %)
Received 44032 bytes (20 %)
Received 65536 bytes (30 %)
Received 88064 bytes (40 %)
Received 109568 bytes (50 %)
Received 131072 bytes (60 %)
Received 153600 bytes (70 %)
Received 175104 bytes (80 %)
Received 196608 bytes (90 %)
Received 218125 bytes (100 %)
.. download complete.

After waiting for more than 30 minutes, this pages is still not fully loaded, and the page progress indicator is still progressing.

There are still some processes running:
82 root /usr/bin/perl /Users/Shared/src/webmin-1.450/miniserv.pl /etc/webmin/miniserv.co ...
592 root /Users/Shared/src/webmin-1.450/cpan/download.cgi ...
603 root sh -c cd /tmp/.webmin/626176_2_download.cgi/DBD-Pg-2.11.8 ; /usr/bin/perl Makefi ...
604 root /usr/bin/perl Makefile.PL --skip
706 root /Users/Shared/src/webmin-1.450/proc/index_tree.cgi ...

Environment: Perl version 5.8.8, Mac OS X 10.5

Discussion

  • cj0

    cj0 - 2009-02-07

    The task was left running over night, but even after 12 hours there is still no progress.

     
  • cj0

    cj0 - 2009-02-07

    The problem seems to be a missing directive in PATH to pg_config.

    Manually installing DBD:Pg shows this:
    $ sudo perl -MCPAN -e 'install "DBD::Pg"'
    <snip>
    Path to pg_config?

    After locating that path, DBD::Pg is installed.
    $ locate pg_config
    /opt/local/lib/postgresql83/bin/pg_config

    Would be nice if Webmin at least returned the prompted question, than I as a user know that something is missing/requested.

     
  • Jamie Cameron

    Jamie Cameron - 2009-02-09

    There's not really much Webmin can do here, sorry .. if the DBD::Pg is prompting for user input, it is never going to get any when run on the server and not in a shell. The only solution is to add /opt/local/lib/postgresql83/bin to the program search PATH at Webmin -> Webmin Configuration -> Operating System and Environment.

     
  • Jamie Cameron

    Jamie Cameron - 2009-02-09
    • status: open --> closed-wont-fix
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks