Forum OpenACS Q&A: Response to Problem compiling postgres7.0 --with-tcl

Collapse
Posted by Roberto Mello on
The Tcl in the AOLserver directory is not the one you want you PostgreSQL to find. That one is tweaked for AOLserver.

You have to tell it where the tclConfig.sh file is for regular Tcl, not AOLserver Tcl. In other words, you need to be able to type "tclsh" or "tclsh8.3" from anywhere. You also need the SuSE Tcl development packages installed (they usually have -devel in the package name).

In my system for example, these is what locate return for tclConfig.sh:

postgres@brasileiro:/usr/local/src/postgresql-7.0.2/src$ locate tclConfig 
/usr/lib/tcl8.3/tclConfig.sh
/usr/local/src/aolserver3_0/tcl7.6/unix/tclConfig.sh.in
/usr/local/src/aolserver3_0/tcl7.6/unix/tclConfig.sh
/usr/local/src/aolserver3_0/tcl8.3.0/win/tclConfig.sh.in
/usr/local/src/aolserver3_0/tcl8.3.0/unix/tclConfig.sh.in
/usr/local/src/aolserver3_0/tcl8.3.0/unix/tclConfig.sh

The one I want PostgreSQL to see is the first one in /usr/lib/tcl8.3