Re: tkConfig.sh vs. ./configure

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: tkConfig.sh vs. ./configure
Date: 2001-12-20 18:00:20
Message-ID: 20011220190020.A25755@zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Dec 20, 2001 at 06:13:12PM +0100, Peter Eisentraut wrote:

> The tclConfig.sh file is found by looking into the path returned by `echo
> 'puts $auto_path' | tclsh`.
>
> Then theoretically, the tkConfig.sh file should be found by looking into
> the path returned by `echo 'puts $auto_path' | wish`, which would indeed

In the X-win:

$ echo 'puts $auto_path; exit' | wish
/usr/lib/tcl8.3 /usr/lib /usr/lib/tk8.3

it's right, but really ugly is that it require X display.

$ echo 'puts $auto_path; exit' | wish
Application initialization failed: no display name and no $DISPLAY
environment variable

The other thing is that tcl*.h and tk.h files are in /usr/inlude/tcl8.3,
and

$ ./configure --prefix=/usr/lib/postgresql \
--with-tcl \
--with-tkconfig=/usr/lib/tk8.3/

finish with:

make[4]: Leaving directory `/var/home/PG_DEVEL/pgsql/src/interfaces/libpgtcl'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../src/interfaces/libpgtcl -I../../../src/include -I/usr/X11R6/include -c -o pgtkAppInit.o pgtkAppInit.c
pgtkAppInit.c:15: tk.h: No such file or directory
make[3]: *** [pgtkAppInit.o] Error 1

(yes, I know --includedir= etc., but it's _standard_ latest unstable
Debian...)

Karel

--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/

C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2001-12-20 18:16:26 -lperl not checked
Previous Message Daniel Kalchev 2001-12-20 17:29:35 Re: tkConfig.sh vs. ./configure