Forum OpenACS Q&A: where is ns.h when building postgres.o?
postgresql 7.0 (all packages! even devel!) installed via RPM
aolserver 3.0 (untarred at /home/nsadmin)
within the pgsql driver makefile:
Ends up telling me something like this:
postgres.c:32: ns.h: No such file or directory
(Also can't find nsdb.h and nstcl.h)
# RedHat Linux with RPM PostgreSQL #CC=gcc #PGLIB=/usr/lib #PGINC=/usr/include/pgsql #COPTS=-fpic -shared -I$(PGINC) -I$(NSHOME)/include -I-/usr/include
I've just now tried building from the source and I am getting undefined reference errors sprouting from the thread directory.
Head back to the AOLServer site and download the source distribution, expand this into your ~nsadmin dir and try making the postgres driver again. (What I usually do at this point is make a copy of my existing ~nsadmin dir, prior to expanding the source dist., make the driver then replace the ~nsadmin dir with my copy. Just keeps the directory to a minimum).
I think this has been mentioned before and was noted that it had been requested to the AOLServer team to try and inlude the source files in the binary distributions in the next release.
Hope this helps.
Otherwise you could have problems if AOLserver wants to read or write any files (like logs) in it's home directory. Of course, why would you have production servers running without OpenACS anyway, right? :)