Re: DBD:Pg problems

"Bruce Johnson" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
> On Jul 16, 2015, at 9:59 AM, COULLEIT Guy <[email protected]> wrote:
> 
> Hi,
>  
> Any idea what is going wrong here again?
>  
> [taranis@betrnt01 tmp]$ cd DBD-Pg-3.5.1
>  
> [taranis@betrnt01 DBD-Pg-3.5.1]$ perl Makefile.PL 
> Configuring DBD::Pg 3.5.1
> PostgreSQL version: 80420 (default port: 5432)
> POSTGRES_HOME: (not set)
> POSTGRES_INCLUDE: /usr/include
> POSTGRES_LIB: /usr/lib64
> OS: linux
> Could not load DBI::DBD - is the DBI module installed?
>  
> [taranis@betrnt01 DBD-Pg-3.5.1]$ exit
> Exit
>  




> [root@betrnt01 DBI-1.633]# cpan
> Loading internal null logger. Install Log::Log4perl for logging messages
> Terminal does not support AddHistory.
>  
> cpan shell -- CPAN exploration and modules installation (v2.11)
> Enter 'h' for help.
>  
> cpan[1]> install DBI::DBD
> Reading '/root/.cpan/Metadata’

You installed DBI as root, but are trying to install DBD::Pg as taranis. Path or other environment  issues? 

Any reason you’re not installing DBD::Pg via cpan (as root) as well? I’ve found that minimizes these kinds of things...

-- 
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs
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.