Обсуждение: Installing PostgreSQL on HPUX 11i (with TCL) -- how does one do it
Installing PostgreSQL on HPUX 11i (with TCL) -- how does one do it
От
afalanga@syracusenetworks.com (Andrew Falanga)
Дата:
Hello all, I've managed to get Postres installed with no trouble, however, I'm less than successful when trying to install Postgres with the TCL components built as well. Actually, the problem isn't the install, but the build process. As near as I can figure, the configure script is finding the GNU C compiler (which lives in /opt/gnu/gcc/bin). I continually get errors when make is attempting to build the TCL components and then the script just stops. Everything starts going sour when it reaches the TCL components to build libpgtcl. I get lot's of parse errors in the source code files. Below is excerpts from the output of make. Please advise. pgtcl.c:157: `TCL_OK' undeclared (first use in this function) pgtcl.c:158: warning: control reaches end of non-void function pgtcl.c: At top level: pgtcl.c:162: parse error before '*' token pgtcl.c:163: warning: no previous prototype for `Pgtcl_SafeInit' pgtcl.c: In function `Pgtcl_SafeInit': pgtcl.c:164: `interp' undeclared (first use in this function) gmake[3]: *** [pgtcl.o] Error 1 gmake[3]: Leaving directory `/local/home/afalanga/src/play_build/postgresql-7.2.3/src/interfaces/libpgtcl' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/local/home/afalanga/src/play_build/postgresql-7.2.3/src/interfaces' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/local/home/afalanga/src/play_build/postgresql-7.2.3/src' gmake: *** [all] Error 2 pgtclId.h:62: warning: type defaults to `int' in declaration of `Pg_ConnType' pgtclId.h:62: warning: data definition has no type or storage class pgtclCmds.h:130: parse error before "cData" Thanks, Andy
afalanga@syracusenetworks.com (Andrew Falanga) writes: > I've managed to get Postres installed with no trouble, however, I'm > less than successful when trying to install Postgres with the TCL > components built as well. Actually, the problem isn't the install, > but the build process. It looks to me like the compile isn't finding tcl.h. (In general, showing the first few errors you get is much more useful than showing the last few ... I wouldn't have to guess about this if you'd shown the initial error, which is probably something about tcl.h not found.) If you've got tcl.h in a nonstandard place, which is to say anywhere but /usr/include or /usr/local/include, you need to configure --with-includes to tell where. Likely you'll need a --with-libs, too. regards, tom lane