|
From: Lennart J. <len...@la...> - 2010-06-07 13:56:19
|
Is anyone using PyDB2 on 64 bit linux for 9.5? I'm getting a link error
when trying to compile since there is both a lib32 and a lib64 for 9.5
(on 64 bit, on 32 bit there is only a lib32), and lib32 is found first.
Reversing the order of suggested libs in setup.py seems to work for 9.5
64 bit, havent tried other relaeases.
[... ~/PyDB2/PyDB2_1.1.1]# diff -ruN setup.py.orig setup.py
--- setup.py.orig 2010-06-07 15:21:10.000000000 +0200
+++ setup.py 2010-06-07 15:23:06.000000000 +0200
@@ -79,7 +79,7 @@
# the library directory is either lib32 or lib64. According to some, a
# "lib" symlink should point to the appropriate dir, but it certainly
# doesn't in the installs I've seen...
- for path in ['lib', 'lib32', 'lib64']:
+ for path in ['lib64', 'lib32', 'lib']:
if os.path.exists(os.path.join(db2rootdir, path)):
return os.path.join(db2rootdir, path)
# Give up noisily
/Lennart
|