I am trying to install pysqlite (Python interface to the SQLite). I downloaded the file with the package (pysqlite-2.5.5.tar.gz). And I did the following:
gunzip pysqlite-2.5.5.tar.gz
tar xvf pysqlite-2.5.5.tar
\cd pysqlite-2.5.5
python setup.py install
At the last step I have a problem. I get the following error message:
error: command 'gcc' failed with exit status 1
I found that other peoples also had this problem.
As far as I understood in the person had a problem because sqlite2 was not installed. But in my case, I have sqlite3 (I can run it from command line).
May be I should change some paths in "setup.cfg"
? At the moment I have there:
#define=
#include_dirs=/usr/local/include
#library_dirs=/usr/local/lib
libraries=sqlite3
define=SQLITE_OMIT_LOAD_EXTENSION
And if I type "which sqlite3" I get:
/usr/bin/sqlite3
I saw a similar question here. The answer was "you need sqlite3-dev". But, even if it is the case, how to check if I have sqlite3-dev
. And if I do not have it how to get it?
Can anybody pleas help me with that problem.
Thank you in advance.
I was able to resolve the same build error by installing the sqlite-devel package:
I had the same problem, I'm using python 2.4, neither
sqlite3-dev
norlibsqlite3-dev
are available for CentOS.seems to solve the issue.
You could use yum or apt-get instead first type :
you will get something like python-sqlite3dbm.noarch
then type :
this way your os will install all you need for you and you wont get errors
I had following compile errors on CentOS release 5.6:
Installing python-devel helped me too:
yum install python-devel
For Debian distros I fixed this problem with