[Tkinter-discuss] want to build Python with Tkinter on Linux

Tim Jones timj at tolisgroup.com
Mon Mar 21 22:14:21 CET 2011

On Mar 21, 2011, at 1:45 PM, Kevin Buchs wrote:

> I have locked-down (by others) Linux systems, so I need my own custom install of Python (2.7). I have yet to get Tkinter working in the build process. Python will be in a non-standard location and Tcl/Tk are in a non-standard location.  I get these messages from a "make":
> $ make
> running build
> running build_ext
> building dbm using gdbm
> INFO: Can't locate Tcl/Tk libs and/or headers
> Python build finished, but the necessary bits to build these modules were not found:
> _tkinter           bsddb185           dl
> imageop            sunaudiodev
> To find the necessary bits, look in setup.py in detect_modules() for the module's name.
> running build_scripts
> Do there exist any build instructions to direct me as to how to fix this? I am not seeing anything in configure. 

I use custom locations all the time - have you tried the "--prefix=" setting for configure?

	./configure --prefix=/home/secureuser/

That would put everything into /home/secureuser/lib/ and /home/secureuser/bin/.  Just be aware that all of the peojects need the same prefix setting.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20110321/7ebf25b9/attachment.html>

More information about the Tkinter-discuss mailing list