473,385 Members | 2,180 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,385 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 3722
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.