NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Netbeans 7.0 fails to detect rails installed via apt on ubuntu

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
dodtsair



Joined: 28 Sep 2010
Posts: 1

PostPosted: Wed Jul 20, 2011 4:17 pm    Post subject: Netbeans 7.0 fails to detect rails installed via apt on ubuntu Reply with quote

I want to know how Netbeans detects the rails installation. I have Netbeans 7.0 installed on Ubuntu 11.04. Netbeans properly detects both the jruby, and ruby installations but when I try to complete the project creation it tells me ""Rails is not installed"

How do I make netbeans properly detect the existing rails installation?
Back to top
chesaro



Joined: 02 Oct 2011
Posts: 2

PostPosted: Sun Oct 02, 2011 7:12 am    Post subject: Sadly, the same Reply with quote

Hi there, i'm actually having the same problems with the 7.0.1 version, and to add some extra, the plugin disapeared from the plugin menu (so i can't uninstall).

I tried to install the rails framework from the ruby platform menu, but it ask for a password i just don't know, i also tried to execute as root user and it just doesn't do anything.

I also tried with previous versions and is the same (6.9, 6.7, 6.5), i'm starting to think that is the linux version that has the problem, i'll wait to try it again with ubuntu 11.10 Crying or Very sad
Back to top
chesaro



Joined: 02 Oct 2011
Posts: 2

PostPosted: Thu Nov 10, 2011 4:57 am    Post subject: I think i found a sollution Reply with quote

Hello there, i've already try to use the RoR plugin in ubuntu 11.10 and it's obviously the same, but i think i found the answer in this page http://hameedullah.com/how-to-install-rails-21-on-ubuntu-in-5-steps.html
i think the problem is how gems and rails is installed, this tutorial tells you how to do it just using the gem command, i haven't tried already, but i'm going to do it on a VM to avoid a system crash (i suggest to do the same), this because on the first try a warning message apeared, hope its of any use, i'll post back when i tried on the vm
Back to top
JoseTlaseca



Joined: 25 Nov 2011
Posts: 1

PostPosted: Fri Nov 25, 2011 8:02 pm    Post subject: This worked for me Reply with quote

I am on a Debian Squeeze system.
I have installed Ruby with aptitude, Rubygems from sources and rails with
Code:
gem install rails

in past when i tried to create a new RoR project netbeans said me a message "rails is not installed".
Here is my solution:

1 - In netbeans go to Tools -> Ruby platforms.
Here i can see that netbeans autodetected my ruby installation correctly, but my gem folder was not correct, thats the problem.

2 - In "Gem home" clic on Browse button and navigate to your gem folder, you can find it with the next command in a terminal:
Code:
gem which rails

my output to the above command was:
/usr/lib/ruby/gems/1.8/gems/railties-3.1.2/lib/rails.rb

So when i have clicked Browse to find my gem home i have selected /usr/lib/ruby/gems/1.8

3 - In "Gem path" you need to add the same folder as you did for the Gem home.

Thats all.
I hope this help you.

Regards
Back to top
jjohn8171



Joined: 03 Oct 2011
Posts: 6

PostPosted: Fri Mar 16, 2012 4:42 am    Post subject: Reply with quote

I tried to install the rails framework from the ruby platform menu, but it ask for a password i just don't know, i also tried to execute as root user and it just doesn't do anything.
_____________________
euro pharmacies
Back to top
junesongwang



Joined: 10 Apr 2012
Posts: 1

PostPosted: Tue Apr 10, 2012 7:39 am    Post subject: Reply with quote

This seems not available!

Best wishes with windows 7 cheap. And I wish you can get the office mac 2011 serial!
Back to top
josephmo



Joined: 31 Aug 2009
Posts: 3

PostPosted: Wed Apr 11, 2012 8:00 am    Post subject: Netbeans 7.xx on a MAC with Ruby and RVM (Ruby Version Manager): Rails Not Found error message Reply with quote

I have Netbeans 7.xx installed on my MAC. I installed the Ruby plugin and was trying to create a project. Everything works fine, until the very last step, where I see the message: Rails is not installed

To fix the problem, I started out by figuring out the path to the default rails folder:
Code:
gem which rails

The response is:
/Users/joseph/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.3/lib/rails.rb

Which means that the rails path is:
/Users/joseph/.rvm/gems/ruby-1.9.3-p125/gems/

The real issue here is that Netbeans cannot see the folder .rvm (I have rvm, the Ruby Version Manager installed) because it's a hidden folder. To fix this problem, I opened a terminal and created a symbolic link as follows:

Code:
cd /Users/joseph

Code:
ln -s .rvm/gems/ruby-1.9.3-p125/gems/ ./gems_path


Then I did the following:
From Netbeans: Tools -> Ruby Gems -> Gem Home -> Browse
In the dialog box, I navigated to /Users/joseph and selected gems_path

PS: I reported the inability to see a hidden folder as a bug[/i]
Back to top
l.hauri



Joined: 14 Jun 2012
Posts: 2

PostPosted: Tue Jul 10, 2012 7:12 am    Post subject: Reply with quote

For me it will be easy to follow your tips. I am sure that in this way I will learn how to do it fast and simple. yacht charter
Back to top
kyliejamez



Joined: 05 Jul 2012
Posts: 11

PostPosted: Thu Jul 19, 2012 8:45 am    Post subject: Reply with quote

Thanks for share useful information.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo