dustbuster has asked for the wisdom of the Perl Monks concerning the following question:

I was wondering if there was an RPM for DBD:Pg.
I heard that installing RPMs was easier than using
tar.gz files. I've tried using tar.gz files with this
before but got a lot of headaches trying to install.
Does anyone know if there is a RPM version. 1.01? I know
that DBD-Pg-1.01.tar.gz exists.


Replies are listed 'Best First'.
by Hanamaki (Chaplain) on Nov 09, 2001 at 00:54 UTC
    Usually tar.gz (Tarball source-code distributions) are quit easy to install.
    gunzip distribution.tar.gz tar -xvf distribution.tar cd distribution perl Makefile.PL make make test su make install exit

    Thats it!
    I don't think RPMs are the way to go but you will find them e.g with a google search for DBD::Pg rpm.

      DBD::Pg would be rather difficult to install via RPM. The module actually requires the variables POSTGRES_INCLUDE and POSTGRES_LIB to be set (use 'export' for sh and 'setenv' for csh). You need to have the postgres libraries installed. Furthermore, each platform would require a separate rpm based on the hardware architecture. You might try looking on for a PostgreSQL rpm, and then building DBD::Pg yourself.

      Yes, it's a little trouble, but I think you'll find that postgres is an awesome database and it's totally worth it.

      brother dep.

      Laziness, Impatience, Hubris, and Generosity.

by ralphie (Friar) on Nov 09, 2001 at 01:31 UTC
    you can probably get the gzipped source to install if you set the POSTGRES_INCLUDE and POSTGRES_LIB environment variables before starting the installation. the newest postgresql installs these in /usr/local/pgsql/include and /usr/local/pgsql/lib. to simplify matters, just invoke csh, type
    setenv POSTGRES_INCLUDE='/usr/local/pgsql/include' and
    setenv POSTGRES_LIB='/usr/local/pgsql/lib'
    then go through the build process (perl Makefile.PL etc.)

    if it helps any, i've cussed at this a bit myself.

      Ralphie, this is a kind of follow-up discussion to PostgreSQL/Perl where some of us tried to help fellow monk dustbuster, but at the moment I do not have any clue what went wrong.
      Maybe you or other monks have some idea to help dustbuster if you review the mentioned node.

by Anonymous Monk on Nov 09, 2001 at 05:22 UTC
    I was having problems intalling the DBD:Pg.
    Then I somehow manged to corrupt X Windows
    Ended up having to reinstall Red Hat and here we
    are again.

    This time I'll set the variables first, before installing
    the DBD.

    I also have a bug with Red Hat 7
    I can't log on using GNOME to the postgres user
    yet I can do it through the command line. Any ideas?