[APSW 3.3.13-r1] Fails compiling in CentOS?

Fred <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
Hello

I'm not really a developer, and need to find a solutin to use SQLite from 
command-line scripts in AstLinux, which is a Compact Flash-based distro 
which comes with Python 2.4.2 and SQLite (I tell make to use the latest 
from SQLite's site).

The problem I have is that, even though I followed I tried installing the 
APSW library first on a CentOS 5.1 host to see how it worked, and it fails 
installing:

==========
# pwd
/root/python_apsw

# wget http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw-3.3.13-r1.zip

# unzip apsw-3.3.13-r1.zip

# cd apsw-3.3.13-r1

# python setup.py install
[bunch of warnings and errors]
apsw.c:4706: error: ‘SQLITE_IOERR_DIR_FSYNC’ undeclared (first use in 
this function)
apsw.c:4707: error: ‘SQLITE_IOERR_TRUNCATE’ undeclared (first use in 
this function)
apsw.c:4708: error: ‘SQLITE_IOERR_FSTAT’ undeclared (first use in this 
function)
apsw.c:4709: error: ‘SQLITE_IOERR_UNLOCK’ undeclared (first use in this 
function)
apsw.c:4710: error: ‘SQLITE_IOERR_RDLOCK’ undeclared (first use in this 
function)
apsw.c:4714: warning: statement with no effect
error: command 'gcc' failed with exit status 1
==========

Did I miss something from 
http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw.html ?

Any idea what I need to do before unzipping and running "python setup.py 
install"?

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.