On Thursday, October 18, 2001, at 03:09  AM, [EMAIL PROTECTED] 
wrote:

> Hi,
>
> Has anyone successfully installed the PostgreSQL module (Pg.pm) for 
> perl on OSX Server? I'm ALL out of ideas, and I'm going to have to toss 
> this server if I can't get it working...
>
> installing DBI using:
>
> sudo perl -MCPAN -e 'install DBI'
>
> was smooth as silk. But then I tried to install the Pg module using:
>
> sudo perl -MCPAN -e 'install Pg'
>
> and it cranked away fine until the end where it said:
>
> ---------------------------------
> Configuring Pg
> Remember to actually read the README file !
> please set environment variables POSTGRES_INCLUDE and POSTGRES_LIB !
> Running make test
> ��Make had some problems, maybe interrupted? Won't test
> Running make install
> ��Make had some problems, maybe interrupted? Won't install
> ---------------------------------
>
> I see that OSX Server already has other DBD modules like DBD::Proxy 
> installed. If I do a:
>
> sudo perl -MCPAN -e 'install Proxy'
>
> then it cranks along fine and tells me that Proxy is 'up to date.'
>
> But why won't DBD:Pg install?
>
> I have set the environment variables correctly, so that's not the 
> problem. And I read the README file, but it doesn't help me.  I also 
> tried to install using "force install DBD::Pg" but got exactly the same 
> error messages.
>
>

you should run the tests as user postgres or another qualified user not 
as root
you have to install as root.
I am sure I did from commandline...
however, it seems that your make failed.  it is the only reason why 
"force" might fail.

sorry, I don't remember, but  perl 5.6.1 install and perl/postgres 
connectivity in place
can you find this in your makefile?
LDDLFLAGS = -bundle -flat_namespace -undefined suppress 
-L/usr/local/lib .........
LDFLAGS = -flat_namespace

I seem to recall that there was a place to add additional ld flags when 
configuring CPAN
then you end up with a line:
'makepl_arg' => q[LDFLAGS=-flat_namespace],
in your /System/Library/Perl/CPAN/Config.pm

---------------------------------------------------------------------------
reply directly to:
Jim Cooper
mailto:[EMAIL PROTECTED]
iMedia, Ltd.
Tokyo                            http://www.ai-media.co.jp
---------------------------------------------------------------------------

Reply via email to