Configuring Python for Tcl/Tk in UNIX

C

Chris Marshall

My goal is to use Tkinter on a ScientificLinux machine for a GUI I wrote. I installed Python 2.6.2, then built Tcl and Tk 8.5.7 from source. The final step is to configure Python 2.6 to run Tk. When I use the "make" command in the Python 2.6.2 directory, all is well until it tries to built _tkinter.so. I get an error as follows:
*** WARNING: renaming "_tkinter" since importing it failed: libtk8.5.so: cannot open shared object file: No such file or directory.
Failed to build the following modules:
_tkinter

I cannot use the default install location of /usr/bin, so I am trying to install into another directory. I line-by-line edited the setup.py file to point to the proper directory and I get the same error.

Has anyone had a similar problem?

Any advice is greatly appreciated.

Thanks,
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,930
Messages
2,570,072
Members
46,522
Latest member
Mad-Ram

Latest Threads

Top