TimGitter[m] has quit [Remote host closed the connection]
headius[m] has quit [Remote host closed the connection]
enebo[m] has quit [Read error: Connection reset by peer]
RomainManni-Buca has quit [Remote host closed the connection]
UweKuboschGitter has quit [Read error: Connection reset by peer]
lopex[m] has quit [Read error: Connection reset by peer]
OlleJonssonGitte has quit [Read error: Connection reset by peer]
MarcinMielyskiGi has quit [Remote host closed the connection]
XavierNoriaGitte has quit [Remote host closed the connection]
MattPattersonGit has quit [Remote host closed the connection]
brometeo[m] has quit [Remote host closed the connection]
sillymob[m] has quit [Remote host closed the connection]
KarolBucekGitter has quit [Remote host closed the connection]
TimGitter[m]1 has quit [Remote host closed the connection]
ChrisSeatonGitte has quit [Read error: Connection reset by peer]
BlaneDabneyGitte has quit [Read error: Connection reset by peer]
JesseChavezGitte has quit [Read error: Connection reset by peer]
kares[m] has quit [Remote host closed the connection]
ThomasEEneboGitt has quit [Remote host closed the connection]
FlorianDoubletGi has quit [Remote host closed the connection]
liamwhiteGitter[ has quit [Remote host closed the connection]
CharlesOliverNut has quit [Remote host closed the connection]
JulesIvanicGitte has quit [Remote host closed the connection]
rdubya[m] has quit [Remote host closed the connection]
KarolBucekGitter has joined #jruby
lopex[m] has joined #jruby
kares[m] has joined #jruby
liamwhiteGitter[ has joined #jruby
enebo[m] has joined #jruby
rdubya[m] has joined #jruby
headius[m] has joined #jruby
MarcinMielyskiGi has joined #jruby
ThomasEEneboGitt has joined #jruby
BlaneDabneyGitte has joined #jruby
sillymob[m] has joined #jruby
XavierNoriaGitte has joined #jruby
OlleJonssonGitte has joined #jruby
MattPattersonGit has joined #jruby
ChrisSeatonGitte has joined #jruby
TimGitter[m] has joined #jruby
brometeo[m] has joined #jruby
RomainManni-Buca has joined #jruby
CharlesOliverNut has joined #jruby
JesseChavezGitte has joined #jruby
FlorianDoubletGi has joined #jruby
UweKuboschGitter has joined #jruby
TimGitter[m]1 has joined #jruby
JulesIvanicGitte has joined #jruby
knu has quit [Remote host closed the connection]
knu has joined #jruby
bga57 has quit [Ping timeout: 245 seconds]
bga57 has joined #jruby
rusk has joined #jruby
whitingjr has joined #jruby
drbobbeaty has joined #jruby
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shellac has joined #jruby
shellac has quit [Quit: Computer has gone to sleep.]
drbobbeaty has joined #jruby
shellac has joined #jruby
lucasb has joined #jruby
throstur has joined #jruby
<throstur>
I'm working in an environment that runs on jruby, but I want to use ruby gems such as rest-client. How do I install them, since I can't do `gem install rest-client` ?
<throstur>
I try to run the install as root like: `java -jar /var/lib/opsgenie/marid/jruby-complete-9.2.8.0.jar -S gem install rest-client` but it tells me `You don't have write permissions for the uri:classloader:/META-INF/jruby.home/lib/ruby/gems/shared directory`
<throstur>
I also tried `yum install rubygems-rest-client` and then running my ruby script but it gives me a LoadError on loading rest client
byteflam1 has joined #jruby
whitingjr has quit [Quit: Leaving.]
rusk has quit [Remote host closed the connection]
<throstur>
Trying to install jruby with the install script seems to be failing, it prints those warnings as documented in jruby #4834 but then there is no more output for at least 10 minutes
<enebo[m]>
throstur: GEM_HOME can be used to install to a separate real file system location. GEM_PATH can be used to add that as an extra dir to look at when loading gems
<headius[m]>
throstur do you need to use jruby-complete rather than a "normal" install?
<throstur>
enebo[m]: if I understand correctly, I can install rubygems, install my gem anywhere, and put export GEM_HOME=<that anywhere place> in /etc/profile.d/gems.sh ?
<enebo[m]>
throstur: well when you run gem install it will put it whereever GEM_HOME is and if you put all the gems you use then just a single GEM_HOME is enough. If you want builtin gems as part of jruby-complete then you need to add this new GEM_HOME to GEM_PATH so it sees both locations
<throstur>
seems like neither is defined on my system. I will put them somewhere... what's a sane or default location?
<throstur>
(when I say my system, I don't mean "my" system but the one I'm working on, please don't think I'm incompetent:D)
shellac has quit [Ping timeout: 250 seconds]
<throstur>
I see that yum install rubygems sets it to /usr/lib/gems
<throstur>
I'll just use that
<throstur>
doh, should be /usr/share
xardion has quit [Remote host closed the connection]
<enebo[m]>
throstur I would pick a app-specific directory for those gems
<enebo[m]>
throstur: sharing gem location between C ruby and JRuby is also ill-advised because we have different versions of native gems so a gem install with MRI may not work on JRuby and vice-versa
<enebo[m]>
I don't actually do app development (JRuby development specifically) so I was hoping some other JRuby people will chime in here on best practices
<throstur>
yes, I saw that
<throstur>
I've decided to scrub ruby off the system and only keep jruby for that exact reason
<enebo[m]>
Depending on how you run your system you can also specify the ENV as part of the command-line
<enebo[m]>
it sounds like you are running within a larger java app so I suspect you may have some envs already needed for running it
<throstur>
thank you for your advice
xardion has joined #jruby
<enebo[m]>
throstur: np. You are experiencing a tougher rampup than most Rubyists you just rvm install jruby and can start running stuff
<throstur>
heck yeah, writing the code only took a few hours... integrating it into the jruby environment has already taken me the better part of a day
byteflam1 has quit [Ping timeout: 245 seconds]
byteflam1 has joined #jruby
byteflam1 has quit [Ping timeout: 245 seconds]
byteflam1 has joined #jruby
throstur has quit [Remote host closed the connection]
_whitelogger has joined #jruby
byteflam1 has quit [Ping timeout: 246 seconds]
byteflam1 has joined #jruby
byteflam1 has quit [Ping timeout: 245 seconds]
byteflam1 has joined #jruby
byteflam1 has quit [Ping timeout: 245 seconds]
Antiarc has quit [Ping timeout: 244 seconds]
Antiarc has joined #jruby
byteflam1 has joined #jruby
byteflam1 has quit [Ping timeout: 264 seconds]
byteflam1 has joined #jruby
byteflam2 has joined #jruby
byteflam1 has quit [Quit: Lost terminal]
drbobbeaty has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]