title: ImportError: path/to/_spatialite.so: undefined symbol: sqlite3_bind_int64
body: <p>I know, simmilar questions have been asked, but I didn't really find any help.</p>
  
  <p>I used pip install pyspatialite to build the pyspatialite library.
  Since this doesn't work, I had to build it manualy with:
  python setup.py install</p>
  
  <p>Therefore I first had to download the amalgamation for libspatialite and put this into
  /build/pyspatialite/amalgamation  from this source: <a href="http://www.gaia-gis.it/gaia-sins/libspatialite-sources/" rel="nofollow">http://www.gaia-gis.it/gaia-sins/libspatialite-sources/</a></p>
  
  <p>I also edited the /build/pyspatialite/src/connection.h file and removed 'int spatialite_init(int verbose);' because of duplication.</p>
  
  <p>after all, I made it to build the whole library with:
  python setup.py install</p>
  
  <p>But now I get this python error:</p>
  
  <pre><code>from pyspatialite import dbapi2
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/user/pythonPlayground/local/lib/python2.7/site-packages/pyspatialite/dbapi2.py", line 27, in &lt;module&gt;
      from pyspatialite._spatialite import *
  ImportError: /home/user/pythonPlayground/local/lib/python2.7/site-packages/pyspatialite/_spatialite.so: undefined symbol: sqlite3_bind_int64
  </code></pre>
  
  <p>I read, this has something to do with the linked librarys for _spatialite.so file.
  How can I fix this, or what did I miss?</p>
  
  <p>Thanks in advance for any help.</p>