2012-02-15

FreeBSD 9.0 에서 pysqlite 설치

보통 pysqlite 를 설치하려면, pip install pysqlite 명령을 이용해서 쉽게 할 수 있다. 그러나, FreeBSD 9.0 에 pythonbrew를 이용해서 직접 python 을 설치한 경우에는 sqlite3 의 include, library 경로의 문제로 바로 되지 않는다. 이 때문에 직접 소스를 받아서, 올바른 경로를 설정하고 설치해주어야 한다.

설치 순서는 아래와 같다.

$ pkg_add -r sqlite3
$ wget http://pysqlite.googlecode.com/files/pysqlite-2.6.3.tar.gz
$ tar xvfz pysqlite-2.6.3.tar.gz
$ cd pysqlite-2.6.3
$ vi setup.cfg
include_dirs=/usr/local/include
library_dirs=/usr/local/lib
$ python setup.py install

댓글 없음:

댓글 쓰기