build on AIX without Tk

Martin Franklin mfranklin1 at gatwick.westerngeco.slb.com
Mon Dec 15 15:26:55 EST 2003


On Mon, 2003-12-15 at 19:38, Tennill, Dustin wrote:
> Hello all,
> 
> I am brand new to this list, not sure if this the right place to ask
> this question. I have two AIX 5.1 64-bit  boxes and would like to have
> Python on both of them but don't need any of the graphical elements
> (Tk/Tcl/Tkinter). One of the boxes happened to have Tk/Tcl stuff
> installed on it, so I was able to build Python 2.3.2 without a hitch. 
> 
> The other box does not have Tk/Tcl installed, and I don't particularly
> need it there. Below is the error message I get when attempting to make:
> 
> building '_tkinter' extension
> ./Modules/ld_so_aix cc_r -bI:Modules/python.exp
> build/temp.aix-5.1-2.3/_tkinter.
> o build/temp.aix-5.1-2.3/tkappinit.o -L/usr/X11R6/lib -L/usr/local/lib
> -ltk8.2 -
> ltcl8.2 -lX11 -o build/lib.aix-5.1-2.3/_tkinter.so
> ld: 0706-006 Cannot find or open library file: -l tk8.2
>         ld:open(): A file or directory in the path name does not exist.
> ld: 0706-006 Cannot find or open library file: -l tcl8.2
>         ld:open(): A file or directory in the path name does not exist.
> *** WARNING: renaming "_tkinter" since importing it failed: from module
> build/li
> b.aix-5.1-2.3/_tkinter.so No such file or directory
> error: No such file or directory
> make: 1254-004 The error code from the last command is 1.
> 
> 
> Stop.
> 
> Is there any way to build without including tkinter support? (Or am I
> just doing something wrong????)
> 
> Thanks for any help at all . . .
> 


Dustin,

Did you use the same source code area for both builds?   Clearly this
install thinks you want to build Tkinter.  I'm guessing that you didn't
do make clean or make clobber before re-running configure for this
machine....  New version of the python build system try to build
extensions (like tkinter) only if supporting libraries are there...

If you did do make clean (or indeed used a diffferent source area) then
you should be able to simply comment out the _tkinter lines in the
Modules/Setup file... then report this to python sourceforge page



Regards,
Martin.

-- 
Martin Franklin <mfranklin1 at gatwick.westerngeco.slb.com>






More information about the Python-list mailing list