1. download the source package from below:
or
2.unzip and install
<1>unzip
-
tar -zxvf pysqlite-2.8.1.tar.gz
<2>install
-
sudo python setup.py install
3. solve some problem
<1>
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
-
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
solution:
-
sudo apt-get install build-essential autoconf libtool pkg-config
<2>lack python package
-
sudo apt-get install python-dev
<3>No such file or directory #include "sqlite3.h"
-
sudo apt-get install sqlite-devel
<2>error: src/connection.h:33:21: fatal error: sqlite3.h: No such file or directory #include "sqlite3.h"
you have to install sqlite at first!!
-
sudo apt-get install sqlite3
-
sudo apt-get install libsqlite3-dev
阅读(1492) | 评论(0) | 转发(0) |