This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: _tkinter compilation fails
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: bobrowski, loewis, nnorwitz, robinf1
Priority: normal Keywords:

Created on 2003-09-12 17:13 by bobrowski, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tmp bobrowski, 2003-09-12 17:13
Messages (4)
msg18144 - (view) Author: Samson Abramsky (bobrowski) Date: 2003-09-12 17:13
Building Python 2.3 on Linux.
At make stage:
_tkinter compilation fails: libtk8.4.so  no such file
of directory
with  gcc arguments 
    -L/usr/local/lib -ltk8.4

However, /usr/local/lib/libtk8.4.so does exist.!
msg18145 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-09-12 18:35
Logged In: YES 
user_id=33168

Are you sure libtk8.4.so isn't a sym link to a non-existent
file?  Is /usr/local/lib configured in ld.so?  Is
LD_LIBRARY_PATH set properly?
msg18146 - (view) Author: Robin Friedrich (robinf1) Date: 2003-11-05 22:03
Logged In: YES 
user_id=404550

I'm seeing this same link error. Python 2.3.2 / Red Hat Linux 
7.3.
I configure tcl/tk with a --prefix in configure and install. 
Works. I configure Python with same prefix; build fails to link 
saying it can't find libtk8.4.so when it indeed there. (the link 
line has the right -L and -l)

For comparison I build a clean Python 2.2.3 from scratch with 
the same configure options and it compiled/linked/installed 
fine against this same exact .so.  

PS> Is LD_LIBRARY_PATH really necessary?
msg18147 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-11-19 20:12
Logged In: YES 
user_id=21627

This is not a bug, but a misconfiguration of the system.

Setting LD_LIBRARY_PATH is not necessary. Alternatively, one
could edit /etc/ld.so.conf, or set LD_RUN_PATH at compile time.
History
Date User Action Args
2022-04-10 16:11:07adminsetgithub: 39221
2003-09-12 17:13:31bobrowskicreate