Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/doc/compile-for-unix.md # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / doc / compile-for-unix.md` 105 lines ยท 4774 bytes Raw Blame History Source # Notes On Compiling SQLite On All Kinds Of Unix ## Executive Summary - Get a tarball of the canonical SQLite source tree and unpack it - Run: `./configure` - Run commands like:
As of 2024-10-25, TCL is not longer required for many common build targets, such as "sqlite3.c" or the "sqlite3" command-line tool. So you can skip this step if that is all you want to build. TCL is still required to run "make test" and similar, or to build the TCL extension, of course.
-
Download the SQLite source tree and unpack it. CD into the toplevel directory of the source tree.
-
(Optional): Download Antirez's "linenoise" command-line editing library to provide command-line editing in the CLI. You can find a suitable copy of the linenoise sources at https://sqlite.org/linenoise.tar.gz You are not required to have any command-line editing support in order to use SQLite. But command-line editing does make the interactive experience more enjoyable.
-
Run: `./configure --enable-all --with-tclsh=$HOME/local/bin/tclsh9.0`
You do not need to use --with-tclsh if the tclsh you want to use is the first one on your PATH or if you are building without TCL.
Lots of other options to ./configure are available. Run `./configure --help` for further guidance.
-
Run the "`Makefile`" makefile with an appropriate target. Examples: None of the targets above require TCL. TCL is needed for the following targets:
It is not required that you run the "tclextension-install" target prior to running tests. However, the tests will run more smoothly if you do. The version of SQLite used for the TCL extension does not need to correspond to the version of SQLite under test. So you can install the SQLite TCL extension once, and then use it to test many different versions of SQLite.
-
For a debugging build of the CLI, use `./configure --dev`. A debugging build contains lots of extra debugging code, so it is slow and a lot bigger. You probably do not want to deploy a debugging build. But if you are working on the code, a debugging build works much better.