![]() ![]() The installation of the Html Help Workshop was a little bit strange on my computer as it told me, it already was installed, but afterwards the rake tasks starts without further problems, but in the end InnoSetup stops with this error message on my machine: Error on line 5in C:\projects\rubyinstaller\resources\installer\languages\ja.is So lets install Microsoft's Html Help Workshop (actually this link was part of the error message I got) and try again. I then get the error message To generate CHM documentation you need Microsoft's Html Help Workshop installed. This will try to generate the installer, but at first run it stops telling us rake aborted! If you want more you can run > rake ruby21:package:install Which contains a fully working ruby that can be installed on your system simply by extracting this archive into the destination of your choice, e.g. Which should work out of the box and generates the archive C:\projects\rubyinstaller\pkg\ruby-2.1.0-p0-i386-mingw32.7z You can simply run > rake ruby21:package:archive Rake ruby21:repackage # rebuild rubyinstaller-2.1.0-p0.exe Rake ruby21:redocs # rebuild docs for ruby21 Rake ruby21:package:installer # generate rubyinstaller-2.1.0-p0.exe Rake ruby21:package# generate packages for ruby 2.1.0-p0 Rake ruby21:install # install rubyinstaller-2.1.0-p0.exe Running > rake -TĪgain presents us the following new tasks: rake ruby21:docs # build docs for ruby21 Packaging the Ruby InstallerĪfter compiling Ruby there are new rake tasks available. Running > rake ruby21Īigain leads to run without further errors. For me it works if I change this to unsecure HTTP. This is the only element in that file using a secure HTTPS connection in the URL. It turned out that the download of the readline library is configured in the file C:\projects\rubyinstaller\config\dependencies.rbĪs follows PureReadline = OpenStruct.new( Tasks: TOP => ruby21 => rbreadline => dependencies:rbreadline:download => downloads/v0.5.0.zip Undefined method `zero?' for nil:NilClass On my machine this ends up in the following error message: rake aborted! This will download all dependencies including the C compiler into the downloads folder, install them into the sandbox folder and compiles ruby. As I personally never use the local documentations I always install gems using -N.Ī closer look at the rake tasks available presents us with the task ruby21 which will compile ruby. ![]() ![]() The -N option prevents RubyGems from installing the documentation for the installed gem. The installation may prompt if it's ok to overwrite the existing rdoc binary-yes it is. rdoc is already installed in every modern Ruby so its enough to install rdoc_chm. Try `gem install rdoc -v 3.12` and later `gem install rdoc_chm -v 3.1.0`Īs the installer script will need the rdoc and rdoc_chm gems later to compile the Ruby documentation we will continue installing them. In my case the answer starts with the following advice: You need rdoc 3.12and rdoc_chm 3.1.0 gems installed Which asks rake for all tasks of the current project. Now switch into this directory and let's see what's next by entering > rake -T This clones the RubyInstaller repository. > git clone git:///oneclick/rubyinstaller.git Make sure to select the option Run Git and included Unix tools from the Windows Command Prompt as the Unix tools can become handy in the following steps. We therefore first need to install Git for Windows. We need to check out the head version of the RubyInstaller from Github. Make sure to check Add ruby executables to your PATH so we can run the ruby command afterwards in the Windows Command Prompt. In my case this means I started with installing Ruby 2.0.0 with the precompiled RubyInstaller from the official website. This means we need to have a running Ruby on the Windows machine we are using. This installer script cares about nearly everything needed to compile Ruby on windows including downloading a C compiler and all dependencies, but it is written in Ruby. We are going to use the RubyInstaller scripts to compile Ruby on Windows. This article is written more anecdotal for myself to keept track of the steps performed and how I get there than it is intended as a cook book being as short as possible. Concern carefully that it is much easier just to use Ruby 2.0.0 by running the RubyInstaller made available as reasy to use installer on the official website. At the time of writing it is not that easy to compile Ruby 2.1.0 and especially nokogiri on Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |