What OS do you use for Ruby development?

J

Jörg W Mittag

Luis said:
The compiler environment (DevKit) is not bundled with the installer,
specifically because not all users will require to compile extensions.

Also, the DevKit is the same for MRI, YARV and (in future) JRuby. It
doesn't make sense to either install, release or maintain separate
copies of the DevKit. Not because of the waste of disk space or
download bandwidth, but for the same software engineering reasons that
you *always* try to eliminate code duplication.

If you install, say, both JRuby and MRI, you still need only one copy
of the DevKit. This wouldn't be possible, if it was built into the
respective installers.

jwm
 
E

Ed Howland

Thanks, I understand now. So you install the DevKit (which contains
mingw) once. Then you can build gems with native extensions or other
extconf libraries.

Sorry if this is OT, but I'd also like to ask if this can work with
RVM. If you install the DevKit, can you then use rvm to install (and
presumably compile) other rubies?


Thanks,
Ed

Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/ed_howland
 
W

Walton Hoops

Thanks, I understand now. So you install the DevKit (which contains
mingw) once. Then you can build gems with native extensions or other
extconf libraries.

Sorry if this is OT, but I'd also like to ask if this can work with
RVM. If you install the DevKit, can you then use rvm to install (and
presumably compile) other rubies?
No. DevKit is Windows only, and RVM is *nix only. You can however use Pik
http://github.com/vertiginous/pik#readme
 
B

Bosko Ivanisevic

Thanks, I understand now. So you install the DevKit (which contains
mingw) once. Then you can build gems with native extensions or other
extconf libraries.

Sorry if this is OT, but I'd also like to ask if this can work with
RVM. If you install the DevKit, can you then use rvm to install (and
presumably compile)  other rubies?

DevKit works with Pik on Windows. IF you follow instructions on
http://github.com/oneclick/rubyinstaller/wiki/Development-Kit DevKit
will be set up for each version of Ruby you have installed. You can
manually add other versions (see Step 4) too.

Regards,
Boško Ivanišević
 
L

Luis Lavena

Sorry if this is OT, but I'd also like to ask if this can work with
RVM. If you install the DevKit, can you then use rvm to install (and
presumably compile)  other rubies?

RVM is a series of Bash scripts that works for bash and *nix like
environments.

Pik is a similar tool that works directly from normal Windows command
prompt.

On Windows compilation of Ruby is a bit more complicated because none
of the Ruby dependencies like zlib or OpenSSL are provided by the OS.

RubyInstaller repository contains the list of recipes and the needed
changes to those dependencies to work.

Also, compilation of all the dependencies can take a lot of time (up
to 30 minutes on Core 2 Duo 2.2 GHz). I would recommend you use the
provided binaries instead.

If you have further questions, please bring them to RubyInstaller
group:

http://groups.google.com/group/rubyinstaller/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top