Difference between revisions of "Ruby Installation"

From Wiki
Jump to navigation Jump to search
(add category Old Content)
Line 19: Line 19:
 
If you get an error similar to ''invalid multibyte escape'' from Ruby, you may need to use a version of Ruby earlier than 1.9. There may be other ways to get around this problem; see e.g. http://gnuu.org/2009/11/02/ruby-1-9-encoding-issues-again/.
 
If you get an error similar to ''invalid multibyte escape'' from Ruby, you may need to use a version of Ruby earlier than 1.9. There may be other ways to get around this problem; see e.g. http://gnuu.org/2009/11/02/ruby-1-9-encoding-issues-again/.
  
{{Category:Old_Content}}
+
[[Category:Old Content]]

Revision as of 20:55, 5 June 2020

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.

If you get an error similar to invalid multibyte escape from Ruby, you may need to use a version of Ruby earlier than 1.9. There may be other ways to get around this problem; see e.g. http://gnuu.org/2009/11/02/ruby-1-9-encoding-issues-again/.