Thanks Jeff, Rija, and Chris for the quick feedback! :) Well, I managed to get those two environment variables set properly. I *thought* I had them set properly, but I didn't. Thank you for helping me.
Now when I run "perl Makefile.PL" the makefile comes out fine. BUT....now I'm stuck when I try to run "make." Here's the error I get: -------- Running Mkbootstrap for Pg () chmod 644 Pg.bs LD_RUN_PATH="/usr/local/pgsql/lib" cc -o blib/arch/auto/Pg/Pg.bundle -bundle -undefined suppress Pg.o -L/usr/local/pgsql/lib -lpq /usr/bin/ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a is out of date; rerun ranlib(1) (can't load from it) make: *** [blib/arch/auto/Pg/Pg.bundle] Error 1 -------- Any idea do I need to do now? I installed the latest version of PostgreSQL (7.1.3), so how can that file be "out of date"? Plus, I don't know what "rerun ranlib(1)" means. Unfortunately, my Unix skills are lacking in this area...I really appreciate the help. I had posted this question on Apple's OSX server support forums, and any answers anyone gives me here I will repost on that forum to help other PostgreSQL/perl/OSX newbies like me. :) Take care, -John > >--Apple-Mail-1--733537844 >Content-Transfer-Encoding: quoted-printable >Content-Type: text/plain; > charset=ISO-8859-1; > format=flowed > >please set environment variables POSTGRES_INCLUDE and POSTGRES_LIB ! >I think its the exclamation point that really sets this error message=20 >off... >if you do a "env | grep POSTGRES" do you see your env vars? > > I know you said you set these but, better look again.. try putting = >them=20 >in your .tcshrc (or whatever .shellrc file you use) then reload it. and=20= > >make sure the places the env vars point to actually exist. > >add to .tcshrc >setenv POSTGRES_INCLUDE /usr/local/pgsql/include >setenv POSTGRES_LIB /usr/local/pgsql/lib > >reload .tcshrc >source $HOME/.tcshrc > >try it again - or download the module separately and compile it. That=20 >MCPAN thing drives me nuts. > >On Wednesday, October 17, 2001, at 01:09 PM, [EMAIL PROTECTED]=20= > >wrote: > >> Hi, >> >> Has anyone successfully installed the PostgreSQL module (Pg.pm) for=20 >> perl on OSX Server? I'm ALL out of ideas, and I'm going to have to = >toss=20 >> 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 >> =A0=A0Make had some problems, maybe interrupted? Won't test >> Running make install >> =A0=A0Make had some problems, maybe interrupted? Won't install >> --------------------------------- >> >> I see that OSX Server already has other DBD modules like DBD::Proxy=20 >> 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=20 >> problem. And I read the README file, but it doesn't help me. I also=20= > >> tried to install using "force install DBD::Pg" but got exactly the = >same=20 >> error messages. >> >> PostgreSQL 7.1.3 is successfully installed and running on OSX Server=20= > >> 10.0.4. >> >> Thanks in advance for any ideas...cause I'm afraid I'm all out. >> >> -John >> ***************************************** >> "Because the only people for me are the mad ones, >> the ones who are mad to live, mad to talk, mad to be saved, >> desirous of everything at the same time, the ones who never >> yawn or say a commonplace thing, >> but burn, burn, burn, like fabulous yellow roman candles >> exploding like spiders across the stars and in the middle you see >> the blue centerlight pop and everybody goes "Awww!" >> >> - Jack Kerouac >> ***************************************** >> > >--Apple-Mail-1--733537844 >Content-Transfer-Encoding: quoted-printable >Content-Type: text/enriched; > charset=ISO-8859-1 > ><color><param>0000,0000,DEDE</param>please set environment variables >POSTGRES_INCLUDE and POSTGRES_LIB ! > ></color>I think its the exclamation point that really sets this error >message off... > >if you do a "env | grep POSTGRES" do you see your env vars? > > > I know you said you set these but, better look again.. try putting >them in your .tcshrc (or whatever .shellrc file you use) then reload >it. and make sure the places the env vars point to actually exist. > > >add to .tcshrc > >setenv POSTGRES_INCLUDE /usr/local/pgsql/include > >setenv POSTGRES_LIB /usr/local/pgsql/lib > > >reload .tcshrc > >source $HOME/.tcshrc > > >try it again - or download the module separately and compile it. That >MCPAN thing drives me nuts. > > >On Wednesday, October 17, 2001, at 01:09 PM, >[EMAIL PROTECTED] wrote: > > ><excerpt>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:=20 > > >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 > >=A0=A0Make had some problems, maybe interrupted? Won't test > >Running make install > >=A0=A0Make 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. =20 > > >PostgreSQL 7.1.3 is successfully installed and running on OSX Server >10.0.4. =20 > > >Thanks in advance for any ideas...cause I'm afraid I'm all out. > > >-John=20 > >***************************************** > >"Because the only people for me are the mad ones, > >the ones who are mad to live, mad to talk, mad to be saved, > >desirous of everything at the same time, the ones who never > >yawn or say a commonplace thing, > >but burn, burn, burn, like fabulous yellow roman candles > >exploding like spiders across the stars and in the middle you see > >the blue centerlight pop and everybody goes "Awww!" > > >- Jack Kerouac > >***************************************** > > ></excerpt>= > >--Apple-Mail-1--733537844-- > -------------------------------------------------- "Because the only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" - Jack Kerouac *****************************************
