Forum: Ruby ruby bindings for RRDtool

Posted by Pradeep Sethi (psethi2000)
on 2012-09-28 07:52
Hi

I installed RRDTool on mac & am trying to use RRD from Ruby but it is
not able to find the Ruby bindings? The documentation says that perl,
ruby bindings are included by default

Can anyone pls help, where would I find the ruby bindings ?


Thanks in advance

Pradeep

======

Admins-MacBook-Pro-2:~ psethi$ rrdtool -v
RRDtool 1.4.7  Copyright 1997-2012 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Jun 28 2012 01:32:28

Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv,  dump, restore,
    last, lastupdate, first, info, fetch, tune,
    resize, xport, flushcached

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

Admins-MacBook-Pro-2:~ psethi$ which rrdtool
/opt/local/bin/rrdtool
Admins-MacBook-Pro-2:~ psethi$ irb
1.9.3p0 :001 > use 'RRD'
NoMethodError: undefined method `use' for main:Object
  from (irb):1
  from /Users/psethi/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `<main>'
1.9.3p0 :002 > require 'RRD'
LoadError: cannot load such file -- RRD
  from
/Users/psethi/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
  from
/Users/psethi/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
  from (irb):2
  from /Users/psethi/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `<main>'
1.9.3p0 :003 >
Posted by Jam Bees (Guest)
on 2012-09-28 14:39
(Received via mailing list)
On Sep 27, 2012, at 11:52 PM, Pradeep Sethi <lists@ruby-forum.com> 
wrote:

> Admins-MacBook-Pro-2:~ psethi$ which rrdtool
> /opt/local/bin/rrdtool
> Admins-MacBook-Pro-2:~ psethi$ irb
> 1.9.3p0 :001 > use 'RRD'
> NoMethodError: undefined method `use' for main:Object
>  from (irb):1
>  from /Users/psethi/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `<main>'
> 1.9.3p0 :002 > require 'RRD'
> LoadError: cannot load such file -- RRD
>
>
http://oss.oetiker.ch/rrdtool/prog/rrdruby.en.html

Check out the path to the libraries in the example: they're installed 
locally in the RRD directory, so hand in the appropriate path on your 
system.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.