foldrr's weblog

旧ブログ http://d.hatena.ne.jp/foldrr/

2009-05-04から1日間の記事一覧

SQLite で unable to open database file が発生する

原因は SQLite の仕様。 SQLite は *.db を置いているディレクトリにも書き込み権限が無いとエラーになる。 つまり、 $ ls sample.db $ chmod o+w . としないとエラーになってしまう。もちろん、*.db 本体のパーミッションも忘れずに。 $ chmod o+x sample.db

CentOS へ sqlite3 をインストールする

ソースをダウンロードする。 $ wget http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz ソースをコンパイルする。 $ tar zxf sqlite-amalgamation-3.6.13.tar.gz $ cd sqlite-amalgamation-3.6.13 $ ./configure --prefix=$HOME $ make $ make insta…