"RubyGems are not installed for a platform"

View: New views
3 Messages — Rating Filter:   Alert me  

"RubyGems are not installed for a platform"

by Morris Jones :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On the Ruby Platform Manager, I'm struggling to get Netbeans to use the
locally installed Ruby.  It finds my ruby 1.8.6 executable, but it
doesn't find the gems.

In Gem Home, the Browse button is greyed out, and the message in red
says <RubyGems are not installed for a platform>.  "*A* platform?"  What
does this mean?  Not installed for _this_ platform, or not installed for
_any_ platform?  It's clearly wrong, because RubyGems _are_ installed
for this platform.

Adding the path to my installed gems repository
(/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/) seems to do no good.  I
get a nonsensical dialog box that says
"/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems" is non-empty existing
directory and does not seem to be a valid RubyGems repository.

Any clues?

Mojo
--
Morris Jones
http://www.whiteoaks.com
Old Town Sidewalk Astronomers http://www.otastro.org
http://twitter.com/mojo_la

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: "RubyGems are not installed for a platform" Fix?

by Morris Jones :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oddly enough, I removed the installed native platform, and did an
autodetect for platforms, and it found Ruby and gems.  <shrug>

Mojo

Morris Jones wrote:

> On the Ruby Platform Manager, I'm struggling to get Netbeans to use the
> locally installed Ruby.  It finds my ruby 1.8.6 executable, but it
> doesn't find the gems.
>
> In Gem Home, the Browse button is greyed out, and the message in red
> says <RubyGems are not installed for a platform>.  "*A* platform?"  What
> does this mean?  Not installed for _this_ platform, or not installed for
> _any_ platform?  It's clearly wrong, because RubyGems _are_ installed
> for this platform.
>
> Adding the path to my installed gems repository
> (/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/) seems to do no good.  I
> get a nonsensical dialog box that says
> "/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems" is non-empty existing
> directory and does not seem to be a valid RubyGems repository.
>
> Any clues?
>
> Mojo


--
Morris Jones
http://www.whiteoaks.com
Old Town Sidewalk Astronomers http://www.otastro.org
http://twitter.com/mojo_la

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: "RubyGems are not installed for a platform"

by Martin Krauskopf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Morris Jones wrote:
> On the Ruby Platform Manager, I'm struggling to get Netbeans to use the
> locally installed Ruby.  It finds my ruby 1.8.6 executable, but it
> doesn't find the gems.
>
> In Gem Home, the Browse button is greyed out, and the message in red
> says <RubyGems are not installed for a platform>.

Gem tool detection failed. We are getting info about the gem tool
directly from the interpreter. If you can reproduce, please provide
detailed log as described here:

   http://wiki.netbeans.org/FaqRubyNBLogging

There is not any known bug in this area. Which version of NetBeans BTW?

 > "*A* platform?"  What
> does this mean?  Not installed for _this_ platform, or not installed for
> _any_ platform?  It's clearly wrong, because RubyGems _are_ installed
> for this platform.

Yes, bad English of non-native speaker. Will fix, thanks for the catch.

> Adding the path to my installed gems repository
> (/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/) seems to do no good.  I
> get a nonsensical dialog box that says
> "/usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems" is non-empty existing
> directory and does not seem to be a valid RubyGems repository.

"/usr/local/ruby-1.8.6/lib/ruby/gems/1.8" is the right path (without the
last 'gems' directory). As returned by 'gem env'.

        m.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...