[AOLSERVER] Compiling nspostgres 4.1 (PG 8.4 on Mac OS X Leopard)

30 views
Skip to first unread message

Cesáreo García Rodicio

unread,
Oct 27, 2009, 2:12:44 PM10/27/09
to AOLS...@listserv.aol.com
Hi!

I had an Aolserver 4.5.1 working with some modules on Mac OS Leopard
(10.5.8) but I couldn't get to build nspostgres-4.1. Postgres (8.4.1)
was installed using Macports:

roraima:nspostgres-4.1 root# port installed | grep postg
postgresql84 @8.4.1_1 (active)
postgresql84-doc @8.4.1_0
postgresql84-server @8.4.1_0 (active)

When I try to build it (I suppose I have to do make && make install):

make POSTGRES=SEPARATELY PGINC=/opt/local/include/postgresql84/
PGLIG=/opt/local/lib/postgresql84/ ACS=1 AOLSERVER=/usr/local/aolserver45

I get this error:

gcc -bundle -pipe -o nspostgres.so nspostgres.o -L -lpq -lnsdb -L.
-lnspostgres -L/usr/local/aolserver45/lib -lnsd -lnsthread
-L/usr/local/aolserver45/lib -ltcl8.4g -lpthread
ld: library not found for -lpq

I think LD_LIBRARY_PATH is right and that libpq exists:

roraima:nspostgres-4.1 root# env | grep LD_
LD_LIBRARY_PATH=:/usr/local/pgsql/lib:/opt/local/lib/postgresql84/

roraima:nspostgres-4.1 root# ls /opt/local/lib/postgresql84/libpq.*
/opt/local/lib/postgresql84/libpq.5.2.dylib
/opt/local/lib/postgresql84/libpq.a
/opt/local/lib/postgresql84/libpq.5.dylib
/opt/local/lib/postgresql84/libpq.dylib

If checked http://openacs.org/forums/message-view?message_id=1539251 but
I did't see any solution.

Thanks for the suport
Cesáreo


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <list...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.

Jeff Rogers

unread,
Oct 27, 2009, 2:33:25 PM10/27/09
to AOLS...@listserv.aol.com
Cesáreo García Rodicio wrote:
> Hi!
>
> I had an Aolserver 4.5.1 working with some modules on Mac OS Leopard
> (10.5.8) but I couldn't get to build nspostgres-4.1. Postgres (8.4.1)
> was installed using Macports:
>
> roraima:nspostgres-4.1 root# port installed | grep postg
> postgresql84 @8.4.1_1 (active)
> postgresql84-doc @8.4.1_0
> postgresql84-server @8.4.1_0 (active)
>
> When I try to build it (I suppose I have to do make && make install):
>
> make POSTGRES=SEPARATELY PGINC=/opt/local/include/postgresql84/
> PGLIG=/opt/local/lib/postgresql84/ ACS=1 AOLSERVER=/usr/local/aolserver45

^^^^^^^^

Try PGLIB instead.

-J

Torben Brosten

unread,
Oct 27, 2009, 3:04:52 PM10/27/09
to AOLS...@listserv.aol.com

Cesáreo, check out this url which currently describes install for MacOSX
Leopard..

http://openacs.org/xowiki/openacs-system-install-osx-macports

cheers,

Torben

Cesáreo García Rodicio

unread,
Oct 27, 2009, 4:43:32 PM10/27/09
to AOLS...@listserv.aol.com
Hi!

Jeff, yes it's PGLIB :-)! But it doesn't install, error is:

> ar rv libnspostgres.a
> ar: no archive members specified
> usage: ar -d [-TLsv] archive file ...

Same referenced in
http://www.openacs.org/forums/message-view?message_id=1539251

Question here is? I had to do "make ..." or "make install ..." . I used
to do it separately but it seems in documentation that I had to use
"make install ..."

Torben, I checked
http://openacs.org/xowiki/openacs-system-install-osx-macports but I
found some problems (at least with my setup). I think that with PG8.4
some parameters in postgresql.conf doesn't work, createdb, I had some
problems creating database (I had to use template1 with Unicode). I'll
do it again and send here my notes.

But I also tried doing:
make install AOLSERVER=/opt/local/aolserver/
PGCONFIG=/opt/local/lib/postgresql82/bin/pg_config POSTGRES=/opt/local
PGINC=/opt/local/include/postgresql82/
PGLIB=/opt/local/lib/postgresql82/ ACS=1

And error is:

ranlib /usr/local/aolserver/lib/libnspostgres.a
ranlib: can't open file: /usr/local/aolserver/lib/libnspostgres.a (No
such file or directory)

(If I make it without "install" same error with "ar ...")

Regards
Cesáreo


El 27/octubre/09 13:33, Jeff Rogers escribió:

Cesáreo García Rodicio

unread,
Oct 4, 2012, 1:34:37 PM10/4/12
to aols...@googlegroups.com, AOLserver Discussion
Has anybody work on this.

I'm trying to build nspostgresql on Mountaina Lion (Mac OS X 10.8.2) and I get same errors building nspostgresql module.

My workaround now is:
> cd nspostgresql-4.1/
> make POSTGRES=/usr/local/pgsql/
(I installed PG from source there)

I get same error:

> ar rv libnspostgres.a
> ar: no archive members specified

BUT I IGNORE them and copy nspostgres to bin directory in Aolserver
Reply all
Reply to author
Forward
0 new messages