0
1

More than 1 year has passed since last update.

SQLiteバージョンアップ

Posted at

ソースからコンパイルしてバージョンアップする方法

gcc、makeインストール

yum install -y wget gcc make

最新版のsqlite取得

wget https://www.sqlite.org/2021/sqlite-autoconf-3360000.tar.gz
ls

コンパイル

tar zxvf sqlite-autoconf-3360000.tar.gz
ls
cd sqlite-autoconf-3360000/
./configure --prefix=/usr/local
make
make install
cd ..
ls
rm -rf sqlite-autoconf-3360000 sqlite-autoconf-3360000.tar.gz

ライブラリのパスを通す

mv /usr/bin/sqlite3 /usr/bin/sqlite3_old
ln -s /usr/local/bin/sqlite3 /usr/bin/sqlite3
echo 'export LD_LIBRARY_PATH="/usr/local/lib"' >> ~/.bashrc
ldconfig
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1