| View previous topic :: View next topic |
| Author |
Message |
Morris Jones Posted via mailing list.
|
Posted: Wed Jul 02, 2008 4:53 pm Post subject: "RubyGems are not installed for a platform" |
|
|
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@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
|
| Back to top |
|
 |
Martin Krauskopf Posted via mailing list.
|
Posted: Thu Jul 03, 2008 7:24 am Post subject: "RubyGems are not installed for a platform" |
|
|
Morris Jones wrote:
| Quote: | 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?
| Quote: | "*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.
| Quote: | 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@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
|
| Back to top |
|
 |
tillmo
Joined: 21 May 2009 Posts: 2
|
Posted: Thu May 21, 2009 9:11 pm Post subject: same problem |
|
|
I am using Netbeans 6.5 with Ubuntu 9.04. I have the same problem: in Gem Home, the Browse button is greyed out, and when creating a rails project, I get:
Platform "Ruby1.8.7-p72" does not have a valid RubyGems installation.
Below the output of "gem env", and attached the log file.
Best,
Till
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.1
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /var/lib/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
| Description: |
|
 Download |
| Filename: |
netbeans_log.txt |
| Filesize: |
30.5 KB |
| Downloaded: |
226 Time(s) |
|
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Fri May 22, 2009 11:17 am Post subject: "RubyGems are not installed for a platform" |
|
|
Hi Till,
Seems to be a bug - as a workaround installing the default bundled
platform, i.e. the 'JRuby and Rails distribution' plugin may help. You
don't need to use it for anything, just that the absence of the default
platform has caused some issues in the past. Also, can you try whether
it works for you in 6.7 dev
(http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-GettingADevelopmentBuild)?
Thanks,
Erno
tillmo wrote:
| Quote: | I am using Netbeans 6.5 with Ubuntu 9.04. I have the same problem: in Gem Home, the Browse button is greyed out, and when creating a rails project, I get:
Platform "Ruby1.8.7-p72" does not have a valid RubyGems installation.
Below the output of "gem env", and attached the log file.
Best,
Till
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.1
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /var/lib/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
Attachments:
http://forums.netbeans.org//files/netbeans_log_208.txt
|
|
|
| Back to top |
|
 |
tillmo
Joined: 21 May 2009 Posts: 2
|
Posted: Sat May 30, 2009 10:41 am Post subject: Thanks, it works |
|
|
Hi Erno,
many thanks for your hints.
Actually, both 6.5 with JRuby (but not with Ruby1.8 ) and 6.7-dev (with both JRuby and Ruby1.8 ) work. The latter has the advantage that I can also start a server via Netbeans (this does not work for me with JRuby). However, I am wondering how stable the developer version actually is.
All the best,
Till
|
|
| 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
|
|
|
|