Building Python with non-standard tcl/tk support

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Mar 3 21:39:18 EST 2012


On Sat, 03 Mar 2012 17:06:39 -0800, Westley Martínez wrote:

> On Sun, Mar 04, 2012 at 12:50:53AM +0000, Steven D'Aprano wrote:
>> Okay, now I'm making progress... if I remove the previously existing
>> _tkinter in lib-dynload, and re-run "make", I get something new:
>> 
>> building '_tkinter' extension
>> gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
>> Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11/include -IInclude -I.
>> -I./ Include -I/usr/local/include -I/tmp/Python-3.2.2 -c
>> /tmp/Python-3.2.2/ Modules/_tkinter.c -o
>> build/temp.linux-i686-3.2/tmp/Python-3.2.2/Modules/ _tkinter.o
>> gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -
>> Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11/include -IInclude -I.
>> -I./ Include -I/usr/local/include -I/tmp/Python-3.2.2 -c
>> /tmp/Python-3.2.2/ Modules/tkappinit.c -o
>> build/temp.linux-i686-3.2/tmp/Python-3.2.2/Modules/ tkappinit.o
>> gcc -pthread -shared
>> build/temp.linux-i686-3.2/tmp/Python-3.2.2/Modules/ _tkinter.o
>> build/temp.linux-i686-3.2/tmp/Python-3.2.2/Modules/tkappinit.o
>> -L/usr/X11/lib -L/usr/local/lib -ltk8.5 -ltcl8.5 -lX11 -o
>> build/lib.linux- i686-3.2/_tkinter.cpython-32m.so
>> *** WARNING: renaming "_tkinter" since importing it failed:
>> libtk8.5.so: cannot open shared object file: No such file or directory
>> 
>> Failed to build these modules:
>> _tkinter
> 
> Verify that libtk8.5.so exists in /usr/local/lib and verify you have
> read permission.

[steve at ando ~]$ ls -l /usr/local/lib/*tk*.so
-r-xr-xr-x 1 root root 1233986 Mar  4 04:01 /usr/local/lib/libtk8.5.so
[steve at ando ~]$ ls -l /usr/local/lib/*tcl*.so
-r-xr-xr-x 1 root root 1133948 Mar  4 03:55 /usr/local/lib/libtcl8.5.so




-- 
Steven



More information about the Python-list mailing list