473,804 Members | 3,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1335
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.lm co.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
1379
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 import mx modules successfully. tnguyen@local_host:/users/denver/tnguyen 71 % python Python 2.3 (#1, Aug 26 2003, 16:06:40) on hp-ux11
9
2288
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 documented in the README file. ("Systems defining PY_PTHREAD_D4..."). Apparently, Python 2.3 doesn't like their implementation of pthreads. However, in the "Platform specific notes" section, there is a note about HP-UX 10.20 which makes me believe...
2
4123
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
4141
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 soon as it's received. The problem comes when many children exit at the same time and their father seems to miss some of them. This happens quite often, but not always.
0
1267
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 come up empty.
3
4676
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 -AA flag. In another news group I came across some interesting (ok scarey) information regarding memory leaks in the STL list<...> container. I have compiled and executed the following code and verified that this does in fact leak on my system.
8
8886
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
1561
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
2115
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 -c -o test.o -AP -Ae -DHPUX test.cpp*
2
1516
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: Assembler messages: /var/tmp//ccBtJjjr.s:476: Error: Invalid Add Condition: dc (actually 3 errors of this same type). Can any one direct me to or have answer to this problem please. I am trying to build GNU fortran, it requires GMP & MPFR. Thanks...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10562
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10070
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.