install Python-2.4.4 from source (parallel to existing Python-2.6)

Simon simon212 at gmx.de
Fri Jun 12 13:05:53 EDT 2009


Christian Heimes wrote:
> Simon wrote:
>> I installed Python-2.4.4.tar.bz2 from python.org, using gcc-4.3 (within
>> openSUSE 11.1 x86_64) via 'make altinstall'.
>>
>> First, I tried to configure with the following flags:
>> --prefix=/opt/python-24 --enable-framework --with-pydebug
>> This provoked an error during compilation via make (sorry, the list was
>> so long, but I will post it, if it helps).
> 
> --enable-framework is for Mac OS X only.
> 
>> Second, configured again without any flags. The installation by 'make
>> altinstall' to /usr/local was a success. Python2.6 seams unaffected,
>> too. So, I got my parallel installation.
> 
> You have chosen the correct and canonical way to install a parallel
> installation of Python.
> 
>> However, I cannot import modules like Tkinter or readline within python2.4.
> 
> You must install the development library of tk, readline, zlib and
> libbz2 prior to configure && make.
> 
> Try this on your box:
> 
> zypper install gcc make autoconf automake libtool zlib-devel
> readline-devel tk-devel tcl-devel sqlite2-devel libbz2-devel
> libopenssl-devel
> 


Unfortunately, I got the following errors, while compiling via make. 
Please, see attached text file for details about everything I did from 
installing the missing packages via zypper until make.

[...]
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC 
-fno-strict-aliasing -I. -I/home/simon/Python-2.4.4/./Include 
-I/usr/local/include -I/home/simon/Python-2.4.4/Include 
-I/home/simon/Python-2.4.4 -c 
/home/simon/Python-2.4.4/Modules/_curses_panel.c -o 
build/temp.linux-x86_64-2.4/_curses_panel.o
/home/simon/Python-2.4.4/Modules/_curses_panel.c:17:19: error: panel.h: 
No such file or directory
[...]
building '_tkinter' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC 
-fno-strict-aliasing -DWITH_APPINIT=1 -DWITH_BLT=1 -I/usr/X11/include 
-I. -I/home/simon/Python-2.4.4/./Include -I/usr/local/include 
-I/home/simon/Python-2.4.4/Include -I/home/simon/Python-2.4.4 -c 
/home/simon/Python-2.4.4/Modules/_tkinter.c -o 
build/temp.linux-x86_64-2.4/_tkinter.o
In file included from /home/simon/Python-2.4.4/Modules/_tkinter.c:67:
/usr/include/tk.h:78:23: error: X11/Xlib.h: No such file or directory
[...]

X11 says:
Program 'X11' is present in package 'xorg-x11', which is installed on 
your system.

Absolute path to 'X11' is '/usr/bin/X11'. Please check your $PATH 
variable to see whether it contains the mentioned path.

and it is on the path

rpm -q xorg-x11 says: xorg-x11-7.4-8.18

Cheers,
Simon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: install.error.log
URL: <http://mail.python.org/pipermail/python-list/attachments/20090612/97fa411f/attachment-0001.ksh>


More information about the Python-list mailing list