Problem compiling Python 1.5.2 w/Tkinter on Linux 
Author Message
 Problem compiling Python 1.5.2 w/Tkinter on Linux

 I'm trying to compile python 1.5.2 on my Caldera OpenLinux 2.2 box
(kernel 2.2.5), and make has the following complaint:

gcc  -Xlinker -export-dynamic python.o \
          ../libpython1.5.a -L/usr/lib -ltk8.0 -ltcl8.0 -L/usr/X11R6/lib
-lX11        -ldl  -lm  -o python
/usr/i386-linux/bin/ld: cannot open -lX11: No such file or directory
make[1]: *** [link] Error 1
make[1]: Leaving directory `/usr/local/src/Python-1.5.2/Modules'
make: *** [python] Error 2

This is after I've uncommented the lines in Modules/Setup to enable
Tkinter.  As far as I understand it, the problem is that X11 is not the
actual name of the X library the linker is looking for, but as a newbie
to Linux, gcc, and X, I've no idea how to determine what the name that
it's looking for is.  (Assuming, that is, that I've even diagnosed the
problem correctly.)

This is the first time I'm wrestling with recompiling Python from
source, since up to now the version that came installed w/Caldera 2.2
(v1.5.1) has been adequate. I'm told, though, that some of the XML stuff
in particular relies on 1.5.2

Any insights into getting this to work would be appreciated mightily.

Joshua



Thu, 05 Sep 2002 03:00:00 GMT  
 Problem compiling Python 1.5.2 w/Tkinter on Linux
Joshua Macy dijo sobre Problem compiling Python 1.5.2 w/Tkinter on Linux,
en fecha: Sun, 19 Mar 2000 17:40:43 GMT

| I'm trying to compile Python 1.5.2 on my Caldera OpenLinux 2.2 box
|(kernel 2.2.5), and make has the following complaint:
|
|gcc  -Xlinker -export-dynamic python.o \
|         ../libpython1.5.a -L/usr/lib -ltk8.0 -ltcl8.0 -L/usr/X11R6/lib
|-lX11        -ldl  -lm  -o python
|/usr/i386-linux/bin/ld: cannot open -lX11: No such file or directory
|make[1]: *** [link] Error 1
|make[1]: Leaving directory `/usr/local/src/Python-1.5.2/Modules'
|make: *** [python] Error 2
|

You need to install the package xlib6-dev (or something similar).



Thu, 05 Sep 2002 03:00:00 GMT  
 Problem compiling Python 1.5.2 w/Tkinter on Linux

Quote:

> Joshua Macy dijo sobre Problem compiling Python 1.5.2 w/Tkinter on Linux,
> en fecha: Sun, 19 Mar 2000 17:40:43 GMT

> | I'm trying to compile Python 1.5.2 on my Caldera OpenLinux 2.2 box
> |(kernel 2.2.5), and make has the following complaint:
> |
> |gcc  -Xlinker -export-dynamic python.o \
> |         ../libpython1.5.a -L/usr/lib -ltk8.0 -ltcl8.0 -L/usr/X11R6/lib
> |-lX11        -ldl  -lm  -o python
> |/usr/i386-linux/bin/ld: cannot open -lX11: No such file or directory
> |make[1]: *** [link] Error 1
> |make[1]: Leaving directory `/usr/local/src/Python-1.5.2/Modules'
> |make: *** [python] Error 2
> |

> You need to install the package xlib6-dev (or something similar).

  I did have that installed, or as near as I could tell I did, since the
/usr/X11/lib directory contained the expected libX11.so.6.1 and other
stuff.  What seemed to be missing (and I don't know why) was libX11.so
itself, so at the suggestion of someone else who replied by e-mail, I
made a link from libX11.so to libX11.so.6.1  That fixed the problem.  I
still don't really understand why that file/link was missing if it's
part of the development package, but Python 1.5.2 works and so does
Tkinter, so I'm happy. (At least until someone tells me why that link
will irreversibly{*filter*}up my system in the future ;-))

  Joshua



Fri, 06 Sep 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Problems compiling python with tkinter enabled.

2. Troubleshoot: Problem getting Tkinter to work with Python 2.2C1 on Linux

3. Problems with Linux, Python, and Tkinter

4. Problem compiling Python on Linux

5. Python 1.5b1 compile problem/patch (Linux glibc)

6. problem compiling python's readline on linux

7. Extensions/tkinter/* vs Modules/tkinter* (was: Python 1.1 w/ tkinter for AIX)

8. Compiling Python with Tkinter

9. error compiling python 2.1 and tkinter

10. Compiling Python with Tkinter and win32gui

11. compile python witout tkinter

12. Python + Stdwin + Tkinter on Linux

 

 
Powered by phpBB® Forum Software