vagrant@precise64:~$ sudo apt-get install sqlite3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libsqlite3-0
Suggested packages:
sqlite3-doc
The following NEW packages will be installed:
sqlite3
The following packages will be upgraded:
libsqlite3-0
1 upgraded, 1 newly installed, 0 to remove and 147 not upgraded.
Need to get 375 kB of archives.
After this operation, 174 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libsqlite3-0 amd
64 3.7.9-2ubuntu1.1 [349 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main sqlite3 amd64 3.
7.9-2ubuntu1.1 [26.8 kB]
Fetched 375 kB in 0s (413 kB/s)
(Reading database ... 59795 files and directories currently installed.)
Preparing to replace libsqlite3-0 3.7.9-2ubuntu1 (using .../libsqlite3-0_3.7.9-2
ubuntu1.1_amd64.deb) ...
Unpacking replacement libsqlite3-0 ...
Selecting previously unselected package sqlite3.
Unpacking sqlite3 (from .../sqlite3_3.7.9-2ubuntu1.1_amd64.deb) ...
Processing triggers for man-db ...
Setting up libsqlite3-0 (3.7.9-2ubuntu1.1) ...
Setting up sqlite3 (3.7.9-2ubuntu1.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
vagrant@precise64:~$ sqlite
**The program 'sqlite' is currently not installed.** You can install it by typing:
sudo apt-get install sqlite
vagrant@precise64:~$ cd ..
vagrant@precise64:/home$ cd ..
vagrant@precise64:/$ sqlite
The program 'sqlite' is currently not installed. You can install it by typing:
sudo apt-get install sqlite
vagrant@precise64:/$ pwd
/
vagrant@precise64:/$ cd etc
vagrant@precise64:/etc$ sqlite
The program 'sqlite' is currently not installed. You can install it by typing:
sudo apt-get install sqlite
vagrant@precise64:/etc$ cd ..
vagrant@precise64:/$ cd var
vagrant@precise64:/var$ sqlite
The program 'sqlite' is currently not installed. You can install it by typing:
sudo apt-get install sqlite
vagrant@precise64:/var$ find sqlite
find: `sqlite': No such file or directory
vagrant@precise64:/var$ find sqlite3
find: `sqlite3': No such file or directory
vagrant@precise64:/var$
wtf?谢谢。
sqlite
和sqlite3
是两个不同的,同一程序的不兼容版本。
sqlite
适用于版本2sqlite3
的SQLite数据库。适用于版本3的SQLite数据库。有两个版本,因为数据库格式在版本2和版本3之间进行了更改,因此这两种格式不兼容。
如果安装了sqlite3
软件包,则需要使用sqlite3
命令。如果安装了sqlite
软件包,则需要使用sqlite
命令。
另外,二进制文件安装在/bin
或中/usr/bin
,而不是安装在中/var
,通常用于程序数据。您还将需要使用该which
命令,该命令将根据您的命令打印命令的位置$PATH
。运行which sqlite3
收益/usr/bin/sqlite3
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句