By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,092 Members | 1,650 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,092 IT Pros & Developers. It's quick & easy.

Python 2.5 install on Gentoo Linux: failed dmb and _tkinter

P: n/a
Hi All,

After a disaster in which I lost my whole harddrive,
I decided to install the newest everything that I use.
I put the latest Gentoo Linux, with gcc 4.1.1,
installed
tcl/tk 8.4.14 and tried Python 2.5. I tried with and
without the suggested -fwrapv compiler option, and
make
gave me the same:

<code>
# make
case $MAKEFLAGS in \
*-s*) CC='gcc -pthread -fwrapv' LDSHARED='gcc
-pthread -fwrapv -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py -q build;;
\
*) CC='gcc -pthread -fwrapv' LDSHARED='gcc -pthread
-fwrapv -shared' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
running build
running build_ext
db.h: found (4, 2) in /usr/include
db lib: using (4, 2) db-4.2
building 'dbm' extension
gcc -pthread -fwrapv -fPIC -fno-strict-aliasing
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-DHAVE_GDBM_NDBM_H -I.
-I/plus/install/Python-2.5/./Include -I./Include -I.
-I/usr/local/include
-I/plus/install/Python-2.5/Include
-I/plus/install/Python-2.5 -c
/plus/install/Python-2.5/Modules/dbmmodule.c -o
build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/dbmmodule.o
gcc -pthread -fwrapv -shared
build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/dbmmodule.o
-L/usr/local/lib -lgdbm -o
build/lib.linux-i686-2.5/dbm.so
*** WARNING: renaming "dbm" since importing it failed:
build/lib.linux-i686-2.5/dbm.so: undefined symbol:
dbm_firstkey
building '_tkinter' extension
gcc -pthread -fwrapv -fPIC -fno-strict-aliasing
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-DWITH_APPINIT=1 -I/usr/X11R6/include -I.
-I/plus/install/Python-2.5/./Include -I./Include -I.
-I/usr/local/include
-I/plus/install/Python-2.5/Include
-I/plus/install/Python-2.5 -c
/plus/install/Python-2.5/Modules/_tkinter.c -o
build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/_tkinter.o
gcc -pthread -fwrapv -fPIC -fno-strict-aliasing
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-DWITH_APPINIT=1 -I/usr/X11R6/include -I.
-I/plus/install/Python-2.5/./Include -I./Include -I.
-I/usr/local/include
-I/plus/install/Python-2.5/Include
-I/plus/install/Python-2.5 -c
/plus/install/Python-2.5/Modules/tkappinit.c -o
build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/tkappinit.o
gcc -pthread -fwrapv -shared
build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/_tkinter.o
build/temp.linux-i686-2.5/plus/install/Python-2.5/Modules/tkappinit.o
-L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/local/lib
-ltk8.4 -ltcl8.4 -lX11 -o
build/lib.linux-i686-2.5/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it
failed: libtk8.4.so: cannot open shared object file:
No such file or directory
running build_scripts
</code>

I have libtk:

<code>
# ls -l /usr/local/lib/libtk8.4.so
-r-xr-xr-x 1 root root 906285 Jan 10 16:08
/usr/local/lib/libtk8.4.so
</code>

I can start wish.

I need Tkinter for sure, and I'll like to have dbm.
How should I proceed?

Thanks for your advice,
Sorin

__________________________________________________ __________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
Jan 10 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sorin Schwimmer schrieb:
*** WARNING: renaming "_tkinter" since importing it
failed: libtk8.4.so: cannot open shared object file:
No such file or directory
running build_scripts

I have libtk:

# ls -l /usr/local/lib/libtk8.4.so
-r-xr-xr-x 1 root root 906285 Jan 10 16:08
/usr/local/lib/libtk8.4.so

I need Tkinter for sure, and I'll like to have dbm.
How should I proceed?
Did you add /usr/local/lib to /etc/ld.so.conf?

Regards,
Martin
Jan 11 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.