Re: Need some help on installing modules...

[email protected] (John Delacour)
Newsgroups perl.macosx
Message-ID <p06240804c95916122365@[192.168.1.68]>
At 11:13 -0500 16/01/2011, Levan, Jerry wrote:

>I have an iPad and I have a Postgresql database on my home server.
>
>I have turned on the MacOS(client) VPN on the mac mini that I use
>as my home server and can access my home network in a secure fashion...
>
>It turns out that once upon a time I wrote a perl cgi that allowed
>me  to access postgresql and display the results of selections in
>a html table.
>
>It appears that I need to install DBI and DBD for Postgresql.
>
>Unfortunately I have pretty much forgotten most of my Perl
>( Sh*t happens when you get into your seventies...)
>
>Could some kind soul give me a quick guide on how to install
>the necessary modules to enable the cgi?

Presuming you have the developer tools installed then use CPAN.  I've 
recently installed DBI and DBD::SQLite on my Mac Mini without any 
complaints.  I see that  I am excluded from getting DBD:Pg because I 
can't answer a simple question:

     Configuring DBD::Pg 2.17.2
     Path to pg_config?   You tell me!
     Use of uninitialized value $ENV{"POSTGRES_HOME"} ...

But no doubt as a user of Pg and 4 years my senior you will be able 
to answer it.



21:41:50 User:jd   Cwd: /usr/lib
➔ sudo cpan
Password:
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.

cpan[1]> install DBI DBD::Pg
CPAN: Storable loaded ok (v2.18)


JD
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.