Ruby Installation

From Wiki
Revision as of 22:09, 1 October 2008 by Mojca Miklavec (talk | contribs) (TODO: needs revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ConTeXt scripts used to be written in Perl (phased out), then switched to Ruby and now to Lua. You need to have at least Ruby installed installed, and Perl for mptopdf.

You can download Ruby here (automatic installation) or here (you need to extract files from zip and add ruby to PATH).


You can download ActivePerl here and Ruby here (automatic installation) or here (you need to extract files from zip and add ruby to PATH).

After installing them (remember the folder where you've put them!) you have to check if both executables are included in the PATH. Open the command line (Start -> Run ... -> type cmd or command) and check if

perl --version

and

ruby --version

work OK.

If windows complains about "Command not found", go to the Control Panel -> System -> Advanced -> click on the "Environment variables" and choose path in "system variables". Type in the path (e.g. D\Program Files\Perl\bin\;) where the ruby and perl *.exe files are installed. Generally, the installation is automatic. you may not need the above method.