FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

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

Gem home and gem path by default

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



Joined: 04 Sep 2009
Posts: 16

PostPosted: Fri Oct 09, 2009 9:23 am    Post subject: Gem home and gem path by default Reply with quote

Please, I need the gem home and gem path routes by default.

I have played with them and now netbeans doesn´t find the gems.

Thanks.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Fri Oct 09, 2009 1:49 pm    Post subject: Gem home and gem path by default Reply with quote

Hello,

Do you mean for the bundled JRuby or? For it the default values are:

Gem Home: <netbeans_install_dir>/ruby2/jruby-1.3.1/lib/ruby/gems/1.8
Gem Path: <netbeans_install_dir>/ruby2/jruby-1.3.1/lib/ruby/gems/1.8
(the same as above)

Erno

jorgegetafe wrote:
Quote:
Please, I need the gem home and gem path routes by default.



I have played with them and now netbeans doesn´t find the gems.



Thanks.











Back to top
jorgegetafe



Joined: 04 Sep 2009
Posts: 16

PostPosted: Fri Oct 09, 2009 1:59 pm    Post subject: Reply with quote

The problem I´m having is that I have alrready installed the gems I need, but netbeans doesn´t find them, i´m sure is because of gem_home and/or gem_path.

This is my configuration, i´ts ok?



thanks
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Fri Oct 09, 2009 2:12 pm    Post subject: Gem home and gem path by default Reply with quote

That looks fine, but of course depends on what exactly is under those
folders. Is the problem that you can't see the gems in the Gem Manager
or that they are not found when running an app?

Erno

jorgegetafe wrote:
Quote:
The problem I´m having is that I have alrready installed the gems I need, but netbeans doesn´t find them, i´m sure is because of gem_home and/or gem_path.



This is my configuration, i´ts ok?



[Image: http://img525.imageshack.us/img525/9047/estadoactual.png ] (http://img525.imageshack.us/i/estadoactual.png/)



thanks











Back to top
jorgegetafe



Joined: 04 Sep 2009
Posts: 16

PostPosted: Fri Oct 09, 2009 2:27 pm    Post subject: Reply with quote

I see the gems in gems manger but not in the app running Sad
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Fri Oct 09, 2009 3:31 pm    Post subject: Gem home and gem path by default Reply with quote

I see, could you please post some example code that fails? Also, can you
double check that you require rubygems correctly and that you have the
correct platform (i.e. the one that has the gems you're trying to use)
set for the project?

Thanks,
Erno

jorgegetafe wrote:
Quote:
I see the gems in gems manger but not in the app running :-(











Back to top
jorgegetafe



Joined: 04 Sep 2009
Posts: 16

PostPosted: Tue Oct 13, 2009 7:33 am    Post subject: Reply with quote

With ruby manager gems i see the gems installed but when i run the app it says:

Missing these required gems:
webrat >= 0.4.3

You're running:
ruby 1.8.7.72 at /usr/bin/ruby1.8
rubygems 1.3.1 at /home/jorge/.gem/ruby/1.8/gems, /var/lib/gems/1.8/gems, /var/lib/gems/1.8

Run `rake gems:install` to install the missing gems.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Wed Oct 14, 2009 9:52 am    Post subject: Gem home and gem path by default Reply with quote

I may be asking the obvious, but did you run 'rake install:gems' for the
app in question? Also, what does

gem search webrat

output when run from the command line?

Erno


jorgegetafe wrote:
Quote:
With ruby manager gems i see the gems installed but when i run the app it says:



Missing these required gems:

webrat >= 0.4.3



You're running:

ruby 1.8.7.72 at /usr/bin/ruby1.8

rubygems 1.3.1 at /home/jorge/.gem/ruby/1.8/gems, /var/lib/gems/1.8/gems, /var/lib/gems/1.8



Run `rake gems:install` to install the missing gems.











Back to top
jorgegetafe



Joined: 04 Sep 2009
Posts: 16

PostPosted: Wed Oct 14, 2009 11:21 am    Post subject: Reply with quote

yes i did it.

I fix it installing all the gems in a new folder and giving it to netbeans.
Thanks.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Wed Oct 14, 2009 11:23 am    Post subject: Gem home and gem path by default Reply with quote

OK, good to hear you've solved the problem!

Erno

jorgegetafe wrote:
Quote:
yes i did it.



I fix it installing all the gems in a new folder and giving it to netbeans.

Thanks.











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