e:\dev\digitalarchive_trunk>redcar
Redcar 0.3.2dev (jruby )
Exception in thread "main" :1: no such file to load -- ubygemsf
(LoadError)
...internal jruby stack elided...
from (unknown).(unknown)(:1)
(which means "you need to clear your RUBYOPT setting")
Maybe it should be cleared before firing up jruby?
-r
-Mat
> --
> You received this message because you are subscribed to the Google
> Groups "Redcar" group.
> To post to this group, send email to redcar...@googlegroups.com.
> To unsubscribe from this group, send email to redcar-edito...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/redcar-editor?hl=en
> .
>
I set RUBYOPT=-rubygemsf -sane # my favorite gems or what not
--
You received this message because you are subscribed to the Google Groups "Redcar" group.
To post to this group, send email to redcar...@googlegroups.com.
To unsubscribe from this group, send email to redcar-edito...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redcar-editor?hl=en.
On the one hand, it's not our job to 'sanitize' the environment by clearing this up, and it wouldn't be easy because RUBYOPT will be loaded *before* any Redcar code is loaded.
On the other hand, if we distribute as a one click installer, then it's probably counter intuitive for the environment to affect the application like this.
Any thoughts?
Dan
_______________________________
Daniel Lucraft
twitter.com/danlucraft
danlucraft.com/blog
Hmm. My first thought was that "since I'm running this through
ruby.exe, it can sanitize the ENV before calling into jruby" or what
not...
> On the other hand, if we distribute as a one click installer, then it's probably counter intuitive for the environment to affect the application like this.
one click should probably sanitize it...at least in my case :)
-r
I think it's reasonable that if we switch to jruby as part of the
bootstrapping process we can dump RUBYOPT. If people want to run with
thr variable preserved they could call it with the jruby jar directly.
-Mat
In future we don't want people to have to have MRI Ruby installed, so we will have to write a Java binary. Let's not forget that we need to clear this variable then.
D
_______________________________
Daniel Lucraft
twitter.com/danlucraft
danlucraft.com/blog
> Well, it's doable. If you run Redcar now with MRI Ruby it will spawn a JRuby process to take over. If we make the parent set RUBYOPT="" then the subprocess will inherit that and not fuck up.
Well, on OSX and linux it will. On Windows, who knows?
D
I'm pretty certain that setting
ENV['X'] = 'y'
in windows, then running
system("something else")
inherits the ENV of the current process. My hunch is that more
"exotic" process spawning like Kernel.spawn and popen also do the
same.
-r