[Baypiggies] need help

William Deegan bdbaddog at gmail.com
Sat Jan 9 23:44:05 CET 2010


On Sat, Jan 9, 2010 at 12:32 PM, ovi chitayat <ovikanobi at yahoo.com> wrote:
> Hi,
> I am trying to install Python on my private Linux machine.
> Below is the build result:
> =================================================
> [root at centos48_1 Python-3.1.1]# make
> running build
> running build_ext
> building dbm using gdbm
> building '_tkinter' extension
> gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I./Include -I/usr/local/include -IInclude -I/root/Python-3.1.1 -c /root/Python-3.1.1/Modules/_tkinter.c -o build/temp.linux-i686-3.1/root/Python-3.1.1/Modules/_tkinter.o
> gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I./Include -I/usr/local/include -IInclude -I/root/Python-3.1.1 -c /root/Python-3.1.1/Modules/tkappinit.c -o build/temp.linux-i686-3.1/root/Python-3.1.1/Modules/tkappinit.o
> gcc -pthread -shared build/temp.linux-i686-3.1/root/Python-3.1.1/Modules/_tkinter.o build/temp.linux-i686-3.1/root/Python-3.1.1/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/local/lib -ltk8.5 -ltcl8.5 -lX11 -o build/lib.linux-i686-3.1/_tkinter.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
> running build_scripts
> ================================================================
> As you can see, I am running this as root. The Linux version is CentOS 4
> It complains about not being able to open libtk8.5
> I do not understand why that would be the case since this library does
> exist in /usr/local/lib that appear in the -L link search

Do you have the tk8.5-devel packages installed?
You may check the DAG and/or the EPEL repository (for centos4) and see
if they have packages for Python3.x.


These are two repositories I always add to my centos installs. (Well almost).

My bet though is that you don't have the -devel packages installed.

> Please help
> Ovi
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies

More information about the Baypiggies mailing list