472,798 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,798 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 3382
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.