| | @@ -1,6 +1,6 @@ |
| 1 | | -<title>Building and Installing Fossil</title> |
| 1 | +<title>Compiling and Installing Fossil</title> |
| 2 | 2 | |
| 3 | 3 | <h2>0.0 Using A Pre-compiled Binary</h2> |
| 4 | 4 | |
| 5 | 5 | <p>Released versions of fossil come with |
| 6 | 6 | <a href="http://www.fossil-scm.org/download.html">pre-compiled binaries and |
| | @@ -25,33 +25,29 @@ |
| 25 | 25 | |
| 26 | 26 | <p><hr> |
| 27 | 27 | |
| 28 | 28 | <h2>1.0 Obtaining The Source Code</h2> |
| 29 | 29 | |
| 30 | | -<p>Fossil is self-hosting, so you can obtain a ZIP archive containing |
| 31 | | -a snapshot of the <em>latest</em> version directly from fossil's own fossil |
| 32 | | -repository. Additionally, source archives of <em>released</em> versions of |
| 30 | +<p>Fossil is self-hosting, so you can obtain a ZIP archive or tarball |
| 31 | +containing a snapshot of the <em>latest</em> version directly from |
| 32 | +Fossil's own fossil repository. Additionally, source archives of |
| 33 | +<em>released</em> versions of |
| 33 | 34 | fossil are available from the <a href="http://www.fossil-scm.org/download.html">downloads page</a>. |
| 34 | 35 | To obtain a development version of fossil, follow these steps:</p> |
| 35 | 36 | |
| 36 | 37 | <ol> |
| 37 | 38 | <li><p>Point your web browser at |
| 38 | 39 | <a href="http://www.fossil-scm.org/"> |
| 39 | | -http://www.fossil-scm.org/</a>. Click on the "Login" menu button.</p></li> |
| 40 | | - |
| 41 | | -<li><p>Log in as anonymous. The password is shown on screen. |
| 42 | | -The reason for requiring this login is to prevent spiders from |
| 43 | | -walking the entire website, downloading ZIP archives |
| 44 | | -of every historical version, and thereby soaking up all our bandwidth.</p></li> |
| 40 | +http://www.fossil-scm.org/</a>.</p></li> |
| 45 | 41 | |
| 46 | 42 | <li><p>Click on the |
| 47 | 43 | <a href="http://www.fossil-scm.org/fossil/timeline">Timeline</a> |
| 48 | 44 | link at the top of the page.</p></li> |
| 49 | 45 | |
| 50 | | -<li><p>Select a version of of fossil you want to download. Click on its |
| 51 | | -link. Note that you must successfully log in as "anonymous" in step 1 |
| 52 | | -above in order to see the link to the detailed version information.</p></li> |
| 46 | +<li><p>Select a version of of Fossil you want to download. The latest |
| 47 | +version on the trunk branch is usually a good choice. Click on its |
| 48 | +link.</p></li> |
| 53 | 49 | |
| 54 | 50 | <li><p>Finally, click on one of the |
| 55 | 51 | "Zip Archive" or "Tarball" links, according to your preference. |
| 56 | 52 | These link will build a ZIP archive or a gzip-compressed tarball of the |
| 57 | 53 | complete source code and download it to your browser. |
| | @@ -59,11 +55,11 @@ |
| 59 | 55 | |
| 60 | 56 | <h2>2.0 Compiling</h2> |
| 61 | 57 | |
| 62 | 58 | <ol> |
| 63 | 59 | <li value="6"> |
| 64 | | -<p>Unpack the ZIP or tarball you downloaded into that directory then |
| 60 | +<p>Unpack the ZIP or tarball you downloaded then |
| 65 | 61 | <b>cd</b> into the directory created.</p></li> |
| 66 | 62 | |
| 67 | 63 | <li><i>(Optional, unix only)</i> |
| 68 | 64 | Run <b>./configure</b> to construct a makefile. |
| 69 | 65 | |
| | @@ -79,12 +75,12 @@ |
| 79 | 75 | <li><p> |
| 80 | 76 | Other configuration options can be seen by running |
| 81 | 77 | <b>./configure --help</b> |
| 82 | 78 | </ol> |
| 83 | 79 | |
| 84 | | -<li><p>Run make to build the "fossil" or "fossil.exe" executable. The |
| 85 | | -details depend on your platform and compiler. |
| 80 | +<li><p>Run "<b>make</b>" to build the "fossil" or "fossil.exe" executable. |
| 81 | +The details depend on your platform and compiler. |
| 86 | 82 | |
| 87 | 83 | <ol type="a"> |
| 88 | 84 | <li><p><i>Unix</i> → the configure-generated Makefile should work on |
| 89 | 85 | all unix and unix-like systems. Simply type "<b>make</b>". |
| 90 | 86 | |
| | @@ -102,16 +98,10 @@ |
| 102 | 98 | change to the "win/" subdirectory ("<b>cd win</b>") then run |
| 103 | 99 | "<b>nmake /f Makefile.msc</b>". |
| 104 | 100 | </ol> |
| 105 | 101 | </ol> |
| 106 | 102 | |
| 107 | | -<p>Note that Fossil requires the "zlib" compression library. This library |
| 108 | | -is available by default on most unix systems, but it will typically have to |
| 109 | | -be installed separately on windows systems. For windows builds, you may |
| 110 | | -need to edit the makefile to tell it exactly where zlib is located on your |
| 111 | | -system.</p> |
| 112 | | - |
| 113 | 103 | <h2>3.0 Installing</h2> |
| 114 | 104 | |
| 115 | 105 | <ol> |
| 116 | 106 | <li value="9"> |
| 117 | 107 | <p>The finished binary is named "fossil" (or "fossil.exe" on windows). |
| | @@ -124,11 +114,22 @@ |
| 124 | 114 | To uninstall, just delete the binary.</p> |
| 125 | 115 | </ol> |
| 126 | 116 | |
| 127 | 117 | <h2>4.0 Additional Considerations</h2> |
| 128 | 118 | |
| 129 | | -</nowiki> |
| 130 | | - * If the makefiles that come with Fossil do not work for |
| 131 | | - you, or for some other reason you want to know how to build |
| 132 | | - Fossil manually, then refer to the |
| 133 | | - [./makefile.wiki | Fossil Build Process] document which describes |
| 134 | | - in detail what the makefiles do behind the scenes. |
| 119 | +<ul> |
| 120 | +<li><p> |
| 121 | + If the makefiles that come with Fossil do not work for |
| 122 | + you, or for some other reason you want to know how to build |
| 123 | + Fossil manually, then refer to the |
| 124 | + [./makefile.wiki | Fossil Build Process] document which describes |
| 125 | + in detail what the makefiles do behind the scenes. |
| 126 | + |
| 127 | +<li><p> |
| 128 | + To build on older Macs (circa 2002, MacOS 10.2) edit the Makefile |
| 129 | + generated by configure to add the following lines: |
| 130 | + <blockquote><pre> |
| 131 | + TCC += -DSQLITE_WITHOUT_ZONEMALLOC |
| 132 | + TCC += -DWITHOUT_ICONV |
| 133 | + TCC += -Dsocketlen_t=int |
| 134 | + </pre></blockquote> |
| 135 | +</ul> |
| 135 | 136 | |