English 中文(简体)
5. 提升Mac
原标题:SQLite3 upgrade on Mac

我在10.6.8时将第3组升级。 现有3.6.12版,安装在/usr/bin/和3.7.14版,安装在/usr/ local/bin/。 这是安装这一系统的最佳方式吗?

mkdir ~/tempFolder
cd ~/tempFolder
curl https://www.sqlite.org/sqlite-autoconf-3071400.tar.gz | tar xvz
cd sqlite-autoconf-3071400
autoconf
./configure
make
sudo make install

如果不是的话,我应该做些什么来纠正? 最后,在我进入路程时,只有3.7.14点。 我读到,如果我更新了《路况》,我可以简单地打上“qlite”3号,因为它将首先看上去。 我也阅读了一些文章,说我需要更新,而如果我不把所有指挥都穿过炮弹的话,那么我就会大声疾呼。 用什么最佳方法把 Apple子和 Apple子的 latest子打上像样的ll子? 简单地安装最新版本是否容易?

property databaseFolder : POSIX path of (path to public folder as text) & "Databases/"
property databaseName : "myDatabase"
property databasePath : quoted form of (databaseFolder & databaseName as text)
property table1 : "Main"

set xxx to do shell script "sqlite3 " & databasePath & " "select * from " & table1 & "; ""
最佳回答

Use the precompiled binary provided bykouite. a. 装箱,在码头操作:

$ cd folder_where_sqlite3_was_unpacked
$ ./sqlite3

As an alternative, install SQLite from MacPorts. MacPorts ist useful to install a lot of Un*x tools, not only SQLite.

问题回答

Binary zip file may not be the best option. To upgrade my sqlite3 installation, i download the source bundle e.g. sqlite-snapshot-201707212031.tar.gz, untar it in temp folder, go there and do make, followed by make install . To check the installation, run sqlite3 command and observe the version shown.

这是我在SOSX Ventura(10.13.4)上是如何做到的:

我从以下来源汇编了自己的qlite3:。 https://www.sqlite.org/download.html

configure prefix=/usr/local
make ; sudo make install

之后,我的道路上又加上了/usr/ local/bin。

之后,在我的布斯塔尔加了这段话(这似乎就是trick):

export DYLD_LIBRARY_PATH=/usr/local/lib:/usr/lib

This is my test python program it shows that the sqlite3 module is using the version I compiled and installed in /usr/local:

import sqlite3

print(sqlite3.sqlite_version)
print(sqlite3.sqlite_version_info)

conn = sqlite3.connect(":memory:")
cursor = conn.cursor()

cursor.execute("select * from pragma_compile_options()")
x = cursor.fetchall()
print(x)




相关问题
KornShell- Creating a fixed width text file

I need to create a simple fixed width text file in KornShell (ksh). My current attempt using printf to pad the string isn t working out very well. What s the shortest, cleanest way to create a fixed ...

unix find command

how to use the find command to find files/directories which are not matching the pattern. for eg: find <some options > -name "dontfile.txt" should give me output of all the find whose file ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

Case insensitive comparison of strings in shell script

The == operator is used to compare two strings in shell script. However, I want to compare two strings ignoring case, how can it be done? Is there any standard command for this?

1. 露台式照像

在Windows XP中,没有一时出现指挥时,是否有办法操作一种灰色文字? 我常常需要把“善待”(工作)与“灰色”同起来,即使我的文字没有产出,......

热门标签