Problem running Ruby app

Hello!
I’m developing a ruby app, and i’m using NetBeans IDE 6.8 for
programming, so my problem now it’s that i can execute my app without
problems using Netbeans, but if i do ruby myapp.rb from terminal , i
have the next message :

usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': no such file to load -- ntp (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from ./Init_indoor_unit.rb:16
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire’
from Main_loop.rb:20

My problem it’s that a didn’t take care about ruby libraries used by
Netbeans, in NetBeans i used Jruby 1.4 and for my system its Ruby 1.8…
:frowning:

My problem now it’s that i don’t know how migrate the libraries , or do
something to execute my app without Netbeans…

What must i do?

Thanks!!

On Mon, Mar 8, 2010 at 4:21 AM, Alvaro Di [email protected] wrote:

usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require’: no such file to load – ntp (LoadError)

My problem it’s that a didn’t take care about ruby libraries used by
Netbeans, in NetBeans i used Jruby 1.4 and for my system its Ruby 1.8…

What must i do?

sudo gem install ntp

would be the place to start :slight_smile:

On Mon, Mar 8, 2010 at 9:11 AM, Hassan S.
[email protected] wrote:

sudo gem install ntp

would be the place to start :slight_smile:

Right – the gems installed for Jruby are totally separate from the
gems used by MRI.

Thanks!! Problem Solved!!