Start Linux Leave Linux a while Back to Linux
分类: 其他平台
2020-11-20 17:35:20
1
2
3
4
5
6
|
cd
mkdir sqlite3 #在主机(如Ubuntu)创建工作目录
cd sqlite3 #进入工作目录中
cp /media/sda1/sqlite-autoconf-3080500.tar.gz ./ #复制SQLite源码到主机
tar zxvf sqlite-autoconf-3080500.tar.gz #解压
cd sqlite-autoconf-3080500 #进入解压后的目录
|
1
2
3
|
mkdir ../install #创建安装目录
export PATH=$PATH:/usr/local/arm-2010q1/bin #交叉编译工具路径加入系统环境变量
./configure --host=arm-none-linux-gnueabi --prefix=/home/gary/sqlite3/install
|
1
2
|
make
make install
|
1
2
3
|
cd ../install/bin
arm-none-linux-gnueabi-strip sqlite3
cp libsqlite3.so.0.8.6 /media/sda1 #U盘目录
|
1
2
3
|
cd ../lib
arm-none-linux-gnueabi-strip libsqlite3.so.0.8.6
cp libsqlite3.so.0.8.6 /media/sda1
|
1
2
3
4
5
|
cp /media/sda1/sqlite3 /usr/locl/bin
cp /media/sda1 libsqlite3.so.0.8.6 /usr/local/lib
cd /usr/local/lib
ln -s libsqlite3.so.0.8.6 libsqlite3.so.0
ln -s libsqlite3.so.0.8.6 libsqlite3.so
|
1
2
3
4
5
6
7
|
sqlite3
SQLite version 3.8.5 2014-06-04 14:06:34
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
|