David Van Couvering wrote:
>
> - The next window says:
> 
> "Ruby Gems is not accessible"
> 
> If you click on [Details] it says "The 'gem' tool is installed on your
> system, but the gem repository could not be found.  You may try to set
> $GEM_HOME and run IDE again"

For some reason looks like netbeans doesn't pick up the gem
environment. It should ideally do so automatically like in the CLI:

% uname -v
snv_79
% gem environment
RubyGems Environment:
  - VERSION: 0.9.4 (0.9.4)
  - INSTALLATION DIRECTORY: /var/ruby/1.8/gem_home
  - GEM PATH:
     - /var/ruby/1.8/gem_home
  - REMOTE SOURCES:
     - http://gems.rubyforge.org


> Rails is not installed?  Is that really true, that the webstack Ruby
> support doesn't include Rails?

Rails (or any gem) can be installed via 'gem'.

There was much discussion here on exactly how to deliver packaged
versions of some popular gems, but the first round delivers only ruby
& gems.  There's future work in the wishlist to explore packaged
delivery of the most popular gems (like rails).


> Update: I was able to install Rails after making /usr/ruby/1.8/bin
> writeable.  I'll log another issue to make this directory writeable.

The system dir isn't meant to be world-writable.

Users can do private gem installs via -i,

% gem help install     
[...]
    -i, --install-dir DIR            Gem repository directory to get installed
                                     gems.
[...]

It'd be nice if gem had a built-in default (say, $HOME) for
non-privileged users. That might be a good idea to propose to the gem
community.


-- 
Jyri J. Virkki - jyri.virkki at sun.com - Sun Microsystems

Reply via email to