473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

building 2.4.1 on HPUX

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
1 1318
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tien Nguyen | last post by:
Hi There, I installed python2.3 (configured with option --with-libs='lpthread -lcl'), and egenix-mx-base-2.0.5 on an HPUX B.11.11 machine. Everything seems to be OK. I can start python and...
9
by: Dan Cescato | last post by:
When I try to build Python 2.3 on HP-UX 10.20 using their cc compiler, I get a compile failure. It comes down to Python/thread_pthread.h deciding that my machine is an unsupported system, as...
2
by: Stephen Boulet | last post by:
I'm looking to install python on hpux 10.2. Anyone know of a site hosting a depot file of a recent python? Thanks. Stephen
1
by: Jorge | last post by:
All, I've got a process that creates some children and want to be alerted when they die. To do this, the SIGCHLD signal is registered in the process using sigaction to jump to a subprogram as...
0
by: Christian Lair | last post by:
Does anyone have a working unpack template for the utmp file on HPUX? I've figured out the Solaris and AIX templates but I just can't get the HPUX one working. Searches of past usenet posts have...
3
by: Jeremy Lemaire | last post by:
Hello, I am working on cross platform code that is displaying a huge memory leak when compiled on 11.00 HPUX using the aCC -AA flag. It is not leaking on NT, LINUX, Solaris, or HPUX without the...
8
by: wenmang | last post by:
Hi, We have the 3rd party libraries written in C. And, in every header file from 3rd party, it has the include guarde: #ifdef __cplusplus #define extern "C" { : APIs... : } #endif
0
by: nickisch | last post by:
For a migration we need Oracle client software for HPUX 10.20. How/where can we get this? Stefan Nickisch ATLAS Elektronik GmbH
0
by: alokverma | last post by:
Hi all, I am trying to compile some code on HP-UX-Itanium faluire. using aCC: HP C/aC++ B3910B A.06.12 I have written a sample code below and using the following compilation command. *aCC...
2
by: krisc | last post by:
I could not find answers to problems with MPFR build on HP UX 11.23 so I am trying here. For several days trying to build MPFR (see mpfr.org). Getting the following error: /var/tmp//ccBtJjjr.s:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.