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.
On Dec 12, 2007 11:52 AM, David Van Couvering <david at vancouvering.com> wrote: > I am encountering a series of problems using NetBeans 6 in b79 out of > the box with the native Ruby installation. I'll log some issues, but > I thought I'd describe it here too. > > - Start NetBeans 6 > - File->New Project... > - Choose Ruby, Ruby on Rails Application > - Click Next > - It will ask you which Ruby interpreter to use. Choose the native > interpreter at /usr/ruby/1.8/bin > - Click Next > - 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" > > I poked around, and the gem home is at /var/ruby/1.8/gem_home. If I > set $GEM_HOME and restart > > Now when I try the same thing, I get the same error, and the Details > window says: > > "The gem directory is not writeable as this user" > > #...@% > > OK, 'chmod -R a+w gem_home', try again > > "Rails is not installed" > > Rails is not installed? Is that really true, that the webstack Ruby > support doesn't include Rails? > > OK, press on "Install Rails" > > "Bulk updating Gem source index for http://gems.rubyforge.org > ERROR: While executing gem ... (Gem:GemNotFoundException) > could not find rails (>0) in any repository > > Oh, OK, great. At this point I am stumped and gave up. > > So here are the issues as I see them: > > - NetBeans Ruby needs to know where the gem home is, without me having > to set GEM_HOME. At a minimum I should be able to pick the gem home > without having to > When I did this with the Cool Stack in SXDE 09/07, it worked out of > the box, without me having to set $GEM_HOME. > - We need a *writeable* gem home > - We need Rails pre-installed. > > Your thoughts? > > Thanks, > > David > -- > David W. Van Couvering > http://davidvancouvering.blogspot.com > -- David W. Van Couvering http://davidvancouvering.blogspot.com
