Artifact
9a9ff3e2df5ebcfad7ec72298bfd41137cbbbb81:
- File
www/build.wiki
— part of check-in
[a9e3db1f70]
at
2016-03-01 16:32:10
on branch trunk
— Update referenced OpenSSL version.
(user:
mistachkin
size: 8226)
[more...]
0000: 3c 74 69 74 6c 65 3e 43 6f 6d 70 69 6c 69 6e 67 <title>Compiling
0010: 20 61 6e 64 20 49 6e 73 74 61 6c 6c 69 6e 67 20 and Installing
0020: 46 6f 73 73 69 6c 3c 2f 74 69 74 6c 65 3e 0a 0a Fossil</title>..
0030: 3c 68 32 3e 30 2e 30 20 55 73 69 6e 67 20 41 20 <h2>0.0 Using A
0040: 50 72 65 2d 63 6f 6d 70 69 6c 65 64 20 42 69 6e Pre-compiled Bin
0050: 61 72 79 3c 2f 68 32 3e 0a 0a 3c 70 3e 52 65 6c ary</h2>..<p>Rel
0060: 65 61 73 65 64 20 76 65 72 73 69 6f 6e 73 20 6f eased versions o
0070: 66 20 66 6f 73 73 69 6c 20 63 6f 6d 65 20 77 69 f fossil come wi
0080: 74 68 0a 3c 61 20 68 72 65 66 3d 22 68 74 74 70 th.<a href="http
0090: 3a 2f 2f 77 77 77 2e 66 6f 73 73 69 6c 2d 73 63 ://www.fossil-sc
00a0: 6d 2e 6f 72 67 2f 64 6f 77 6e 6c 6f 61 64 2e 68 m.org/download.h
00b0: 74 6d 6c 22 3e 70 72 65 2d 63 6f 6d 70 69 6c 65 tml">pre-compile
00c0: 64 20 62 69 6e 61 72 69 65 73 20 61 6e 64 0a 61 d binaries and.a
00d0: 20 73 6f 75 72 63 65 20 61 72 63 68 69 76 65 3c source archive<
00e0: 2f 61 3e 20 66 6f 72 20 74 68 61 74 20 72 65 6c /a> for that rel
00f0: 65 61 73 65 2e 20 59 6f 75 20 63 61 6e 20 74 68 ease. You can th
0100: 75 73 20 73 6b 69 70 20 74 68 65 20 66 6f 6c 6c us skip the foll
0110: 6f 77 69 6e 67 20 69 66 20 79 6f 75 0a 77 61 6e owing if you.wan
0120: 74 20 74 6f 20 72 75 6e 20 6f 72 20 62 75 69 6c t to run or buil
0130: 64 20 61 20 72 65 6c 65 61 73 65 20 76 65 72 73 d a release vers
0140: 69 6f 6e 20 6f 66 20 66 6f 73 73 69 6c 2e 20 4a ion of fossil. J
0150: 75 73 74 20 64 6f 77 6e 6c 6f 61 64 0a 74 68 65 ust download.the
0160: 20 61 70 70 72 6f 70 72 69 61 74 65 20 70 61 63 appropriate pac
0170: 6b 61 67 65 20 66 72 6f 6d 20 74 68 65 20 3c 61 kage from the <a
0180: 20 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77 77 href="http://ww
0190: 77 2e 66 6f 73 73 69 6c 2d 73 63 6d 2e 6f 72 67 w.fossil-scm.org
01a0: 2f 64 6f 77 6e 6c 6f 61 64 2e 68 74 6d 6c 22 3e /download.html">
01b0: 64 6f 77 6e 6c 6f 61 64 73 20 70 61 67 65 3c 2f downloads page</
01c0: 61 3e 0a 61 6e 64 20 70 75 74 20 69 74 20 6f 6e a>.and put it on
01d0: 20 79 6f 75 72 20 24 50 41 54 48 2e 0a 54 6f 20 your $PATH..To
01e0: 75 6e 69 6e 73 74 61 6c 6c 2c 20 73 69 6d 70 6c uninstall, simpl
01f0: 79 20 64 65 6c 65 74 65 20 74 68 65 20 62 69 6e y delete the bin
0200: 61 72 79 2e 0a 54 6f 20 75 70 67 72 61 64 65 20 ary..To upgrade
0210: 66 72 6f 6d 20 61 6e 20 6f 6c 64 65 72 20 72 65 from an older re
0220: 6c 65 61 73 65 2c 20 6a 75 73 74 20 6f 76 65 72 lease, just over
0230: 77 72 69 74 65 20 74 68 65 20 6f 6c 64 65 72 20 write the older
0240: 62 69 6e 61 72 79 20 77 69 74 68 0a 74 68 65 20 binary with.the
0250: 6e 65 77 65 72 20 6f 6e 65 2e 3c 2f 70 3e 0a 0a newer one.</p>..
0260: 3c 68 32 3e 30 2e 31 20 45 78 65 63 75 74 69 76 <h2>0.1 Executiv
0270: 65 20 53 75 6d 6d 61 72 79 3c 2f 68 32 3e 0a 0a e Summary</h2>..
0280: 3c 70 3e 42 75 69 6c 64 69 6e 67 20 61 6e 64 20 <p>Building and
0290: 69 6e 73 74 61 6c 6c 69 6e 67 20 69 73 20 76 65 installing is ve
02a0: 72 79 20 73 69 6d 70 6c 65 2e 20 20 54 68 72 65 ry simple. Thre
02b0: 65 20 73 74 65 70 73 3a 3c 2f 70 3e 0a 0a 3c 6f e steps:</p>..<o
02c0: 6c 3e 0a 3c 6c 69 3e 20 44 6f 77 6e 6c 6f 61 64 l>.<li> Download
02d0: 20 61 6e 64 20 75 6e 70 61 63 6b 20 61 20 73 6f and unpack a so
02e0: 75 72 63 65 20 74 61 72 62 61 6c 6c 20 6f 72 20 urce tarball or
02f0: 5a 49 50 2e 0a 3c 6c 69 3e 20 3c 62 3e 2e 2f 63 ZIP..<li> <b>./c
0300: 6f 6e 66 69 67 75 72 65 3b 20 6d 61 6b 65 3c 2f onfigure; make</
0310: 62 3e 0a 3c 6c 69 3e 20 4d 6f 76 65 20 74 68 65 b>.<li> Move the
0320: 20 72 65 73 75 6c 74 69 6e 67 20 22 66 6f 73 73 resulting "foss
0330: 69 6c 22 20 6f 72 20 22 66 6f 73 73 69 6c 2e 65 il" or "fossil.e
0340: 78 65 22 20 65 78 65 63 75 74 61 62 6c 65 20 74 xe" executable t
0350: 6f 20 73 6f 6d 65 70 6c 61 63 65 20 6f 6e 0a 79 o someplace on.y
0360: 6f 75 72 20 24 50 41 54 48 2e 0a 3c 2f 6f 6c 3e our $PATH..</ol>
0370: 0a 0a 3c 70 3e 3c 68 72 3e 0a 0a 3c 68 32 3e 31 ..<p><hr>..<h2>1
0380: 2e 30 20 4f 62 74 61 69 6e 69 6e 67 20 54 68 65 .0 Obtaining The
0390: 20 53 6f 75 72 63 65 20 43 6f 64 65 3c 2f 68 32 Source Code</h2
03a0: 3e 0a 0a 3c 70 3e 46 6f 73 73 69 6c 20 69 73 20 >..<p>Fossil is
03b0: 73 65 6c 66 2d 68 6f 73 74 69 6e 67 2c 20 73 6f self-hosting, so
03c0: 20 79 6f 75 20 63 61 6e 20 6f 62 74 61 69 6e 20 you can obtain
03d0: 61 20 5a 49 50 20 61 72 63 68 69 76 65 20 6f 72 a ZIP archive or
03e0: 20 74 61 72 62 61 6c 6c 0a 63 6f 6e 74 61 69 6e tarball.contain
03f0: 69 6e 67 20 61 20 73 6e 61 70 73 68 6f 74 20 6f ing a snapshot o
0400: 66 20 74 68 65 20 3c 65 6d 3e 6c 61 74 65 73 74 f the <em>latest
0410: 3c 2f 65 6d 3e 20 76 65 72 73 69 6f 6e 20 64 69 </em> version di
0420: 72 65 63 74 6c 79 20 66 72 6f 6d 0a 46 6f 73 73 rectly from.Foss
0430: 69 6c 27 73 20 6f 77 6e 20 66 6f 73 73 69 6c 20 il's own fossil
0440: 72 65 70 6f 73 69 74 6f 72 79 2e 20 41 64 64 69 repository. Addi
0450: 74 69 6f 6e 61 6c 6c 79 2c 20 73 6f 75 72 63 65 tionally, source
0460: 20 61 72 63 68 69 76 65 73 20 6f 66 0a 3c 65 6d archives of.<em
0470: 3e 72 65 6c 65 61 73 65 64 3c 2f 65 6d 3e 20 76 >released</em> v
0480: 65 72 73 69 6f 6e 73 20 6f 66 0a 66 6f 73 73 69 ersions of.fossi
0490: 6c 20 61 72 65 20 61 76 61 69 6c 61 62 6c 65 20 l are available
04a0: 66 72 6f 6d 20 74 68 65 20 3c 61 20 68 72 65 66 from the <a href
04b0: 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 66 6f 73 ="http://www.fos
04c0: 73 69 6c 2d 73 63 6d 2e 6f 72 67 2f 64 6f 77 6e sil-scm.org/down
04d0: 6c 6f 61 64 2e 68 74 6d 6c 22 3e 64 6f 77 6e 6c load.html">downl
04e0: 6f 61 64 73 20 70 61 67 65 3c 2f 61 3e 2e 0a 54 oads page</a>..T
04f0: 6f 20 6f 62 74 61 69 6e 20 61 20 64 65 76 65 6c o obtain a devel
0500: 6f 70 6d 65 6e 74 20 76 65 72 73 69 6f 6e 20 6f opment version o
0510: 66 20 66 6f 73 73 69 6c 2c 20 66 6f 6c 6c 6f 77 f fossil, follow
0520: 20 74 68 65 73 65 20 73 74 65 70 73 3a 3c 2f 70 these steps:</p
0530: 3e 0a 0a 3c 6f 6c 3e 0a 3c 6c 69 3e 3c 70 3e 50 >..<ol>.<li><p>P
0540: 6f 69 6e 74 20 79 6f 75 72 20 77 65 62 20 62 72 oint your web br
0550: 6f 77 73 65 72 20 74 6f 0a 3c 61 20 68 72 65 66 owser to.<a href
0560: 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 66 6f 73 ="http://www.fos
0570: 73 69 6c 2d 73 63 6d 2e 6f 72 67 2f 22 3e 0a 68 sil-scm.org/">.h
0580: 74 74 70 3a 2f 2f 77 77 77 2e 66 6f 73 73 69 6c ttp://www.fossil
0590: 2d 73 63 6d 2e 6f 72 67 2f 3c 2f 61 3e 2e 3c 2f -scm.org/</a>.</
05a0: 70 3e 3c 2f 6c 69 3e 0a 0a 3c 6c 69 3e 3c 70 3e p></li>..<li><p>
05b0: 43 6c 69 63 6b 20 6f 6e 20 74 68 65 0a 3c 61 20 Click on the.<a
05c0: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77 href="http://www
05d0: 2e 66 6f 73 73 69 6c 2d 73 63 6d 2e 6f 72 67 2f .fossil-scm.org/
05e0: 66 6f 73 73 69 6c 2f 74 69 6d 65 6c 69 6e 65 22 fossil/timeline"
05f0: 3e 54 69 6d 65 6c 69 6e 65 3c 2f 61 3e 0a 6c 69 >Timeline</a>.li
0600: 6e 6b 20 61 74 20 74 68 65 20 74 6f 70 20 6f 66 nk at the top of
0610: 20 74 68 65 20 70 61 67 65 2e 3c 2f 70 3e 3c 2f the page.</p></
0620: 6c 69 3e 0a 0a 3c 6c 69 3e 3c 70 3e 53 65 6c 65 li>..<li><p>Sele
0630: 63 74 20 61 20 76 65 72 73 69 6f 6e 20 6f 66 20 ct a version of
0640: 6f 66 20 46 6f 73 73 69 6c 20 79 6f 75 20 77 61 of Fossil you wa
0650: 6e 74 20 74 6f 20 64 6f 77 6e 6c 6f 61 64 2e 20 nt to download.
0660: 20 54 68 65 20 6c 61 74 65 73 74 0a 76 65 72 73 The latest.vers
0670: 69 6f 6e 20 6f 6e 20 74 68 65 20 74 72 75 6e 6b ion on the trunk
0680: 20 62 72 61 6e 63 68 20 69 73 20 75 73 75 61 6c branch is usual
0690: 6c 79 20 61 20 67 6f 6f 64 20 63 68 6f 69 63 65 ly a good choice
06a0: 2e 20 20 43 6c 69 63 6b 20 6f 6e 20 69 74 73 0a . Click on its.
06b0: 6c 69 6e 6b 2e 3c 2f 70 3e 3c 2f 6c 69 3e 0a 0a link.</p></li>..
06c0: 3c 6c 69 3e 3c 70 3e 46 69 6e 61 6c 6c 79 2c 20 <li><p>Finally,
06d0: 63 6c 69 63 6b 20 6f 6e 20 6f 6e 65 20 6f 66 20 click on one of
06e0: 74 68 65 0a 22 5a 69 70 20 41 72 63 68 69 76 65 the."Zip Archive
06f0: 22 20 6f 72 20 22 54 61 72 62 61 6c 6c 22 20 6c " or "Tarball" l
0700: 69 6e 6b 73 2c 20 61 63 63 6f 72 64 69 6e 67 20 inks, according
0710: 74 6f 20 79 6f 75 72 20 70 72 65 66 65 72 65 6e to your preferen
0720: 63 65 2e 0a 54 68 65 73 65 20 6c 69 6e 6b 20 77 ce..These link w
0730: 69 6c 6c 20 62 75 69 6c 64 20 61 20 5a 49 50 20 ill build a ZIP
0740: 61 72 63 68 69 76 65 20 6f 72 20 61 20 67 7a 69 archive or a gzi
0750: 70 2d 63 6f 6d 70 72 65 73 73 65 64 20 74 61 72 p-compressed tar
0760: 62 61 6c 6c 20 6f 66 20 74 68 65 0a 63 6f 6d 70 ball of the.comp
0770: 6c 65 74 65 20 73 6f 75 72 63 65 20 63 6f 64 65 lete source code
0780: 20 61 6e 64 20 64 6f 77 6e 6c 6f 61 64 20 69 74 and download it
0790: 20 74 6f 20 79 6f 75 72 20 63 6f 6d 70 75 74 65 to your compute
07a0: 72 2e 0a 3c 2f 6f 6c 3e 0a 0a 3c 68 32 3e 41 73 r..</ol>..<h2>As
07b0: 69 64 65 3a 20 49 73 20 69 74 20 72 65 61 6c 6c ide: Is it reall
07c0: 79 20 73 61 66 65 20 74 6f 20 75 73 65 20 61 6e y safe to use an
07d0: 20 75 6e 72 65 6c 65 61 73 65 64 20 64 65 76 65 unreleased deve
07e0: 6c 6f 70 6d 65 6e 74 20 76 65 72 73 69 6f 6e 20 lopment version
07f0: 6f 66 0a 74 68 65 20 46 6f 73 73 69 6c 20 73 6f of.the Fossil so
0800: 75 72 63 65 20 63 6f 64 65 3f 3c 2f 68 32 3e 0a urce code?</h2>.
0810: 0a 59 65 73 21 20 20 41 6e 79 20 63 68 65 63 6b .Yes! Any check
0820: 2d 69 6e 20 6f 6e 20 74 68 65 0a 5b 2f 74 69 6d -in on the.[/tim
0830: 65 6c 69 6e 65 3f 74 3d 74 72 75 6e 6b 20 7c 20 eline?t=trunk |
0840: 74 72 75 6e 6b 20 62 72 61 6e 63 68 5d 20 6f 66 trunk branch] of
0850: 20 74 68 65 20 46 6f 73 73 69 6c 0a 5b 68 74 74 the Fossil.[htt
0860: 70 3a 2f 2f 66 6f 73 73 69 6c 2d 73 63 6d 2e 6f p://fossil-scm.o
0870: 72 67 2f 66 6f 73 73 69 6c 2f 74 69 6d 65 6c 69 rg/fossil/timeli
0880: 6e 65 20 7c 20 46 6f 73 73 69 6c 20 73 65 6c 66 ne | Fossil self
0890: 2d 68 6f 73 74 69 6e 67 20 72 65 70 6f 73 69 74 -hosting reposit
08a0: 6f 72 79 5d 0a 77 69 6c 6c 20 77 6f 72 6b 20 66 ory].will work f
08b0: 69 6e 65 2e 20 20 28 44 6f 64 67 79 20 63 6f 64 ine. (Dodgy cod
08c0: 65 20 69 73 20 61 6c 77 61 79 73 20 6f 6e 20 61 e is always on a
08d0: 20 62 72 61 6e 63 68 2e 29 20 20 49 6e 20 74 68 branch.) In th
08e0: 65 20 75 6e 6c 69 6b 65 6c 79 0a 65 76 65 6e 74 e unlikely.event
08f0: 20 74 68 61 74 20 79 6f 75 20 70 69 63 6b 20 61 that you pick a
0900: 20 76 65 72 73 69 6f 6e 20 77 69 74 68 20 61 20 version with a
0910: 73 65 72 69 6f 75 73 20 62 75 67 2c 20 69 74 20 serious bug, it
0920: 73 74 69 6c 6c 20 77 6f 6e 27 74 0a 63 6c 6f 62 still won't.clob
0930: 62 65 72 20 79 6f 75 72 20 66 69 6c 65 73 2e 20 ber your files.
0940: 20 46 6f 73 73 69 6c 20 75 73 65 73 20 73 65 76 Fossil uses sev
0950: 65 72 61 6c 0a 5b 2e 2f 73 65 6c 66 63 68 65 63 eral.[./selfchec
0960: 6b 2e 77 69 6b 69 20 7c 20 73 65 6c 66 2d 63 68 k.wiki | self-ch
0970: 65 63 6b 73 5d 20 70 72 69 6f 72 20 74 6f 20 63 ecks] prior to c
0980: 6f 6d 6d 69 74 74 69 6e 67 20 61 6e 79 0a 72 65 ommitting any.re
0990: 70 6f 73 69 74 6f 72 79 20 63 68 61 6e 67 65 20 pository change
09a0: 74 68 61 74 20 70 72 65 76 65 6e 74 20 6c 6f 73 that prevent los
09b0: 73 2d 6f 66 2d 77 6f 72 6b 20 64 75 65 20 74 6f s-of-work due to
09c0: 20 62 75 67 73 2e 0a 0a 54 68 65 20 46 6f 73 73 bugs...The Foss
09d0: 69 6c 20 5b 2e 2f 73 65 6c 66 68 6f 73 74 2e 77 il [./selfhost.w
09e0: 69 6b 69 20 7c 20 73 65 6c 66 2d 68 6f 73 74 69 iki | self-hosti
09f0: 6e 67 20 72 65 70 6f 73 69 74 6f 72 69 65 73 5d ng repositories]
0a00: 2c 20 65 73 70 65 63 69 61 6c 6c 79 0a 74 68 65 , especially.the
0a10: 20 6f 6e 65 20 61 74 20 5b 68 74 74 70 3a 2f 2f one at [http://
0a20: 77 77 77 2e 66 6f 73 73 69 6c 2d 73 63 6d 2e 6f www.fossil-scm.o
0a30: 72 67 2f 66 6f 73 73 69 6c 5d 2c 20 75 73 75 61 rg/fossil], usua
0a40: 6c 6c 79 20 72 75 6e 20 61 20 76 65 72 73 69 6f lly run a versio
0a50: 6e 0a 6f 66 20 74 72 75 6e 6b 20 74 68 61 74 20 n.of trunk that
0a60: 69 73 20 6c 65 73 73 20 74 68 61 6e 20 61 20 77 is less than a w
0a70: 65 65 6b 20 6f 72 20 74 77 6f 20 6f 6c 64 2e 20 eek or two old.
0a80: 20 4c 6f 6f 6b 20 61 74 20 74 68 65 20 62 6f 74 Look at the bot
0a90: 74 6f 6d 0a 6c 65 66 74 2d 68 61 6e 64 20 63 6f tom.left-hand co
0aa0: 72 6e 65 72 20 6f 66 20 74 68 69 73 20 73 63 72 rner of this scr
0ab0: 65 65 6e 20 28 74 6f 20 74 68 65 20 72 69 67 68 een (to the righ
0ac0: 74 20 6f 66 20 22 54 68 69 73 20 70 61 67 65 20 t of "This page
0ad0: 77 61 73 0a 67 65 6e 65 72 61 74 65 64 20 69 6e was.generated in
0ae0: 2e 2e 2e 22 29 20 74 6f 20 73 65 65 20 65 78 61 ...") to see exa
0af0: 63 74 6c 79 20 77 68 69 63 68 20 76 65 72 73 69 ctly which versi
0b00: 6f 6e 20 6f 66 20 46 6f 73 73 69 6c 20 69 73 0a on of Fossil is.
0b10: 72 65 6e 64 65 72 69 6e 67 20 74 68 69 73 20 70 rendering this p
0b20: 61 67 65 2e 20 20 49 74 20 69 73 20 61 6c 77 61 age. It is alwa
0b30: 79 73 20 73 61 66 65 20 74 6f 20 75 73 65 20 77 ys safe to use w
0b40: 68 61 74 65 76 65 72 20 76 65 72 73 69 6f 6e 0a hatever version.
0b50: 6f 66 20 74 68 65 20 46 6f 73 73 69 6c 20 63 6f of the Fossil co
0b60: 64 65 20 79 6f 75 20 66 69 6e 64 20 72 75 6e 6e de you find runn
0b70: 69 6e 67 20 6f 6e 20 74 68 65 20 6d 61 69 6e 20 ing on the main
0b80: 46 6f 73 73 69 6c 20 77 65 62 73 69 74 65 2e 0a Fossil website..
0b90: 0a 3c 68 32 3e 32 2e 30 20 43 6f 6d 70 69 6c 69 .<h2>2.0 Compili
0ba0: 6e 67 3c 2f 68 32 3e 0a 0a 3c 6f 6c 3e 0a 3c 6c ng</h2>..<ol>.<l
0bb0: 69 20 76 61 6c 75 65 3d 22 35 22 3e 0a 3c 70 3e i value="5">.<p>
0bc0: 55 6e 70 61 63 6b 20 74 68 65 20 5a 49 50 20 6f Unpack the ZIP o
0bd0: 72 20 74 61 72 62 61 6c 6c 20 79 6f 75 20 64 6f r tarball you do
0be0: 77 6e 6c 6f 61 64 65 64 20 74 68 65 6e 0a 3c 62 wnloaded then.<b
0bf0: 3e 63 64 3c 2f 62 3e 20 69 6e 74 6f 20 74 68 65 >cd</b> into the
0c00: 20 64 69 72 65 63 74 6f 72 79 20 63 72 65 61 74 directory creat
0c10: 65 64 2e 3c 2f 70 3e 3c 2f 6c 69 3e 0a 0a 3c 6c ed.</p></li>..<l
0c20: 69 3e 3c 69 3e 28 4f 70 74 69 6f 6e 61 6c 2c 20 i><i>(Optional,
0c30: 55 6e 69 78 20 6f 6e 6c 79 29 3c 2f 69 3e 0a 52 Unix only)</i>.R
0c40: 75 6e 20 3c 62 3e 2e 2f 63 6f 6e 66 69 67 75 72 un <b>./configur
0c50: 65 3c 2f 62 3e 20 74 6f 20 63 6f 6e 73 74 72 75 e</b> to constru
0c60: 63 74 20 61 20 6d 61 6b 65 66 69 6c 65 2e 0a 0a ct a makefile...
0c70: 3c 6f 6c 20 74 79 70 65 3d 22 61 22 3e 0a 3c 6c <ol type="a">.<l
0c80: 69 3e 3c 70 3e 0a 49 66 20 79 6f 75 20 64 6f 20 i><p>.If you do
0c90: 6e 6f 74 20 68 61 76 65 20 74 68 65 20 4f 70 65 not have the Ope
0ca0: 6e 53 53 4c 20 6c 69 62 72 61 72 79 20 69 6e 73 nSSL library ins
0cb0: 74 61 6c 6c 65 64 20 6f 6e 20 79 6f 75 72 20 73 talled on your s
0cc0: 79 73 74 65 6d 2c 20 74 68 65 6e 0a 61 64 64 20 ystem, then.add
0cd0: 3c 62 3e 2d 2d 77 69 74 68 2d 6f 70 65 6e 73 73 <b>--with-openss
0ce0: 6c 3d 6e 6f 6e 65 3c 2f 62 3e 20 74 6f 20 6f 6d l=none</b> to om
0cf0: 69 74 20 74 68 65 20 68 74 74 70 73 20 66 75 6e it the https fun
0d00: 63 74 69 6f 6e 61 6c 69 74 79 2e 0a 0a 3c 6c 69 ctionality...<li
0d10: 3e 3c 70 3e 0a 54 6f 20 62 75 69 6c 64 20 61 20 ><p>.To build a
0d20: 73 74 61 74 69 63 61 6c 6c 79 20 6c 69 6e 6b 65 statically linke
0d30: 64 20 62 69 6e 61 72 79 20 28 73 75 69 74 61 62 d binary (suitab
0d40: 6c 65 20 66 6f 72 20 75 73 65 20 69 6e 73 69 64 le for use insid
0d50: 65 20 61 20 63 68 72 6f 6f 74 0a 6a 61 69 6c 29 e a chroot.jail)
0d60: 20 61 64 64 20 74 68 65 20 3c 62 3e 2d 2d 73 74 add the <b>--st
0d70: 61 74 69 63 3c 2f 62 3e 20 6f 70 74 69 6f 6e 2e atic</b> option.
0d80: 0a 0a 3c 6c 69 3e 3c 70 3e 0a 54 6f 20 65 6e 61 ..<li><p>.To ena
0d90: 62 6c 65 20 74 68 65 20 6e 61 74 69 76 65 20 5b ble the native [
0da0: 2e 2f 74 68 31 2e 6d 64 23 74 63 6c 45 76 61 6c ./th1.md#tclEval
0db0: 20 7c 20 54 63 6c 20 69 6e 74 65 67 72 61 74 69 | Tcl integrati
0dc0: 6f 6e 20 66 65 61 74 75 72 65 5d 20 66 65 61 74 on feature] feat
0dd0: 75 72 65 2c 0a 61 64 64 20 74 68 65 20 3c 62 3e ure,.add the <b>
0de0: 2d 2d 77 69 74 68 2d 74 63 6c 3d 31 3c 2f 62 3e --with-tcl=1</b>
0df0: 20 61 6e 64 20 3c 62 3e 2d 2d 77 69 74 68 2d 74 and <b>--with-t
0e00: 63 6c 2d 70 72 69 76 61 74 65 2d 73 74 75 62 73 cl-private-stubs
0e10: 3d 31 3c 2f 62 3e 20 6f 70 74 69 6f 6e 73 2e 0a =1</b> options..
0e20: 0a 3c 6c 69 3e 3c 70 3e 0a 4f 74 68 65 72 20 63 .<li><p>.Other c
0e30: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 6f 70 74 onfiguration opt
0e40: 69 6f 6e 73 20 63 61 6e 20 62 65 20 73 65 65 6e ions can be seen
0e50: 20 62 79 20 72 75 6e 6e 69 6e 67 0a 3c 62 3e 2e by running.<b>.
0e60: 2f 63 6f 6e 66 69 67 75 72 65 20 2d 2d 68 65 6c /configure --hel
0e70: 70 3c 2f 62 3e 0a 3c 2f 6f 6c 3e 0a 0a 3c 6c 69 p</b>.</ol>..<li
0e80: 3e 3c 70 3e 52 75 6e 20 22 3c 62 3e 6d 61 6b 65 ><p>Run "<b>make
0e90: 3c 2f 62 3e 22 20 74 6f 20 62 75 69 6c 64 20 74 </b>" to build t
0ea0: 68 65 20 22 66 6f 73 73 69 6c 22 20 6f 72 20 22 he "fossil" or "
0eb0: 66 6f 73 73 69 6c 2e 65 78 65 22 20 65 78 65 63 fossil.exe" exec
0ec0: 75 74 61 62 6c 65 2e 0a 54 68 65 20 64 65 74 61 utable..The deta
0ed0: 69 6c 73 20 64 65 70 65 6e 64 20 6f 6e 20 79 6f ils depend on yo
0ee0: 75 72 20 70 6c 61 74 66 6f 72 6d 20 61 6e 64 20 ur platform and
0ef0: 63 6f 6d 70 69 6c 65 72 2e 0a 0a 3c 6f 6c 20 74 compiler...<ol t
0f00: 79 70 65 3d 22 61 22 3e 0a 3c 6c 69 3e 3c 70 3e ype="a">.<li><p>
0f10: 3c 69 3e 55 6e 69 78 3c 2f 69 3e 20 e2 86 92 20 <i>Unix</i> →
0f20: 74 68 65 20 63 6f 6e 66 69 67 75 72 65 2d 67 65 the configure-ge
0f30: 6e 65 72 61 74 65 64 20 4d 61 6b 65 66 69 6c 65 nerated Makefile
0f40: 20 73 68 6f 75 6c 64 20 77 6f 72 6b 20 6f 6e 0a should work on.
0f50: 61 6c 6c 20 55 6e 69 78 20 61 6e 64 20 55 6e 69 all Unix and Uni
0f60: 78 2d 6c 69 6b 65 20 73 79 73 74 65 6d 73 2e 20 x-like systems.
0f70: 20 53 69 6d 70 6c 79 20 74 79 70 65 20 22 3c 62 Simply type "<b
0f80: 3e 6d 61 6b 65 3c 2f 62 3e 22 2e 0a 0a 3c 6c 69 >make</b>"...<li
0f90: 3e 3c 70 3e 3c 69 3e 55 6e 69 78 20 77 69 74 68 ><p><i>Unix with
0fa0: 6f 75 74 20 72 75 6e 6e 69 6e 67 20 22 63 6f 6e out running "con
0fb0: 66 69 67 75 72 65 22 3c 2f 69 3e 20 e2 86 92 20 figure"</i> →
0fc0: 69 66 20 79 6f 75 20 70 72 65 66 65 72 20 74 6f if you prefer to
0fd0: 20 61 76 6f 69 64 0a 72 75 6e 6e 69 6e 67 20 63 avoid.running c
0fe0: 6f 6e 66 69 67 75 72 65 2c 20 79 6f 75 20 63 61 onfigure, you ca
0ff0: 6e 20 61 6c 73 6f 20 75 73 65 3a 20 3c 62 3e 6d n also use: <b>m
1000: 61 6b 65 20 2d 66 20 4d 61 6b 65 66 69 6c 65 2e ake -f Makefile.
1010: 63 6c 61 73 73 69 63 3c 2f 62 3e 2e 20 20 59 6f classic</b>. Yo
1020: 75 20 6d 61 79 0a 77 61 6e 74 20 74 6f 20 6d 61 u may.want to ma
1030: 6b 65 20 6d 69 6e 6f 72 20 65 64 69 74 73 20 74 ke minor edits t
1040: 6f 20 4d 61 6b 65 66 69 6c 65 2e 63 6c 61 73 73 o Makefile.class
1050: 69 63 20 74 6f 20 63 6f 6e 66 69 67 75 72 65 20 ic to configure
1060: 74 68 65 20 62 75 69 6c 64 20 66 6f 72 20 79 6f the build for yo
1070: 75 72 0a 73 79 73 74 65 6d 2e 0a 0a 3c 6c 69 3e ur.system...<li>
1080: 3c 70 3e 3c 69 3e 4d 69 6e 47 57 20 33 2e 78 20 <p><i>MinGW 3.x
1090: 28 3c 75 3e 6e 6f 74 3c 2f 75 3e 20 34 2e 78 29 (<u>not</u> 4.x)
10a0: 20 2f 20 4d 69 6e 47 57 2d 77 36 34 3c 2f 69 3e / MinGW-w64</i>
10b0: 20 e2 86 92 20 55 73 65 20 74 68 65 20 4d 69 6e → Use the Min
10c0: 47 57 20 6d 61 6b 65 66 69 6c 65 3a 0a 22 3c 62 GW makefile:."<b
10d0: 3e 6d 61 6b 65 20 2d 66 20 77 69 6e 2f 4d 61 6b >make -f win/Mak
10e0: 65 66 69 6c 65 2e 6d 69 6e 67 77 3c 2f 62 3e 22 efile.mingw</b>"
10f0: 2e 20 20 4f 6e 20 61 20 57 69 6e 64 6f 77 73 20 . On a Windows
1100: 62 6f 78 20 79 6f 75 20 77 69 6c 6c 20 6e 65 65 box you will nee
1110: 64 20 65 69 74 68 65 72 0a 43 79 67 77 69 6e 20 d either.Cygwin
1120: 6f 72 20 4d 73 79 73 20 61 73 20 62 75 69 6c 64 or Msys as build
1130: 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 2e 20 4f 6e environment. On
1140: 20 43 79 67 77 69 6e 2c 20 4c 69 6e 75 78 20 6f Cygwin, Linux o
1150: 72 20 44 61 72 77 69 6e 20 79 6f 75 20 6d 61 79 r Darwin you may
1160: 20 77 61 6e 74 0a 74 6f 20 6d 61 6b 65 20 6d 69 want.to make mi
1170: 6e 6f 72 20 65 64 69 74 73 20 74 6f 20 77 69 6e nor edits to win
1180: 2f 4d 61 6b 65 66 69 6c 65 2e 6d 69 6e 67 77 20 /Makefile.mingw
1190: 74 6f 20 63 6f 6e 66 69 67 75 72 65 20 74 68 65 to configure the
11a0: 20 63 72 6f 73 73 2d 63 6f 6d 70 69 6c 65 0a 65 cross-compile.e
11b0: 6e 76 69 72 6f 6e 6d 65 6e 74 2e 0a 0a 54 6f 20 nvironment...To
11c0: 65 6e 61 62 6c 65 20 74 68 65 20 6e 61 74 69 76 enable the nativ
11d0: 65 20 5b 2e 2f 74 68 31 2e 6d 64 23 74 63 6c 45 e [./th1.md#tclE
11e0: 76 61 6c 20 7c 20 54 63 6c 20 69 6e 74 65 67 72 val | Tcl integr
11f0: 61 74 69 6f 6e 20 66 65 61 74 75 72 65 5d 2c 20 ation feature],
1200: 75 73 65 20 61 0a 63 6f 6d 6d 61 6e 64 20 6c 69 use a.command li
1210: 6e 65 20 6c 69 6b 65 20 74 68 65 20 66 6f 6c 6c ne like the foll
1220: 6f 77 69 6e 67 20 28 61 6c 6c 20 6f 6e 20 6f 6e owing (all on on
1230: 65 20 6c 69 6e 65 29 3a 0a 0a 3c 62 3e 6d 61 6b e line):..<b>mak
1240: 65 20 2d 66 20 77 69 6e 2f 4d 61 6b 65 66 69 6c e -f win/Makefil
1250: 65 2e 6d 69 6e 67 77 20 46 4f 53 53 49 4c 5f 45 e.mingw FOSSIL_E
1260: 4e 41 42 4c 45 5f 54 43 4c 3d 31 20 46 4f 53 53 NABLE_TCL=1 FOSS
1270: 49 4c 5f 45 4e 41 42 4c 45 5f 54 43 4c 5f 53 54 IL_ENABLE_TCL_ST
1280: 55 42 53 3d 31 20 46 4f 53 53 49 4c 5f 45 4e 41 UBS=1 FOSSIL_ENA
1290: 42 4c 45 5f 54 43 4c 5f 50 52 49 56 41 54 45 5f BLE_TCL_PRIVATE_
12a0: 53 54 55 42 53 3d 31 3c 2f 62 3e 0a 0a 41 6c 74 STUBS=1</b>..Alt
12b0: 65 72 6e 61 74 69 76 65 6c 79 2c 20 3c 62 3e 2e ernatively, <b>.
12c0: 2f 63 6f 6e 66 69 67 75 72 65 3c 2f 62 3e 20 6d /configure</b> m
12d0: 61 79 20 6e 6f 77 20 62 65 20 75 73 65 64 20 74 ay now be used t
12e0: 6f 20 63 72 65 61 74 65 20 61 20 4d 61 6b 65 66 o create a Makef
12f0: 69 6c 65 0a 73 75 69 74 61 62 6c 65 20 66 6f 72 ile.suitable for
1300: 20 75 73 65 20 77 69 74 68 20 4d 69 6e 47 57 3b use with MinGW;
1310: 20 68 6f 77 65 76 65 72 2c 20 6f 70 74 69 6f 6e however, option
1320: 73 20 70 61 73 73 65 64 20 74 6f 20 63 6f 6e 66 s passed to conf
1330: 69 67 75 72 65 20 74 68 61 74 20 61 72 65 0a 6e igure that are.n
1340: 6f 74 20 61 70 70 6c 69 63 61 62 6c 65 20 6f 6e ot applicable on
1350: 20 57 69 6e 64 6f 77 73 20 6d 61 79 20 63 61 75 Windows may cau
1360: 73 65 20 74 68 65 20 63 6f 6e 66 69 67 75 72 61 se the configura
1370: 74 69 6f 6e 20 6f 72 20 63 6f 6d 70 69 6c 61 74 tion or compilat
1380: 69 6f 6e 20 74 6f 20 66 61 69 6c 0a 28 65 2e 67 ion to fail.(e.g
1390: 2e 20 66 75 73 65 66 73 2c 20 69 6e 74 65 72 6e . fusefs, intern
13a0: 61 6c 2d 73 71 6c 69 74 65 2c 20 65 74 63 29 2e al-sqlite, etc).
13b0: 0a 0a 3c 69 3e 48 49 4e 54 3c 2f 69 3e 3a 20 44 ..<i>HINT</i>: D
13c0: 6f 20 3c 75 3e 6e 6f 74 3c 2f 75 3e 20 75 73 65 o <u>not</u> use
13d0: 20 4d 69 6e 47 57 2d 34 2e 78 2c 20 69 74 20 6d MinGW-4.x, it m
13e0: 61 79 20 63 6f 6d 70 69 6c 65 20 62 75 74 20 74 ay compile but t
13f0: 68 65 20 46 6f 73 73 69 6c 20 62 69 6e 61 72 79 he Fossil binary
1400: 0a 77 69 6c 6c 20 6e 6f 74 20 77 6f 72 6b 20 63 .will not work c
1410: 6f 72 72 65 63 74 6c 79 2c 20 73 65 65 0a 5b 68 orrectly, see.[h
1420: 74 74 70 73 3a 2f 2f 77 77 77 2e 66 6f 73 73 69 ttps://www.fossi
1430: 6c 2d 73 63 6d 2e 6f 72 67 2f 69 6e 64 65 78 2e l-scm.org/index.
1440: 68 74 6d 6c 2f 74 6b 74 76 69 65 77 2f 31 38 63 html/tktview/18c
1450: 66 66 34 35 61 34 65 32 31 30 34 33 30 65 32 34 ff45a4e210430e24
1460: 63 20 7c 20 74 69 63 6b 65 74 5d 2e 0a 0a 3c 6c c | ticket]...<l
1470: 69 3e 3c 70 3e 3c 69 3e 4d 53 56 43 3c 2f 69 3e i><p><i>MSVC</i>
1480: 20 e2 86 92 20 55 73 65 20 74 68 65 20 4d 53 56 → Use the MSV
1490: 43 20 6d 61 6b 65 66 69 6c 65 2e 20 20 46 69 72 C makefile. Fir
14a0: 73 74 0a 63 68 61 6e 67 65 20 74 6f 20 74 68 65 st.change to the
14b0: 20 22 77 69 6e 2f 22 20 73 75 62 64 69 72 65 63 "win/" subdirec
14c0: 74 6f 72 79 20 28 22 3c 62 3e 63 64 20 77 69 6e tory ("<b>cd win
14d0: 3c 2f 62 3e 22 29 20 74 68 65 6e 20 72 75 6e 0a </b>") then run.
14e0: 22 3c 62 3e 6e 6d 61 6b 65 20 2f 66 20 4d 61 6b "<b>nmake /f Mak
14f0: 65 66 69 6c 65 2e 6d 73 63 3c 2f 62 3e 22 2e 3c efile.msc</b>".<
1500: 62 72 3e 3c 62 72 3e 41 6c 74 65 72 6e 61 74 69 br><br>Alternati
1510: 76 65 6c 79 2c 20 74 68 65 20 62 61 74 63 68 0a vely, the batch.
1520: 66 69 6c 65 20 22 3c 62 3e 77 69 6e 5c 62 75 69 file "<b>win\bui
1530: 6c 64 6d 73 76 63 2e 62 61 74 3c 2f 62 3e 22 20 ldmsvc.bat</b>"
1540: 6d 61 79 20 62 65 20 75 73 65 64 20 61 6e 64 20 may be used and
1550: 69 74 20 77 69 6c 6c 20 61 74 74 65 6d 70 74 20 it will attempt
1560: 74 6f 0a 64 65 74 65 63 74 20 61 6e 64 20 75 73 to.detect and us
1570: 65 20 74 68 65 20 6c 61 74 65 73 74 20 69 6e 73 e the latest ins
1580: 74 61 6c 6c 65 64 20 76 65 72 73 69 6f 6e 20 6f talled version o
1590: 66 20 4d 53 56 43 2e 3c 62 72 3e 3c 62 72 3e 54 f MSVC.<br><br>T
15a0: 6f 20 65 6e 61 62 6c 65 0a 74 68 65 20 6f 70 74 o enable.the opt
15b0: 69 6f 6e 61 6c 20 3c 61 20 68 72 65 66 3d 22 68 ional <a href="h
15c0: 74 74 70 73 3a 2f 2f 77 77 77 2e 6f 70 65 6e 73 ttps://www.opens
15d0: 73 6c 2e 6f 72 67 2f 22 3e 4f 70 65 6e 53 53 4c sl.org/">OpenSSL
15e0: 3c 2f 61 3e 20 73 75 70 70 6f 72 74 2c 0a 66 69 </a> support,.fi
15f0: 72 73 74 20 3c 61 20 68 72 65 66 3d 22 68 74 74 rst <a href="htt
1600: 70 73 3a 2f 2f 77 77 77 2e 6f 70 65 6e 73 73 6c ps://www.openssl
1610: 2e 6f 72 67 2f 73 6f 75 72 63 65 2f 22 3e 64 6f .org/source/">do
1620: 77 6e 6c 6f 61 64 20 74 68 65 20 6f 66 66 69 63 wnload the offic
1630: 69 61 6c 0a 73 6f 75 72 63 65 20 63 6f 64 65 20 ial.source code
1640: 66 6f 72 20 4f 70 65 6e 53 53 4c 3c 2f 61 3e 20 for OpenSSL</a>
1650: 61 6e 64 20 65 78 74 72 61 63 74 20 69 74 20 74 and extract it t
1660: 6f 20 61 6e 20 61 70 70 72 6f 70 72 69 61 74 65 o an appropriate
1670: 6c 79 20 6e 61 6d 65 64 0a 22 3c 62 3e 6f 70 65 ly named."<b>ope
1680: 6e 73 73 6c 2d 58 2e 59 2e 5a 41 3c 2f 62 3e 22 nssl-X.Y.ZA</b>"
1690: 20 73 75 62 64 69 72 65 63 74 6f 72 79 20 77 69 subdirectory wi
16a0: 74 68 69 6e 20 74 68 65 20 6c 6f 63 61 6c 0a 5b thin the local.[
16b0: 2f 74 72 65 65 3f 63 69 3d 74 72 75 6e 6b 26 6e /tree?ci=trunk&n
16c0: 61 6d 65 3d 63 6f 6d 70 61 74 20 7c 20 63 6f 6d ame=compat | com
16d0: 70 61 74 5d 20 64 69 72 65 63 74 6f 72 79 20 28 pat] directory (
16e0: 65 2e 67 2e 0a 22 3c 62 3e 63 6f 6d 70 61 74 2f e.g.."<b>compat/
16f0: 6f 70 65 6e 73 73 6c 2d 31 2e 30 2e 32 67 3c 2f openssl-1.0.2g</
1700: 62 3e 22 29 2c 20 74 68 65 6e 20 6d 61 6b 65 20 b>"), then make
1710: 73 75 72 65 20 74 68 61 74 20 73 6f 6d 65 20 72 sure that some r
1720: 65 63 65 6e 74 0a 3c 61 20 68 72 65 66 3d 22 68 ecent.<a href="h
1730: 74 74 70 3a 2f 2f 77 77 77 2e 70 65 72 6c 2e 6f ttp://www.perl.o
1740: 72 67 2f 22 3e 50 65 72 6c 3c 2f 61 3e 20 62 69 rg/">Perl</a> bi
1750: 6e 61 72 69 65 73 20 61 72 65 20 69 6e 73 74 61 naries are insta
1760: 6c 6c 65 64 20 6c 6f 63 61 6c 6c 79 2c 0a 61 6e lled locally,.an
1770: 64 20 66 69 6e 61 6c 6c 79 20 72 75 6e 20 6f 6e d finally run on
1780: 65 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 e of the followi
1790: 6e 67 20 63 6f 6d 6d 61 6e 64 73 3a 0a 3c 62 6c ng commands:.<bl
17a0: 6f 63 6b 71 75 6f 74 65 3e 3c 70 72 65 3e 0a 6e ockquote><pre>.n
17b0: 6d 61 6b 65 20 2f 66 20 4d 61 6b 65 66 69 6c 65 make /f Makefile
17c0: 2e 6d 73 63 20 46 4f 53 53 49 4c 5f 45 4e 41 42 .msc FOSSIL_ENAB
17d0: 4c 45 5f 53 53 4c 3d 31 20 46 4f 53 53 49 4c 5f LE_SSL=1 FOSSIL_
17e0: 42 55 49 4c 44 5f 53 53 4c 3d 31 20 50 45 52 4c BUILD_SSL=1 PERL
17f0: 44 49 52 3d 43 3a 5c 66 75 6c 6c 5c 70 61 74 68 DIR=C:\full\path
1800: 5c 74 6f 5c 50 65 72 6c 5c 62 69 6e 0a 3c 2f 70 \to\Perl\bin.</p
1810: 72 65 3e 3c 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e re></blockquote>
1820: 0a 3c 62 6c 6f 63 6b 71 75 6f 74 65 3e 3c 70 72 .<blockquote><pr
1830: 65 3e 0a 62 75 69 6c 64 6d 73 76 63 2e 62 61 74 e>.buildmsvc.bat
1840: 20 46 4f 53 53 49 4c 5f 45 4e 41 42 4c 45 5f 53 FOSSIL_ENABLE_S
1850: 53 4c 3d 31 20 46 4f 53 53 49 4c 5f 42 55 49 4c SL=1 FOSSIL_BUIL
1860: 44 5f 53 53 4c 3d 31 20 50 45 52 4c 44 49 52 3d D_SSL=1 PERLDIR=
1870: 43 3a 5c 66 75 6c 6c 5c 70 61 74 68 5c 74 6f 5c C:\full\path\to\
1880: 50 65 72 6c 5c 62 69 6e 0a 3c 2f 70 72 65 3e 3c Perl\bin.</pre><
1890: 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a 54 6f 20 /blockquote>.To
18a0: 65 6e 61 62 6c 65 20 74 68 65 20 6f 70 74 69 6f enable the optio
18b0: 6e 61 6c 20 6e 61 74 69 76 65 20 5b 2e 2f 74 68 nal native [./th
18c0: 31 2e 6d 64 23 74 63 6c 45 76 61 6c 20 7c 20 54 1.md#tclEval | T
18d0: 63 6c 20 69 6e 74 65 67 72 61 74 69 6f 6e 20 66 cl integration f
18e0: 65 61 74 75 72 65 5d 2c 0a 72 75 6e 20 6f 6e 65 eature],.run one
18f0: 20 6f 66 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e of the followin
1900: 67 20 63 6f 6d 6d 61 6e 64 73 20 6f 72 20 61 64 g commands or ad
1910: 64 20 74 68 65 20 26 71 75 6f 74 3b 46 4f 53 53 d the "FOSS
1920: 49 4c 5f 45 4e 41 42 4c 45 5f 54 43 4c 3d 31 26 IL_ENABLE_TCL=1&
1930: 71 75 6f 74 3b 0a 61 72 67 75 6d 65 6e 74 20 74 quot;.argument t
1940: 6f 20 6f 6e 65 20 6f 66 20 74 68 65 20 6f 74 68 o one of the oth
1950: 65 72 20 4e 4d 41 4b 45 20 63 6f 6d 6d 61 6e 64 er NMAKE command
1960: 20 6c 69 6e 65 73 3a 0a 3c 62 6c 6f 63 6b 71 75 lines:.<blockqu
1970: 6f 74 65 3e 3c 70 72 65 3e 0a 6e 6d 61 6b 65 20 ote><pre>.nmake
1980: 2f 66 20 4d 61 6b 65 66 69 6c 65 2e 6d 73 63 20 /f Makefile.msc
1990: 46 4f 53 53 49 4c 5f 45 4e 41 42 4c 45 5f 54 43 FOSSIL_ENABLE_TC
19a0: 4c 3d 31 0a 3c 2f 70 72 65 3e 3c 2f 62 6c 6f 63 L=1.</pre></bloc
19b0: 6b 71 75 6f 74 65 3e 0a 3c 62 6c 6f 63 6b 71 75 kquote>.<blockqu
19c0: 6f 74 65 3e 3c 70 72 65 3e 0a 62 75 69 6c 64 6d ote><pre>.buildm
19d0: 73 76 63 2e 62 61 74 20 46 4f 53 53 49 4c 5f 45 svc.bat FOSSIL_E
19e0: 4e 41 42 4c 45 5f 54 43 4c 3d 31 0a 3c 2f 70 72 NABLE_TCL=1.</pr
19f0: 65 3e 3c 2f 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a e></blockquote>.
1a00: 0a 3c 6c 69 3e 3c 70 3e 3c 69 3e 43 79 67 77 69 .<li><p><i>Cygwi
1a10: 6e 3c 2f 69 3e 20 e2 86 92 20 54 68 65 20 73 61 n</i> → The sa
1a20: 6d 65 20 61 73 20 6f 74 68 65 72 20 55 6e 69 78 me as other Unix
1a30: 2d 6c 69 6b 65 20 73 79 73 74 65 6d 73 2e 20 49 -like systems. I
1a40: 74 20 69 73 0a 72 65 63 6f 6d 6d 65 6e 64 65 64 t is.recommended
1a50: 20 74 6f 20 63 6f 6e 66 69 67 75 72 65 20 75 73 to configure us
1a60: 69 6e 67 3a 20 22 3c 62 3e 63 6f 6e 66 69 67 75 ing: "<b>configu
1a70: 72 65 20 2d 2d 64 69 73 61 62 6c 65 2d 69 6e 74 re --disable-int
1a80: 65 72 6e 61 6c 2d 73 71 6c 69 74 65 3c 2f 62 3e ernal-sqlite</b>
1a90: 22 2c 0a 6d 61 6b 69 6e 67 20 73 75 72 65 20 79 ",.making sure y
1aa0: 6f 75 20 68 61 76 65 20 74 68 65 20 22 6c 69 62 ou have the "lib
1ab0: 73 71 6c 69 74 65 33 2d 64 65 76 65 6c 22 20 2c sqlite3-devel" ,
1ac0: 20 22 7a 6c 69 62 2d 64 65 76 65 6c 22 20 61 6e "zlib-devel" an
1ad0: 64 0a 22 6f 70 65 6e 73 73 6c 2d 64 65 76 65 6c d."openssl-devel
1ae0: 22 20 70 61 63 6b 61 67 65 73 20 69 6e 73 74 61 " packages insta
1af0: 6c 6c 65 64 20 66 69 72 73 74 2e 0a 3c 2f 6f 6c lled first..</ol
1b00: 3e 0a 3c 2f 6f 6c 3e 0a 0a 3c 68 32 3e 33 2e 30 >.</ol>..<h2>3.0
1b10: 20 49 6e 73 74 61 6c 6c 69 6e 67 3c 2f 68 32 3e Installing</h2>
1b20: 0a 0a 3c 6f 6c 3e 0a 3c 6c 69 20 76 61 6c 75 65 ..<ol>.<li value
1b30: 3d 22 38 22 3e 0a 3c 70 3e 54 68 65 20 66 69 6e ="8">.<p>The fin
1b40: 69 73 68 65 64 20 62 69 6e 61 72 79 20 69 73 20 ished binary is
1b50: 6e 61 6d 65 64 20 22 66 6f 73 73 69 6c 22 20 28 named "fossil" (
1b60: 6f 72 20 22 66 6f 73 73 69 6c 2e 65 78 65 22 20 or "fossil.exe"
1b70: 6f 6e 20 57 69 6e 64 6f 77 73 29 2e 0a 50 75 74 on Windows)..Put
1b80: 20 74 68 69 73 20 62 69 6e 61 72 79 20 69 6e 20 this binary in
1b90: 61 0a 64 69 72 65 63 74 6f 72 79 20 74 68 61 74 a.directory that
1ba0: 20 69 73 20 73 6f 6d 65 77 68 65 72 65 20 6f 6e is somewhere on
1bb0: 20 79 6f 75 72 20 50 41 54 48 20 65 6e 76 69 72 your PATH envir
1bc0: 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 2e onment variable.
1bd0: 0a 49 74 20 64 6f 65 73 20 6e 6f 74 20 6d 61 74 .It does not mat
1be0: 74 65 72 20 77 68 65 72 65 2e 3c 2f 70 3e 0a 0a ter where.</p>..
1bf0: 3c 6c 69 3e 0a 3c 70 3e 3c 62 3e 28 4f 70 74 69 <li>.<p><b>(Opti
1c00: 6f 6e 61 6c 3a 29 3c 2f 62 3e 0a 54 6f 20 75 6e onal:)</b>.To un
1c10: 69 6e 73 74 61 6c 6c 2c 20 6a 75 73 74 20 64 65 install, just de
1c20: 6c 65 74 65 20 74 68 65 20 62 69 6e 61 72 79 2e lete the binary.
1c30: 3c 2f 70 3e 0a 3c 2f 6f 6c 3e 0a 0a 3c 68 32 3e </p>.</ol>..<h2>
1c40: 34 2e 30 20 41 64 64 69 74 69 6f 6e 61 6c 20 43 4.0 Additional C
1c50: 6f 6e 73 69 64 65 72 61 74 69 6f 6e 73 3c 2f 68 onsiderations</h
1c60: 32 3e 0a 0a 3c 75 6c 3e 0a 3c 6c 69 3e 3c 70 3e 2>..<ul>.<li><p>
1c70: 0a 20 20 49 66 20 74 68 65 20 6d 61 6b 65 66 69 . If the makefi
1c80: 6c 65 73 20 74 68 61 74 20 63 6f 6d 65 20 77 69 les that come wi
1c90: 74 68 20 46 6f 73 73 69 6c 20 64 6f 20 6e 6f 74 th Fossil do not
1ca0: 20 77 6f 72 6b 20 66 6f 72 0a 20 20 79 6f 75 2c work for. you,
1cb0: 20 6f 72 20 66 6f 72 20 73 6f 6d 65 20 6f 74 68 or for some oth
1cc0: 65 72 20 72 65 61 73 6f 6e 20 79 6f 75 20 77 61 er reason you wa
1cd0: 6e 74 20 74 6f 20 6b 6e 6f 77 20 68 6f 77 20 74 nt to know how t
1ce0: 6f 20 62 75 69 6c 64 0a 20 20 46 6f 73 73 69 6c o build. Fossil
1cf0: 20 6d 61 6e 75 61 6c 6c 79 2c 20 74 68 65 6e 20 manually, then
1d00: 72 65 66 65 72 20 74 6f 20 74 68 65 0a 20 20 5b refer to the. [
1d10: 2e 2f 6d 61 6b 65 66 69 6c 65 2e 77 69 6b 69 20 ./makefile.wiki
1d20: 7c 20 46 6f 73 73 69 6c 20 42 75 69 6c 64 20 50 | Fossil Build P
1d30: 72 6f 63 65 73 73 5d 20 64 6f 63 75 6d 65 6e 74 rocess] document
1d40: 20 77 68 69 63 68 20 64 65 73 63 72 69 62 65 73 which describes
1d50: 0a 20 20 69 6e 20 64 65 74 61 69 6c 20 77 68 61 . in detail wha
1d60: 74 20 74 68 65 20 6d 61 6b 65 66 69 6c 65 73 20 t the makefiles
1d70: 64 6f 20 62 65 68 69 6e 64 20 74 68 65 20 73 63 do behind the sc
1d80: 65 6e 65 73 2e 0a 0a 3c 6c 69 3e 3c 70 3e 0a 20 enes...<li><p>.
1d90: 20 54 68 65 20 66 6f 73 73 69 6c 20 65 78 65 63 The fossil exec
1da0: 75 74 61 62 6c 65 20 69 73 20 73 65 6c 66 2d 63 utable is self-c
1db0: 6f 6e 74 61 69 6e 65 64 20 61 6e 64 20 73 74 61 ontained and sta
1dc0: 6e 64 2d 61 6c 6f 6e 65 20 61 6e 64 20 75 73 75 nd-alone and usu
1dd0: 61 6c 6c 79 0a 20 20 72 65 71 75 69 72 65 73 20 ally. requires
1de0: 6e 6f 20 73 70 65 63 69 61 6c 20 6c 69 62 72 61 no special libra
1df0: 72 69 65 73 20 6f 72 20 6f 74 68 65 72 20 73 6f ries or other so
1e00: 66 74 77 61 72 65 20 74 6f 20 62 65 20 69 6e 73 ftware to be ins
1e10: 74 61 6c 6c 65 64 2e 20 20 48 6f 77 65 76 65 72 talled. However
1e20: 2c 0a 20 20 74 68 65 20 22 2d 2d 74 6b 22 20 6f ,. the "--tk" o
1e30: 70 74 69 6f 6e 20 74 6f 20 74 68 65 20 5b 2f 68 ption to the [/h
1e40: 65 6c 70 2f 64 69 66 66 7c 64 69 66 66 20 63 6f elp/diff|diff co
1e50: 6d 6d 61 6e 64 5d 20 72 65 71 75 69 72 65 73 20 mmand] requires
1e60: 74 68 61 74 20 54 63 6c 2f 54 6b 0a 20 20 62 65 that Tcl/Tk. be
1e70: 20 69 6e 73 74 61 6c 6c 65 64 20 6f 6e 20 74 68 installed on th
1e80: 65 20 6c 6f 63 61 6c 20 6d 61 63 68 69 6e 65 2e e local machine.
1e90: 20 20 59 6f 75 20 63 61 6e 20 67 65 74 20 54 63 You can get Tc
1ea0: 6c 2f 54 6b 20 66 72 6f 6d 0a 20 20 5b 68 74 74 l/Tk from. [htt
1eb0: 70 3a 2f 2f 77 77 77 2e 61 63 74 69 76 65 73 74 p://www.activest
1ec0: 61 74 65 2e 63 6f 6d 2f 61 63 74 69 76 65 74 63 ate.com/activetc
1ed0: 6c 7c 41 63 74 69 76 65 53 74 61 74 65 5d 2e 0a l|ActiveState]..
1ee0: 0a 3c 6c 69 3e 3c 70 3e 0a 20 20 54 6f 20 62 75 .<li><p>. To bu
1ef0: 69 6c 64 20 6f 6e 20 6f 6c 64 65 72 20 4d 61 63 ild on older Mac
1f00: 73 20 28 63 69 72 63 61 20 32 30 30 32 2c 20 4d s (circa 2002, M
1f10: 61 63 4f 53 20 31 30 2e 32 29 20 65 64 69 74 20 acOS 10.2) edit
1f20: 74 68 65 20 4d 61 6b 65 66 69 6c 65 0a 20 20 67 the Makefile. g
1f30: 65 6e 65 72 61 74 65 64 20 62 79 20 63 6f 6e 66 enerated by conf
1f40: 69 67 75 72 65 20 74 6f 20 61 64 64 20 74 68 65 igure to add the
1f50: 20 66 6f 6c 6c 6f 77 69 6e 67 20 6c 69 6e 65 73 following lines
1f60: 3a 0a 20 20 3c 62 6c 6f 63 6b 71 75 6f 74 65 3e :. <blockquote>
1f70: 3c 70 72 65 3e 0a 20 20 54 43 43 20 2b 3d 20 2d <pre>. TCC += -
1f80: 44 53 51 4c 49 54 45 5f 57 49 54 48 4f 55 54 5f DSQLITE_WITHOUT_
1f90: 5a 4f 4e 45 4d 41 4c 4c 4f 43 0a 20 20 54 43 43 ZONEMALLOC. TCC
1fa0: 20 2b 3d 20 2d 44 5f 42 53 44 5f 53 4f 55 52 43 += -D_BSD_SOURC
1fb0: 45 0a 20 20 54 43 43 20 2b 3d 20 2d 44 57 49 54 E. TCC += -DWIT
1fc0: 48 4f 55 54 5f 49 43 4f 4e 56 0a 20 20 54 43 43 HOUT_ICONV. TCC
1fd0: 20 2b 3d 20 2d 44 73 6f 63 6b 65 74 6c 65 6e 5f += -Dsocketlen_
1fe0: 74 3d 69 6e 74 0a 20 20 54 43 43 20 2b 3d 20 2d t=int. TCC += -
1ff0: 44 53 51 4c 49 54 45 5f 4d 41 58 5f 4d 4d 41 50 DSQLITE_MAX_MMAP
2000: 5f 53 49 5a 45 3d 30 0a 3c 2f 70 72 65 3e 3c 2f _SIZE=0.</pre></
2010: 62 6c 6f 63 6b 71 75 6f 74 65 3e 0a 3c 2f 75 6c blockquote>.</ul
2020: 3e 0a >.