| View previous topic :: View next topic |
| Author |
Message |
Chris Kutler Posted via mailing list.
|
Posted: Sat Jun 21, 2008 12:58 am Post subject: failed to install a gem completely with JRuby interpreter |
|
|
I turned this into a FAQ:
http://wiki.netbeans.org/RubyFAQ#section-RubyFAQ-IRB
Martin Krauskopf wrote:
| Quote: | Piergiuliano Bossi wrote:
| Quote: | On Mon, Jun 16, 2008 at 5:54 AM, Martin Krauskopf
<Martin.Krauskopf@sun.com <mailto:Martin.Krauskopf@sun.com>> wrote:
Hmmm, for me it works. Tried with latest NetBeans build, bundle
JRuby (1.1.2). Running:
Thanks, that's very helpful and it left me a bit confused, but it's
very helpful.
|
It is very confusing, since it is not clear which Ruby interpreter/VM
is used and under waht environment it is run. The action should be
moved into project's properties like it is for Rails console. I've filed:
http://www.netbeans.org/issues/show_bug.cgi?id=137398
| Quote: | First of all: it works here too, provided that I require 'rubygems'
first.
This comes a bit unexpected, because:
*) in cygwin, for whatever reason, gems work even without requiring
'rubygems' (and I don't have RUBY_OPT set either)
*) in Netbeans I have configured -rubygems in the project properties,
but for some reasons irb seems to ignore it ==> I suppose this may be
due to the fact that irb is used across different projects, potentially
|
This should work (works for me). Did you put '-rubygems' (without
quotes) into Ruby Options field in project's properties? If yes be
sure that you are running the right interpreter. Best to select the
project node in the explorer and than invoke Windows -> Others -> Ruby
Shell (IRB). You can see in the output tab what interpreter is run (in
NetBeans dev builds).
This all is little odd, see filed issue above.
Another way is to put:
require 'rubygems'
into $HOME/.irbrc
m.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|