python make dies :libtk8.5.so: cannot open shared object file: Nosuch file or directory

Discussion in 'Python' started by Tony Lay, Jul 13, 2009.

  1. Tony  Lay

    Tony Lay Guest

    Trying to build python-2.6.2



    ../configure --prefix=/usr/local --exec-prefix=/usr/local LDFLAGS="-L/
    usr/local"

    (runs through happily, had to make some libs local)



    make runs most of the way until…



    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/tmp/
    meld/Python-2.6.2/./Include -I. -IInclude -I./Include -I/usr/local/
    include -I/tmp/meld/Python-2.6.2/Include -I/tmp/meld/Python-2.6.2 -c /
    tmp/meld/Python-2.6.2/Modules/_tkinter.c -o build/temp.linux-i686-2.6/
    tmp/meld/Python-2.6.2/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/tmp/
    meld/Python-2.6.2/./Include -I. -IInclude -I./Include -I/usr/local/
    include -I/tmp/meld/Python-2.6.2/Include -I/tmp/meld/Python-2.6.2 -c /
    tmp/meld/Python-2.6.2/Modules/tkappinit.c -o build/temp.linux-i686-2.6/
    tmp/meld/Python-2.6.2/Modules/tkappinit.o

    gcc -pthread -shared build/temp.linux-i686-2.6/tmp/meld/Python-2.6.2/
    Modules/_tkinter.o build/temp.linux-i686-2.6/tmp/meld/Python-2.6.2/
    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-2.6/_tkinter.so

    *** WARNING: renaming "_tkinter" since importing it failed:
    libtk8.5.so: cannot open shared object file: No such file or directory



    Failed to find the necessary bits to build these modules:

    _sqlite3 bsddb185 sunaudiodev

    To find the necessary bits, look in setup.py in detect_modules() for
    the module's name.





    Failed to build these modules:

    _tkinter



    running build_scripts

    # cd /usr/local/lib

    # ls -la | grep libtk8.5.so

    -r-xr-xr-x 1 root root 1112606 Jul 10 13:28 libtk8.5.so

    Am I missing something, it’s there?

    Regards,

    -Tony
    Tony Lay, Jul 13, 2009
    #1
    1. Advertising

  2. Tony  Lay

    Tony Lay Guest

    On Jul 13, 10:09 am, Christian Heimes <> wrote:
    > Tony Lay wrote:
    > > # cd /usr/local/lib

    >
    > > # ls -la | grep libtk8.5.so

    >
    > > -r-xr-xr-x   1 root root  1112606 Jul 10 13:28 libtk8.5.so

    >
    > > Am I missing something, it’s there?

    >
    > Is /usr/local/lib in your library search path? It looks like it isn't.
    > Check /etc/ld.so.conf and /etc/ld.so.conf.d/.
    >
    > Christian


    I added /usr/local/lib to ld.so.conf.d/python26.conf and ran ldconfig
    (thanks Chrisitan)

    Ran a make distclean (had to move the files and got a “file not found”
    from my previous working directory).

    Everything compiled and installed like a charm. Thanks!
    Tony Lay, Jul 13, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TCMA
    Replies:
    0
    Views:
    1,456
  2. Douglass Turner
    Replies:
    2
    Views:
    2,012
    Manfred Bartz
    Sep 4, 2003
  3. gmax2006
    Replies:
    3
    Views:
    17,117
    Damjan
    Aug 9, 2006
  4. fartknuckle

    Python Dies on "make install"

    fartknuckle, Aug 10, 2007, in forum: Python
    Replies:
    2
    Views:
    2,958
    fartknuckle
    Aug 11, 2007
  5. Christopher M. Lusardi
    Replies:
    3
    Views:
    178
    Alan J. Flavell
    Oct 19, 2003
Loading...

Share This Page