Re: [jruby-user] Re: JRuby: gem install paths not working compared to Ruby

Rodrigo Botafogo <[email protected]> Wed, 7 Jan 2015 10:52:19 -0200
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CAAKc=GDz2B9Z5+9wiZ8Vt8iuSOx86J+YNNRyu+z4pTf+=VZM7A@mail.gmail.com>
Hi Johan,

Sure, the config file is in
https://github.com/rbotafogo/scicom/blob/master/config.rb.  You can use it
freely if you want.

There are three variables on the top of config:


   - $DVLP: if you are doing development.
   - $ENV: set if your environment is cygwin
   - $DEPEND: array of dependencies if your Gem depends on other Gems that
   are not installed on your system.  I need this because I develop MDArray
   and SciCom simultaneously.

If you are in cygwin, then you need to fix the path:

def set_path(path)
`cygpath -a -p -m #{path}`.tr("\n", "")
end

Good luck...

Let me know if this works and if you need any other info!




2015-01-07 1:41 GMT-02:00 Johan Wasserman <[email protected]>:

> Hi Rodrigo,
> I have to manage my rubies under rvm for now unfortunately. I have
> followed your instructions on Java, which makes things a lot easier and
> gave me access to javac which I couldn't run before, thanks.
>
> I am curious on what / how you fixed the cygwin path if you are willing
> to share your config.rb or snippets of it just so I can get an idea that
> would be great.
>
> Christian, I was under the impression that JRuby makes use of Ruby's
> File class (http://www.ruby-doc.org/core-1.9.3/File.html), where JRuby
> 1.7.18 runs of Ruby 1.9.3p551 I believe.
>
> I'm exploring a few options and will have to fall back to running JRuby
> outside of rvm as Rodrigo suggests if I want to complete this project.
>
> Thanks,
> Johan.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>


-- 
Rodrigo Botafogo