Python 2.5 install on Gentoo Linux: failed dmb and _tkinter

S

Sorin Schwimmer

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.
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Sorin said:
*** 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
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top