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.!
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?
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?
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.