By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,715 Members | 748 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,715 IT Pros & Developers. It's quick & easy.

building 2.4.1 on HPUX

P: n/a
I'm trying to compile python 2.4.1, on HPUX10.20, with support for tk and
tcl 8.4 (installed in /opt/tk and /opt/tcl). I assume this means I need to
compile the tkinter module too..

I was getting make errors, saying it couldn't find tcl/tk libs or headers...
so I changed the setup.py script, hard coding library and include paths for
tcl/tk, but it still didn't build the _tkinter module. So next I modified
the Modules/Setup file, uncommenting, and changing compiler arguments to
point to the correct lib and include paths. At least it built this time...
so I ran make test, and got the following error for test_tcl:

TclError: Can't find a usable tk.tcl in the following directories:
/opt/tcl8.4.4/lib/tk8.4 <etc .... the rest of the dirs listed are in my
home directory>

On my system, /opt/tk is a link to /opt/tk8.4.4, therefore, the tk.tcl file
is really in /opt/tk/lib/tk8.4/tk.tcl, but why didn't it look there?

I'm stumped. Did I really have to hack the setup.py and Setup files? Where
is it getting its paths from? Is my environment wrong, or do I need to
change some configure parameters? I'm hoping someone out there knows what
I'm doing wrong, or perhaps can point me in the right direction. Thanks
again

Rich


Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In case someone else reads these for information about a simliar problem....

It turns out, that I did not need to edit the setup.py script, I could just
ignore the compile time INFO statements regarding Tk/Tcl libs and includes..
I did need to modify the Modules/Setup file however...

But the final run-time trick was to define two environment variables...
TK_LIBRARY=/opt/tk/lib/tk8.4, and TCL_LIBRARY=/opt/tcl/lib/tcl8.4

Now "make test", "./python Lib/test/test_tcl.py", and all my python 1.6
scripts seem to work.

I don't know if this is the best solution, but it seems to work.

"Richard Patterson" <ri*****************@lmco.com> wrote in message
news:d9**********@knight.vf.lmco.com...
I'm trying to compile python 2.4.1, on HPUX10.20, with support for tk and
tcl 8.4 (installed in /opt/tk and /opt/tcl). I assume this means I need to compile the tkinter module too..

I was getting make errors, saying it couldn't find tcl/tk libs or headers... so I changed the setup.py script, hard coding library and include paths for tcl/tk, but it still didn't build the _tkinter module. So next I modified
the Modules/Setup file, uncommenting, and changing compiler arguments to
point to the correct lib and include paths. At least it built this time... so I ran make test, and got the following error for test_tcl:

TclError: Can't find a usable tk.tcl in the following directories:
/opt/tcl8.4.4/lib/tk8.4 <etc .... the rest of the dirs listed are in my home directory>

On my system, /opt/tk is a link to /opt/tk8.4.4, therefore, the tk.tcl file is really in /opt/tk/lib/tk8.4/tk.tcl, but why didn't it look there?

I'm stumped. Did I really have to hack the setup.py and Setup files? Where is it getting its paths from? Is my environment wrong, or do I need to
change some configure parameters? I'm hoping someone out there knows what
I'm doing wrong, or perhaps can point me in the right direction. Thanks
again

Rich

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.