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.
^^^^^^^^
Try PGLIB instead.
-J
Cesáreo, check out this url which currently describes install for MacOSX
Leopard..
http://openacs.org/xowiki/openacs-system-install-osx-macports
cheers,
Torben
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ó: