Re: [APSW 3.3.13-r1] Fails compiling in CentOS?

Fred <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
At 12:55 26/01/2008 -0800, Roger Binns wrote:
>You are missing both the python development files and the SQLite 
>development files.

Ah, ah, much better... http://pastebin.ca/873830

But it fails after copying just from 
/usr/lib/python2.4/site-packages/apsw.so on the CentOS host into the 
corresponding directory on the AstLinux host:

================================
CentOS
  1. run yum install python python-devel
  2. wget 
http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw-3.3.13-r1.zip
  3. unzip apsw-3.3.13-r1.zip  ; cd apsw-3.3.13-r1
  4. wget http://www.sqlite.org/sqlite-3.5.4.tar.gz
  5. tar xzvf sqlite-3.5.4.tar.gz
  6. mv sqlite-3.5.4 sqlite3
  7. cd sqlite3
  8. env CC="gcc -fPIC" CFLAGS="-DHAVE_DLOPEN" ./configure 
--enable-threadsafe --disable-tcl
  9. make
10. cp .libs/*.a .
11. cd ..
12. python setup.py install
13. cp /usr/lib/python2.4/site-packages/apsw.so /srv/www/lighttpd/
================================
AstLinux host:
  1. cd /usr/lib/python2.4/site-packages
  2. wget http://192.168.0.3/apsw.so
  3. # python
Python 2.4.2 (#1, Jan 26 2008, 17:41:42)
[GCC 4.1.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import apsw
  8. libc.so.6: aborted attempt to load python!
================================
FWIW, Python does work otherwise:

pbx site-packages # python
Python 2.4.2 (#1, Jan 26 2008, 17:41:42)
[GCC 4.1.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> print "hello"
hello
 >>>
================================

I guess either it takes more than just copying a .so file from one host to 
the other, or maybe that there other dependencies like Glibc, GCC, etc.?

Thank you.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.