Share gems library between operating systems?

dmcclean's Avatar

dmcclean

11 Feb, 2011 03:38 PM

I need to have my ruby application run on both solaris and linux. I have installed
ruby on both platforms. My question is do I need to have two different gems
repositories, one on each platform, and install everything I need twice, or
can I share the respository?

Thanks in advance
Don

  1. Support Staff 2 Posted by Luis Lavena on 11 Feb, 2011 03:45 PM

    Luis Lavena's Avatar

    If the gems are pure-ruby code, it can be shared, but that could be a
    problem due filesystem permissions and different userid's between OS.

    If the gems contain compiled code, then you can't run them across
    platforms because the compiled extension that the gem needs is
    compiled for the platform is running into.

  2. 3 Posted by dmcclean on 11 Feb, 2011 03:58 PM

    dmcclean's Avatar

    Luis,
    Thank you for the quick response!

    Regards,
    Don

  3. Nick Quaranto closed this discussion on 26 Feb, 2011 07:16 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac