tag:help.appveyor.com,2012-11-13:/discussions/problems/2504-what-is-the-right-way-to-include-the-ruby-devkitAppVeyor: Discussion 2018-08-25T01:57:47Ztag:help.appveyor.com,2012-11-13:Comment/373992432015-07-16T15:33:42Z2015-07-16T15:33:42ZWhat is the right way to include the Ruby DevKit?<div><p>Good catch. Indeed, for all Ruby 2.x versions DevKit is
installed in a single location <code>C:\Ruby21\DevKit</code>.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/373992432015-07-16T16:53:15Z2015-07-16T16:53:15ZWhat is the right way to include the Ruby DevKit?<div><p>I would like to suggest putting it in every ruby installation.
The reason for that is, that it's often interesting to test a gem
(a ruby library package) against a lot of ruby environments. For
that, we're using these lines in our appveyor.yml</p>
<blockquote>
<p>environment: matrix: - ruby_version: "21" - ruby_version:
"21-x64" - ruby_version: "22" - ruby_version: "22-x64" ... and so
on</p>
</blockquote>
<p>that's also why i constructed the path with
C:\Ruby%ruby_version%\DevKit - so the appropriate devkit can be
loaded.</p>
<p>Currently, i'm not certain how I would load the correct ruby 2.2
devkit while keeping the 32bit version in 32bit and the 64bit
version in 64bit. (or any other ruby, for that matter). This gets
even more complicated when adding the (granted, dated!) ruby 1.9
into the mix. 1.9 needs the devkit...-4.5.2</p>
<p>Having the DevKits available would be extremely useful, as
building gems is one of the points of failure for ruby gems on
windows.</p></div>Claudiustag:help.appveyor.com,2012-11-13:Comment/373992432015-07-16T17:10:58Z2015-07-16T17:10:59ZWhat is the right way to include the Ruby DevKit?<div><p>I just found this other thread ( <a href="http://help.appveyor.com/discussions/questions/542-matrix-of-platforms-and-environments">
http://help.appveyor.com/discussions/questions/542-matrix-of-platfo...</a>
)</p>
<p>this would probably work, too, but then i think the DevKits
should be directly in C:\ - having them in one - seemingly - random
ruby version is a little complicated.</p>
<p>On my personal dev machine, i keep the devkits in<br>
- C:\Tools\RubyDevKit-4.5.2 - C:\Tools\RubyDevKit-4.7.2-32 -
C:\Tools\RubyDevKit-4.7.2-64 Maybe that is another model that's
more future-proof?</p></div>Claudiustag:help.appveyor.com,2012-11-13:Comment/373992432015-07-16T18:12:23Z2015-07-16T18:12:23ZWhat is the right way to include the Ruby DevKit?<div><p>Yeah, maybe having a DevKit in a separate root folder could be a
better solution. Right now it's in C:\Ruby21, but registered for
all 2.x rubies: "C:/Ruby200", "C:/Ruby21", "C:/Ruby22"</p>
<p>I'll add a new issue.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/373992432015-07-16T19:15:34Z2015-07-16T19:15:35ZWhat is the right way to include the Ruby DevKit?<div><p>What does "registered" mean in this context? i'm pretty new to
Appveyor, so please don't be offended if this is an obvious thing
i'm missing.</p></div>Claudiustag:help.appveyor.com,2012-11-13:Comment/373992432015-07-16T19:19:20Z2015-07-16T19:19:20ZWhat is the right way to include the Ruby DevKit?<div><p>Sure. When you install DevKit you create <code>config.yml</code>
file with paths to all Rubies which DevKit should be "applied"
to.</p>
<p><a href="https://github.com/oneclick/rubyinstaller/wiki/Development-Kit#4-run-installation-scripts">
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit#4-ru...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/373992432015-07-16T19:26:41Z2015-07-16T19:26:42ZWhat is the right way to include the Ruby DevKit?<div><p>That is odd, I never did it that way? I just ran the
devkitvars.bat, which added MinGW and stuff to the path. I'll see
if i can get Luis Lavena's attention, he's the Pope of Ruby on
Windows. He will know.</p></div>Claudiustag:help.appveyor.com,2012-11-13:Comment/373992432015-07-16T19:28:52Z2015-07-16T19:28:52ZWhat is the right way to include the Ruby DevKit?<div><p>Yeah, and let me know about your results. I'm not Ruby guru and
follow instructions, so whatever you say guys... :)</p></div>Feodor Fitsner