Re: [APSW 3.3.13-r1] Fails compiling in CentOS?
Fred <[email protected]>
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
Hello At 11:13 26/01/2008 -0800, Roger Binns wrote: >You didn't post the actual errors before you got the missing defines. Following http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw.html#Building, here's what I did on CentOS 5.1 with python-2.4.3-19.el5: 1. wget http://initd.org/pub/software/pysqlite/apsw/3.3.13-r1/apsw-3.3.13-r1.zip 2. unzip apsw-3.3.13-r1.zip ; cd apsw-3.3.13-r1 I see some C files like traceback.c, but there are no instructions to compile things. I guess "mingwsetup.bat" is for Windows, but I'm using Linux. So... 3. python setup.py install: http://pastebin.ca/873705 (too many errors, so the scrollback buffer chopped off the first part) I suspected that I needed to compile my own SQLite from the source, and (it's not said in the documentation), put in in the APSW directory, and compile from there: 1. In /root/python_apsw/apsw-3.3.13-r1, wget http://www.sqlite.org/sqlite-3.5.4.tar.gz 2. tar xzvf sqlite-3.5.4.tar.gz 3. mv sqlite-3.5.4 sqlite3 4. cd sqlite3 5. env CC="gcc -fPIC" CFLAGS="-DHAVE_DLOPEN" ./configure --enable-threadsafe --disable-tcl 6. make 7. cp .libs/*.a . 8. cd .. 9. python setup.py install Same kind of error: http://pastebin.ca/873709 I suspect I need something else. Are there dependencies you can think of? Is there a way to save the whole errors/warnings in a file instead? Thanks.