Обсуждение: php & pgsql under OSX

Поиск
Список
Период
Сортировка

php & pgsql under OSX

От
Alexander Lohse
Дата:
Hi,

I have a small (or big problem here):

I want to install php and pgsql under OSX.

php4.0.4pl1 alone compiles fine

postgres 7.1RC2 also compiles and installs fine

NOW, I recompile php --with-pgsql (default path)

I get the following error:

/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)

I guess that I because I could not add my lib path to
"Linux:/etc/ld.so.conf" here "OSX: /usr/bin/ld".

Anyone here who knows who to do this?

Regards,

Alex
--
___________________________
Alexander Lohse
Human Touch Medienproduktion GmbH
Am See 1
17440 Klein Jasedow

Tel: (038374) 75211
Fax: (038374) 75223
eMail: al@humantouch.de
http://www.humantouch.de

Re: php & pgsql under OSX

От
"Eric G. Miller"
Дата:
On Fri, Apr 06, 2001 at 12:36:25AM +0200, Alexander Lohse wrote:
> Hi,
>
> I have a small (or big problem here):
>
> I want to install php and pgsql under OSX.
>
> php4.0.4pl1 alone compiles fine
>
> postgres 7.1RC2 also compiles and installs fine
>
> NOW, I recompile php --with-pgsql (default path)
>
> I get the following error:
>
> /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)
>
> I guess that I because I could not add my lib path to
> "Linux:/etc/ld.so.conf" here "OSX: /usr/bin/ld".
>
> Anyone here who knows who to do this?

Did you try running ranlib on /usr/local/pgsql/lib/libpq.a?

--
Eric G. Miller <egm2@jps.net>

Re: php & pgsql under OSX

От
Alexander Lohse
Дата:
>On Fri, Apr 06, 2001 at 12:36:25AM +0200, Alexander Lohse wrote:
>>  Hi,
>>
>>  I have a small (or big problem here):
>>
>>  I want to install php and pgsql under OSX.
>>
>>  php4.0.4pl1 alone compiles fine
>>
>>  postgres 7.1RC2 also compiles and installs fine
>>
>>  NOW, I recompile php --with-pgsql (default path)
>>
>>  I get the following error:
>>
>>  /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)
>>
>>  I guess that I because I could not add my lib path to
>>  "Linux:/etc/ld.so.conf" here "OSX: /usr/bin/ld".
>>
>>  Anyone here who knows who to do this?
>
>Did you try running ranlib on /usr/local/pgsql/lib/libpq.a?

Hi,

I am not so firm that I would know how to do this.

How does it work?

Thanx,

Alex
--
___________________________
Alexander Lohse
Human Touch Medienproduktion GmbH
Am See 1
17440 Klein Jasedow

Tel: (038374) 75211
Fax: (038374) 75223
eMail: al@humantouch.de
http://www.humantouch.de

Re: php & pgsql under OSX

От
"Eric G. Miller"
Дата:
On Fri, Apr 06, 2001 at 08:39:37AM +0200, Alexander Lohse wrote:
> >On Fri, Apr 06, 2001 at 12:36:25AM +0200, Alexander Lohse wrote:
> >>  Hi,
> >>
> >>  I have a small (or big problem here):
> >>
> >>  I want to install php and pgsql under OSX.
> >>
> >>  php4.0.4pl1 alone compiles fine
> >>
> >>  postgres 7.1RC2 also compiles and installs fine
> >>
> >>  NOW, I recompile php --with-pgsql (default path)
> >>
> >>  I get the following error:
> >>
> >>  /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)
> >>
> >>  I guess that I because I could not add my lib path to
> >>  "Linux:/etc/ld.so.conf" here "OSX: /usr/bin/ld".
> >>
> >>  Anyone here who knows who to do this?
> >
> >Did you try running ranlib on /usr/local/pgsql/lib/libpq.a?
>
> Hi,
>
> I am not so firm that I would know how to do this.
>
> How does it work?

$ ranlib /usr/local/pgsql/lib/libpq.a

That's it.  It creates/updates an index within the library.  This
should've have been done when the archive was created.  Since OS X is
new, it's architecture isn't caught properly by the typical ./configure
script (which is where the build environment would determine if ranlib
was nessecary as a follow-up to creating the archive).  More than you
probably care about...

--
Eric G. Miller <egm2@jps.net>

Re: php & pgsql under OSX

От
Alexander Lohse
Дата:
>
>$ ranlib /usr/local/pgsql/lib/libpq.a
>
>That's it.  It creates/updates an index within the library.  This
>should've have been done when the archive was created.  Since OS X is
>new, it's architecture isn't caught properly by the typical ./configure
>script (which is where the build environment would determine if ranlib
>was nessecary as a follow-up to creating the archive).  More than you
>probably care about...

Hi,

that's it!!!

It is running now!

Thanx,

Alex

PS: If ever anyone wants a step-by-step to do for installing php and
postgres on OS X ...
--
___________________________
Alexander Lohse
Human Touch Medienproduktion GmbH
Am See 1
17440 Klein Jasedow

Tel: (038374) 75211
Fax: (038374) 75223
eMail: al@humantouch.de
http://www.humantouch.de