472,791 Members | 1,450 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Problem building Python 2.3.4 on RedHat Enterprise; tcl not found

I'm trying to build Python 2.3.4 from source on a RedHat Enterprise
machine for installation in a net-wide accessible directory /net/python.
I tried all of the following variants of ./configure (the first was
required for Python 2.3.3 on RedHat 9):
../configure --prefix=/net/python --enable-unicode=ucs4
../configure --prefix=/net/python
../configure --prefix=/net/python --enable-unicode=ucs2

All of these result in the ominous message (even the last form, which
really surprised me):
checking for UCS-4 tcl... no

Having gone through the make in one case and gotten no _tkinter, I'm
expecting the same results for the other two cases.

Any hints? At this point I'm spinning my wheels. I'm not even sure if
tcl is built with UCS-4 or UCS-2 on RedHat Enterprise.

My fallback will be to build my own tcl/tk. Blasted RedHat. Python 2.3.3
was working just fine under RedHat 9, and I'd have been happy to keep
using it, but Tkinter is acting flaky after the OS upgrade --
tkColorChooser.askcolor is broken (returning strings that Python has no
idea what to do with).

-- Russell
Jul 18 '05 #1
2 3677
Russell E. Owen wrote:
I'm trying to build Python 2.3.4 from source on a RedHat Enterprise
machine for installation in a net-wide accessible directory /net/python.
I tried all of the following variants of ./configure (the first was
required for Python 2.3.3 on RedHat 9):
./configure --prefix=/net/python --enable-unicode=ucs4
./configure --prefix=/net/python
./configure --prefix=/net/python --enable-unicode=ucs2

All of these result in the ominous message (even the last form, which
really surprised me):
checking for UCS-4 tcl... no

Having gone through the make in one case and gotten no _tkinter, I'm
expecting the same results for the other two cases.

Any hints? At this point I'm spinning my wheels. I'm not even sure if
tcl is built with UCS-4 or UCS-2 on RedHat Enterprise.

My fallback will be to build my own tcl/tk. Blasted RedHat. Python 2.3.3
was working just fine under RedHat 9, and I'd have been happy to keep
using it, but Tkinter is acting flaky after the OS upgrade --
tkColorChooser.askcolor is broken (returning strings that Python has no
idea what to do with).

-- Russell


Russell,
There is some help here:

http://www.talkaboutprogramming.com/...es/290343.html

Appendix A was what I needed to get things working on RH9.

wes

Jul 18 '05 #2
In article <ro*************************@nntp6.u.washington.ed u>,
"Russell E. Owen" <ro***@cesmail.net> wrote:
I'm trying to build Python 2.3.4 from source on a RedHat Enterprise
machine for installation in a net-wide accessible directory /net/python.
I tried all of the following variants of ./configure (the first was
required for Python 2.3.3 on RedHat 9):
./configure --prefix=/net/python --enable-unicode=ucs4
./configure --prefix=/net/python
./configure --prefix=/net/python --enable-unicode=ucs2

All of these result in the ominous message (even the last form, which
really surprised me):
checking for UCS-4 tcl... no


The problems continue...

I decided to try building my own tcl and tk in /net/python. That seemed
to go perfectly, /net/python/wish8.4 works and stuff is where I expected
it to be, e.g.:
% ls /net/python/lib
libtcl8.4.so libtclstub8.4.a libtk8.4.so libtkstub8.4.a python2.3
tcl8.4 tclConfig.sh tk8.4 tkConfig.sh

I then edited Python-2.3.4/Modules/Setup:

_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
-L/net/python/lib \
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
-I/net/python/include \
# *** Uncomment and edit to reflect where your X11 header files are:
-I/usr/X11R6/include \
# *** Or uncomment this for Solaris:
# -I/usr/openwin/include \
# *** Uncomment and edit for Tix extension only:
# -DWITH_TIX -ltix8.1.8.2 \
# *** Uncomment and edit for BLT extension only:
# -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
# *** Uncomment and edit for PIL (TkImaging) extension only:
# (See http://www.pythonware.com/products/pil/ for more info)
# -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
# *** Uncomment and edit for TOGL extension only:
# -DWITH_TOGL togl.c \
# *** Uncomment and edit to reflect your Tcl/Tk versions:
-ltk8.4 -ltcl8.4 \
# *** Uncomment and edit to reflect where your X11 libraries are:
-L/usr/X11R6/lib \
# *** Or uncomment this for Solaris:
# -L/usr/openwin/lib \
# *** Uncomment these for TOGL extension only:
# -lGL -lGLU -lXext -lXmu \
# *** Uncomment for AIX:
# -lld \
# *** Always uncomment this; X11 libraries to link with:
-lX11

But it's no go. I've tried it numerous ways, with make clean, with
freshly unpacked source code, with
../configure --prefix=/net/python --enable-unicode=ucs4
and with
../configure --prefix=/net/python

and it fails to build with:

Modules/posixmodule.c:6018: the use of `tempnam' is dangerous, better
use `mkstemp'
case $MAKEFLAGS in \
*-s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG
-g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g
-O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
../python: error while loading shared libraries: libtk8.4.so: cannot open
shared object file: No such file or directory
make: *** [sharedmods] Error 127

Earlier on it does show _tkinter being built:
....
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -DWITH_APPINIT
-I/net/python/include -I/usr/X11R6/include -c ./Modules/_tkinter.c -o
Modules/_tkinter.o
....

Any ideas?

-- Russell
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Louis Aslett | last post by:
Hi, I am extremely stuck trying to port a PHP app from one server to another while making use of the PEAR Mail_mimeDecode package. We have just upgraded from RedHat 7.x to RedHat Enterprise...
2
by: penglish1 | last post by:
This question applies specifically to RHEL 3.0 (actually Whitebox), but also generally to Redhat and probably pretty much every distribution that uses python for distribution-related tasks...
10
by: Jeff Boes | last post by:
I'm hoping there's someone here with experience in building the Visual Explain tool from Red Hat. I downloaded it and the J2 SDK, but when I attempt to follow the build instructions, I get messages...
1
by: Ioannis Vranos | last post by:
OS: Scientific Linux 4.4 (http://www.scientificlinux.org) which is a Red Hat Enterprise Linux 4 derivative (http://www.redhat.com/rhel/), like CentOS (http://www.centos.org), White Box Linux...
8
by: yinglcs | last post by:
Hi, i am using red hat enterprise 4. It has python 2.3 installed. What is the best way to upgrade to python 2.4? I think one way is to compile python 2.4 from the source, but I can't remove...
3
by: mamoon | last post by:
Hi, I am using Redhat Enterprise Linux A4 since 2 yera. Here I am facing problem due to RAID problem. I am trying to install Redhat Enterprise A4 in new hard disk but it give error - An error has...
0
by: Alexandre Gillet | last post by:
Thanks for your answers. I did solve my problem. I upgraded my glibc libraries and it seems to solve the problem. I was able to build python-2.4.5 using gcc 4.1.2 (glibc-2.5-18.el5_1.1) Alex ...
8
by: karthikbalaguru | last post by:
Hi, One of my python program needs tkinter to be installed to run successfully. I am using Redhat 9.0 and hence tried installing by copying the tkinter-2.2.2-36.i386.rpm alone from the CD 3 to...
0
by: Guido van Rossum | last post by:
Hey Travis, Congratulations with this release! Are you guys thinking of Python 2.6 yet, now that it's been released? --Guido On Tue, Oct 21, 2008 at 2:53 PM, Travis Vaught...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.