473,385 Members | 1,331 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Python 2.5 install on Gentoo Linux: failed dmb and _tkinter

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
1 3434
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
14
by: Jeffrey Barish | last post by:
Since upgrading to python 2.4 yesterday, I am no longer able to use Tkinter. From http://www.python.org/moin/TkInter I learned that I need to edit Modules/Setup to include Tkinter during the make....
35
by: Michael Kearns | last post by:
I've been using python to write a simple 'launcher' for one of our Java applications for quite a while now. I recently updated it to use python 2.4, and all seemed well. Today, one of my...
7
by: darktemplaaa | last post by:
Hello! I got IBM DB2 V8.1 successfully installed via rpm on my gentoo system except the DAS and the instance. When I run: /opt/IBM/db2/V8.1/instance/dascrt -u dasusr1 I get following error...
12
by: Claudio Grondi | last post by:
I have just discovered the existance of Puppy Linux which is a complete operating system with a suite of GUI apps, only about 50 - 60M booting directly off the CDROM ( http://www.puppylinux.org...
3
by: Mike Orr | last post by:
I'm trying to install a program that uses Durus on a server. It appears that if a Python program uses eggs, it creates a ~/.python-eggs/ directory, so the home directory must be writeable. This...
4
by: milan_sanremo | last post by:
Under Solaris 10 I installed tcl 8.5 and tk8.5 and they work just fine. I built both with ../configure -prefix /usr/local/python/lib I then set LD_RUN_PATH to /usr/local/python/lib and ran the...
5
by: jgelfand | last post by:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) 64-bit machine. Running "./configure --prefix="/ usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but I get the...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.