Ruby bindings for RRDtool

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 O. [email protected]
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
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:inrequire’
from (irb):2
from /Users/psethi/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `’
1.9.3p0 :003 >

On Sep 27, 2012, at 11:52 PM, Pradeep S. [email protected]
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
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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs