SQLite FTS3安装,安装后无法创建虚拟表
我对 sqllite lite 和 linux 命令有点陌生,所以任何帮助将不胜感激!我有什么遗漏的吗?
检查时,我仍然看不到新版本 (sqlite-3.7.3)
安装 sqlite-3.7.3 后,由于某种原因,在使用macbook-pro:sqlite-3.7.3 scott$ < em>which sqlite3
/usr/bin/sqlite3
macbook-pro:sqlite-3.7.3 scott$ sqlite3 test.db
SQLite 版本 3.6.12 输入“.help”以获取说明 输入以“;”结尾的 SQL 语句
sqlite>使用 fts3() 创建虚拟表 vt;
SQL错误:没有这样的模块:fts3
sqlite安装转储:
macbook-pro:sqlite-3.7.3 scott$ sudo make install 测试-z“/usr/local/lib”|| /Users/scott/sqlite-3.7.3/install-sh -d“/usr/local/lib” /bin/sh ./libtool --mode=install /usr/bin/install -c 'libsqlite3.la' '/usr/local/lib/libsqlite3.la' /usr/bin/install -c .libs/libsqlite3.0.8.6.dylib /usr/local/lib/libsqlite3.0.8.6.dylib (cd /usr/local/lib && { ln -s -f libsqlite3.0.8.6.dylib libsqlite3.0.dylib || { rm -f libsqlite3.0.dylib && ln -s libsqlite3. 0.8.6.dylib libsqlite3.0.dylib }) (cd /usr/local/lib && { ln -s -f libsqlite3.0.8.6.dylib libsqlite3.dylib || { rm -f libsqlite3.dylib && ln -s libsqlite3.0.8.6. dylib libsqlite3.dylib }; /usr/bin/install -c .libs/libsqlite3.lai /usr/local/lib/libsqlite3.la /usr/bin/install -c .libs/libsqlite3.a /usr/local/lib/libsqlite3.a chmod 644 /usr/local/lib/libsqlite3.a
ranlib /usr/local/lib/libsqlite3.a
库已安装在: /usr/local/lib
如果您碰巧想要链接已安装的库 在给定目录 LIBDIR 中,您必须使用 libtool,并且 指定库的完整路径名,或使用 -LLIBDIR' 在链接期间标记并至少执行以下操作之一: - 将 LIBDIR 添加到 DYLD_LIBRARY_PATH 环境变量中 执行期间
有关详细信息,请参阅有关共享库的任何操作系统文档
,例如 ld(1) 和 ld.so(8) 手册页。
测试-z“/usr/local/bin”|| /Users/scott/sqlite-3.7.3/install-sh -d“/usr/local/bin” /bin/sh ./libtool --mode=install /usr/bin/install -c 'sqlite3' '/usr/local/bin/sqlite3' /usr/bin/install -c .libs/sqlite3 /usr/local/bin/sqlite3 测试-z“/usr/local/include”|| /Users/scott/sqlite-3.7.3/install-sh -d“/usr/local/include” /usr/bin/install -c -m 644 'sqlite3.h' '/usr/local/include/sqlite3.h' /usr/bin/install -c -m 644 'sqlite3ext.h' '/usr/local/include/sqlite3ext.h' 测试-z“/usr/local/share/man/man1”|| /Users/scott/sqlite-3.7.3/install-sh -d“/usr/local/share/man/man1” /usr/bin/install -c -m 644 './sqlite3.1' '/usr/local/share/man/man1/sqlite3.1' 测试-z“/usr/local/lib/pkgconfig”|| /Users/scott/sqlite-3.7.3/install-sh -d“/usr/local/lib/pkgconfig” /usr/bin/install -c -m 644 'sqlite3.pc' '/usr/local/lib/pkgconfig/sqlite3.pc'scott
I a bit new to sqllite lite and linux commands so any help would be greatly appreciated! Is there something I am missing?
After the sqlite-3.7.3 installation, for some reason I am still still not seeing the new version (sqlite-3.7.3) when checking with
macbook-pro:sqlite-3.7.3 scott$ which sqlite3
/usr/bin/sqlite3
macbook-pro:sqlite-3.7.3 scott$ sqlite3 test.db
SQLite version 3.6.12
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create virtual table vt using fts3();
SQL error: no such module: fts3
sqlite installation dump:
macbook-pro:sqlite-3.7.3 scott$ sudo make install
test -z "/usr/local/lib" || /Users/scott/sqlite-3.7.3/install-sh -d "/usr/local/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libsqlite3.la' '/usr/local/lib/libsqlite3.la'
/usr/bin/install -c .libs/libsqlite3.0.8.6.dylib /usr/local/lib/libsqlite3.0.8.6.dylib
(cd /usr/local/lib && { ln -s -f libsqlite3.0.8.6.dylib libsqlite3.0.dylib || { rm -f libsqlite3.0.dylib && ln -s libsqlite3.0.8.6.dylib libsqlite3.0.dylib; }; })
(cd /usr/local/lib && { ln -s -f libsqlite3.0.8.6.dylib libsqlite3.dylib || { rm -f libsqlite3.dylib && ln -s libsqlite3.0.8.6.dylib libsqlite3.dylib; }; })
/usr/bin/install -c .libs/libsqlite3.lai /usr/local/lib/libsqlite3.la
/usr/bin/install -c .libs/libsqlite3.a /usr/local/lib/libsqlite3.a
chmod 644 /usr/local/lib/libsqlite3.a
ranlib /usr/local/lib/libsqlite3.a
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the -LLIBDIR'
DYLD_LIBRARY_PATH' environment variable
flag during linking and do at least one of the following:
- add LIBDIR to the
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
test -z "/usr/local/bin" || /Users/scott/sqlite-3.7.3/install-sh -d "/usr/local/bin"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'sqlite3' '/usr/local/bin/sqlite3'
/usr/bin/install -c .libs/sqlite3 /usr/local/bin/sqlite3
test -z "/usr/local/include" || /Users/scott/sqlite-3.7.3/install-sh -d "/usr/local/include"
/usr/bin/install -c -m 644 'sqlite3.h' '/usr/local/include/sqlite3.h'
/usr/bin/install -c -m 644 'sqlite3ext.h' '/usr/local/include/sqlite3ext.h'
test -z "/usr/local/share/man/man1" || /Users/scott/sqlite-3.7.3/install-sh -d "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 './sqlite3.1' '/usr/local/share/man/man1/sqlite3.1'
test -z "/usr/local/lib/pkgconfig" || /Users/scott/sqlite-3.7.3/install-sh -d "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 'sqlite3.pc' '/usr/local/lib/pkgconfig/sqlite3.pc'scott
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在哪里安装了
sqlite3
命令以及您的路径是什么?键入并检查该命令所在的目录是否位于安装 SQLite 3.6 的
/usr/bin
之前。如果没有,请更改.bashrc
中的路径。Where did you install the
sqlite3
command and what is your path? Typeand check whether the dir where the command is located precedes
/usr/bin
, where SQLite 3.6 is installed. If it doesn't, change your path in.bashrc
.