login community faq

If I need some new SQLite feature not available through the system installed Python module, like Full-Text Search (FTS) support, how can I install and use a newer version on my account?

asked Jul 26 '12 at 16:21

Rodolfo's gravatar image

Rodolfo
262


I talked with the support via a ticket, solved the problem and they encouraged me to post the answer here so that other WebFaction customers searching the community OSQA forum would benefit from it.

All the steps I went through are described here: http://blog.rodolfocarvalho.net/2012/07/upgrade-sqlite-version-python-webfaction.html

Basically:

$ wget http://pysqlite.googlecode.com/files/pysqlite-2.6.3.tar.gz

$ tar xf pysqlite-2.6.3.tar.gz

$ cd pysqlite-2.6.3

$ python2.7 setup.py build_static

$ mkdir -p $HOME/lib/python2.7

$ PYTHONPATH=$HOME/lib/python2.7 python2.7 setup.py install --home=$HOME


Optionally, override Python's standard sqlite3 module:

$ echo "from dbapi2 import *" >> $HOME/lib/python2.7/pysqlite2/__init__.py

$ ln -s $HOME/lib/python2.7/{pysqlite2,sqlite3}

answered Jul 26 '12 at 16:32

Rodolfo's gravatar image

Rodolfo
262

edited Jul 26 '12 at 16:34

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×229
×9
×3
×2
×1

Asked: Jul 26 '12 at 16:21

Seen: 968 times

Last updated: Jul 26 '12 at 16:34

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited