From: Florian Haberl (Florian.Haberl_at_chemie.uni-erlangen.de)
Date: Thu Feb 02 2006 - 08:50:36 CST

Hi,

i got some serious problems installing python 2.2.2 for amd64 ( i wanto to use
ied), on 32bit systems theres no problem but now i got a new machine with
64bit:

Linux version 2.6.13-15.7-smp (geeko_at_buildhost) (gcc version 4.0.2 20050901
(prerelease) (SUSE Linux)) #1 SMP Tue Nov 29 14:32:29 UTC 2005

 ./configure --prefix=/raid1/haberl/bin/python-2.2.3
--x-includes=/usr/X11R6/include/ --x-libraries=/usr/X11R6/lib64/

(x includes with explicit path didn`t fix it it still doesn`t find them)

[snip]
building '_tkinter' extension
skipping /raid1/haberl/Python-2.2.3/Modules/_tkinter.c
(build/temp.linux-x86_64-2.2/_tkinter.o up-to-date)
skipping /raid1/haberl/Python-2.2.3/Modules/tkappinit.c
(build/temp.linux-x86_64-2.2/tkappinit.o up-to-date)
gcc -shared build/temp.linux-x86_64-2.2/_tkinter.o
build/temp.linux-x86_64-2.2/tkappinit.o -L/usr/X11R6/lib -L/usr/local/lib
-ltk8.4 -ltcl8.4 -lX11 -o build/lib.linux-x86_64-2.2/_tkinter.so
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld:
cannot find -lX11
collect2: ld returned 1 exit status
WARNING: building of extension "_tkinter" failed: command 'gcc' failed with
exit status 1
running build_scripts
not copying /raid1/haberl/Python-2.2.3/Tools/scripts/pydoc (up-to-date)
[/snip]

so vmd don`t work with numpy of course.

also with a version of python compiled on a 32bit machine it doesn`t work:

vmd > gopython
Info) Starting Python...
Numeric Python module _numpy not found; vmdnumpy module not available.
ImportError: /raid1/haberl/bin/vmd-1.8.3/Python-2.2.3/lib/python2.2/site-package
s/Numeric/_numpy.so: undefined symbol: _Py_NoneStruct
Info) Text interpreter now Python
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/raid1/haberl/bin/vmd-1.8.3/lib/vmd/scripts/python/Tkinter.py", line
59,
 in ?
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError

So has anyone compiled python 2.2.x on amd64/ em64t machines without problems
(I assume that there are several people who have done it with success),
perhaps someone can send me fixed source or binary.

Or maybe there`s soon a version of vmd around, which will work with python
2.4.

vmd > gopython
Info) Starting Python...
Numeric Python module _numpy not found; vmdnumpy module not available.
ImportError: /raid1/haberl/bin/python-2.2.3-32/lib/python2.2/site-packages/Numeric/_numpy.so:
cannot open shared object file: No such file or directory
Info) Text interpreter now Python
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/raid1/haberl/b

Greetings,

Florian

-- 
-------------------------------------------------------------------------------
 Florian Haberl                        
 Computer-Chemie-Centrum   
 Universitaet Erlangen/ Nuernberg
 Naegelsbachstr 25
 D-91052 Erlangen
 Mailto: florian.haberl AT chemie.uni-erlangen.de
-------------------------------------------------------------------------------