Emmanuel Vaïsse wrote:
> Hi,
>
> I've many trouble to install PySQLite on my debian (trough ssh).
Do you have root access?
> The apt-get method doesn't work
> and
> I've got these errors with easy_install :
> In file included from src/module.c:29:
> src/microprotocols.h:55: error: syntax error before '*' token
> src/microprotocols.h:55: warning: function declaration isn't a prototype
> src/module.c: In function `module_complete':
> src/module.c:90: warning: implicit declaration of function
> `sqlite3_complete'
> src/module.c: In function `init_sqlite':
> src/module.c:294: warning: implicit declaration of function
> `sqlite3_libversion'
> src/module.c:294: warning: passing arg 1 of `PyString_FromString' makes
> pointer from integer without a cast
> error: Setup script exited with error: command 'gcc' failed with exit
> status 1
>
> Can someone help me ? [...]
You don't have the sqlite headers installed. You can fix this as root:
$ apt-get install libsqlite3-dev
If you don't have root access, you will have to download the SQLite3
sources from the SQLite homepage, compile and install them in a custom
location:
$ wget http://www.sqlite.org/sqlite-3.3.5.tar.gz
$ tar xvfz ...
$ cd ...
$ ./configure --prefix=/my/custom/root/
Then in the pysqlite source tree, edit setup.cfg the include and library
paths to point to /my/custom/root/include and /my/custom/root/lib. Then
you should be able to compile pysqlite.
The easy_install method won't work if you have SQLite installed in a
custom location.
Good luck!
-- Gerhard
_______________________________________________
pysqlite mailing list
pysqlite@xxxxxxxxxxxxxxx
http://lists.initd.org/mailman/listinfo/pysqlite
|