Changes

Jump to navigation Jump to search
m
< [[ConTeXt MinimalsStandalone]]
Top Level:
== Example installation (on Windows) ==
Here’s how I ([[User:JCSalomon|Joel Salomon]]) am installing ConTeXt on my machine. It doesn’t work yet works for me, though…; your mileage may vary.
First I created a root directory for the installation; I install “personal” programs under <code>%USERPROFILE%\Programs</code>, so I create the directory <code>USERPROFILE%\Programs\ConTeXt</code>. If you’re working from the command-line, you might want to set an environment variable for this, ''e.g.'',
This effort is closely related to [[http://minimals.contextgarden.net/setup/context-installer|Vyatcheslav’s GUI installer]]; I hope this makes explicit all the installer does.
 
Note that my system has Ruby installed; I don’t yet understand how to include a minimal Ruby.
=== Create the directories ===
Following the arrangement from [[Windows_Installation#Stand-alone_ConTeXt_distribution|mswincontext.zip]] and the ConTeXt Minimals’s Standalone’s download script, generate the following TDS trees, and add the binaries’ installation directory to the system path:
<pre>
cd %CONTEXTROOT%
=== Downloading ===
 
I’ve broken the <code>rsync</code> commands into multiple lines for readability, but you need everything on one line, space-separated. Note also that each TDS tree has its own <code>rsync</code> call; that lets me add the <code>--delete</code> option safely.
 
==== Begin the download ====
We I need <code>rsync</code>, so we I download it to the binaries directory, which we’ve I’ve already put on the path. Note that <code>rsync</code> runs under the Cygwin subsystem, so we I need to set an environment variable telling it to play nicely with Windows’s ideas of file ownership. This variable doesn’t need to be permanently set (and if you run Cygwin, it probably shouldn’t be); set it temporarily before you run <code>rsync</code>. My system has <code>wget</code> installed so I’ll use that, but any method of downloading should work fine.
<pre>
set CYGWIN=nontsec
wget -P texmf-mswin\bin http://minimals.contextgarden.net/setup/mswin/bin/cygwin1.dll
</pre>
If we I were using <code>mtx-update</code> to manage the install, we’d I’d run
<pre>
rsync -rpztlv --exclude 'rsync.exe' --exclude 'cygwin1.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ texmf-mswin/bin
texlua texmf-mswin\bin\mtxrun.lua --verbose --script texmf-mswin\bin\mtx-update.lua --update --force --engine=all --texroot=%CONTEXTROOT%
</pre>
but we’re I’m going to try to exercise much finer control than <code>mtx-update</code> allows for. I did adapt the output of an <code>mtx-update</code> run (without <code>--force</code>) to generate the <code>rsync</code> calls below.
==== Base ====
Download the base TeX files, as mentioned above. I moved <code>web2c</code> here from the miscellanea section, so the tree is updated in a single run. Note that I’ve broken this command the <code>web2c</code> directory does ''not'' have a trailing ‘/’. That’s because it goes ''into multiple lines for readability'' a TDS tree, but you need everything on rather than containing (part of) one line, space-separated; omitting the ‘/’ gives us the directory <code>…/texmf/web2c</code>
<pre>
rsync -rpztlv --stats contextgarden.net::'minimals/current/base/tex/
minimals/current/base/metapost/
minimals/current/base/xetex/ minimals/current/misc/web2c' texmf
</pre>
==== Miscellanea ====
You On the initial run, you may want to download the <code>setuptex.*</code> files; I adapted the list of directory trees from there. I don’t thing <code>web2c</code> is optional. Note that the <code>web2c</code> directory does ''not'' have a trailing ‘/’. That’s because it goes ''into'' a TDS tree, rather than containing (part of) one; omitting the ‘/’ gives us the directory <code>…/texmf/web2c</code>.
<pre>
rsync -rpztlv --stats contextgarden.net::minimals/current/misc/setuptex/ .
rsync -rpztlv --stats contextgarden.net::minimals/current/misc/web2c texmf
</pre>
texexec --make --all --xetex metafun cont-en
</pre>
LuateX ==== luaTeX ====LuaTeX has its own databases, and its own way of generating formats;:
<pre>
luatools --generate
luatools --ini --compile cont-en
</pre>
 
=== Updating ===
 
I haven’t tried this yet, but repeating the <code>rsync</code> calls for the Base, Binaries, ConTeXt, Fonts, and Extras trees, perhaps including the <code>--delete</code> option, followed by rebuilding the databases & formats, ''should'' work.
 
[[Category:Installation]]
[[Category:Standalone|Structure]]

Navigation menu