1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Update the compile-for-*.md documents.

FossilOrigin-Name: c4da7fa279274e5a6fe214b5c22f17bcf9b40299aeeab5bfbdae2ba0b2de6af0
This commit is contained in:
drh
2024-10-25 15:28:00 +00:00
parent 043943c261
commit 5460d5da8e
4 changed files with 42 additions and 32 deletions

View File

@ -8,11 +8,10 @@ are general and should work on most any modern unix platform.
1. Install a C-compiler. GCC or Clang both work fine. If you are
reading this document, you've probably already done that.
2. Install TCL9 development libraries. In this note, we'll do a
private install in the $HOME/local directory, but you can make
adjustments to install TCL9 wherever you like.
<p>
This document assumes you are working with <b>TCL version 9.0</b>.
2. *(Optional):* Install TCL development libraries. In this note,
we'll do a private install in the $HOME/local directory,
but you can make adjustments to install TCL wherever you like.
This document assumes you are working with TCL version 9.0.
<ol type="a">
<li>Get the TCL source archive, perhaps from
<https://www.tcl.tk/software/tcltk/download.html>
@ -23,6 +22,12 @@ are general and should work on most any modern unix platform.
<li>Run: `./configure --prefix=$HOME/local`
<li>Run: `make install`
</ol>
<p>
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.
4. Download the SQLite source tree and unpack it. CD into the
toplevel directory of the source tree.
@ -30,7 +35,7 @@ are general and should work on most any modern unix platform.
5. 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.
first one on your PATH or if you are building without TCL.
6. Run the "`Makefile`" makefile with an appropriate target.
Examples:
@ -39,6 +44,10 @@ are general and should work on most any modern unix platform.
<li> `make sqlite3`
<li> `make sqldiff`
<li> `make sqlite3_rsync`
</ul>
<p>None of the targets above require TCL. TCL is only needed
for the following targets:
<ul>
<li> `make tclextension-install`
<li> `make devtest`
<li> `make releasetest`
@ -54,4 +63,4 @@ are general and should work on most any modern unix platform.
7. For a debugging build of the CLI, where the ".treetrace" and ".wheretrace"
commands work, add the the --enable-debug argument to configure.
commands work, add the the --with-debug argument to configure.