CentOS 7 编译安装 sqlite3
在CentOS 7上编译安装SQLite 3的步骤如下:
- 安装编译工具和依赖库:
sudo yum groupinstall "Development Tools"
sudo yum install readline-devel
- 下载SQLite源码包:
wget https://www.sqlite.org/2022/sqlite-autoconf-3360000.tar.gz
- 解压源码包:
tar zxvf sqlite-autoconf-3360000.tar.gz
- 编译和安装:
cd sqlite-autoconf-3360000
./configure --prefix=/usr/local
make
sudo make install
- 验证安装:
/usr/local/bin/sqlite3 --version
以上步骤会在系统中安装SQLite 3到/usr/local/bin
目录下,你可以通过运行sqlite3 --version
来确认安装是否成功。
评论已关闭