Re: [APSW 3.3.13-r1] Fails compiling in CentOS?
Roger Binns <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fred wrote: > 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). In that case you aren't using the SQLite you think you are :-) > # python setup.py install > [bunch of warnings and errors] There is likely the answer in there. You shouldn't be seeing any warnings or errors from apsw except one harmless one (compiler stupidity which I have managed to work around in the dev version). > apsw.c:4706: error: â??SQLITE_IOERR_DIR_FSYNCâ?? undeclared (first use in > this function) sqlite-3.5.4$ grep -r SQLITE_IOERR_DIR_FSYNC . ./src/os_unix.c: rc = SQLITE_IOERR_DIR_FSYNC; ./src/sqlite.h.in:#define SQLITE_IOERR_DIR_FSYNC (SQLITE_IOERR | (5<<8)) > Any idea what I need to do before unzipping and running "python setup.py > install"? Just what it says at http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw.html#Building However the latest SQLite is 3.5.4 so you'll want to update the sqlite lines appropriately. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHm3hkmOOfHg372QQRAnF3AJwKa0s1uO95Ui2ApOu0i7W8krRfmQCfcHQV XQ/XLexkymkqSNLsVKxC9bs= =6rSc -----END PGP SIGNATURE-----