sqlite3ã¨sqlite2ãåå± ããã - sqlite2ã®ã½ã¼ã¹ã¤ã³ã¹ãã¼ã«
CentOS4.6ã®ç°å¢ã«ãsqlite2ãã¤ã³ã¹ãã¼ã«ããæ¹æ³ã§ãã
sqlite3ãæ¶ãã¦ãã¾ãã¨ãyumã使ããªããªã£ã¦ãã¾ãã®ã§ãã½ã¼ã¹ã¤ã³ã¹ãã¼ã«ããã¦åå±
ããã¦ã¿ã¾ãã
ãsqlite3を消すとyumが使えなくなる - maru.cc@はてなã
ã¾ãã¯ãcvsããsqlite2ã®ã½ã¼ã¹ãè½ã¨ãã¦ãã¾ãã
è½ã¨ãå ´æã¯ä»¥ä¸ããã
http://www.sqlite.org/download.html#cvs
ã¾ãã¯ãcvsã¯ã©ã¤ã¢ã³ããå ¥ã£ã¦ããªãã£ãã®ã§ãyumã§ã¤ã³ã¹ãã¼ã«ã
# yum install cvs
次ã«ãã½ã¼ã¹ãè½ã¨ãã¦ãã¾ãã
cvsã¸ã®loginæã®ãã¹ã¯ã¼ãã¯ãã¡ãã«æ¸ããã¦ãã¾ãï¼http://www.sqlite.org/download.html#cvs
# cd /usr/local/src/ # cvs -d :pserver:[email protected]:/sqlite login # cvs -d :pserver:[email protected]:/sqlite checkout -r version_2 -d sqlite2 sqlite
å¾ã¯ãæ®éã« configureã§ãã
# cd sqlite2/ # ./configure checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc (ç¥) checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details.
ã¨æã£ãããããã§ã¨ã©ã¼ã«ã
ã©ããããgcc-c++ãå
¥ã£ã¦ããªããããªã®ã§ããã¡ããyumã§å
¥ãã¦ãã¾ãã¾ãã
# yum install gcc-c++
å度ææ¦ã
# ./configure # make # make install
ããã§ç¡äºã«ã¤ã³ã¹ãã¼ã«å®äºãã¾ããã
# sqlite -version 2.8.17 # sqlite3 -version 3.3.6
ç¡äºã«åå± ç°å¢ãã§ãã¾ããã