# Ruby bindings for RRDtool

**URL:** <https://rubytalk.org/t/ruby-bindings-for-rrdtool/66371>\
**Category:** ruby-talk\
**Created:** [28 September 2012 05:52 UTC](https://rubytalk.org/t/ruby-bindings-for-rrdtool/66371 "2012-09-28T05:52:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [28 September 2012 05:52 UTC](https://rubytalk.org/t/ruby-bindings-for-rrdtool/66371/1 "2012-09-28T05:52:52Z")

</div>

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](mailto:tobi@oetiker.ch)\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compiled Jun 28 2012 01:32:28
> 
> Usage: rrdtool [options] command command\_options  
> Valid commands: create, update, updatev, graph, graphv, dump, restore,  
> &nbsp;&nbsp;&nbsp;&nbsp;last, lastupdate, first, info, fetch, tune,  
> &nbsp;&nbsp;&nbsp;&nbsp;resize, xport, flushcached
> 
> RRDtool is distributed under the Terms of the GNU General  
> Public License Version 2. ([www.gnu.org/copyleft/gpl.html](http://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  
> &nbsp;&nbsp;from (irb):1  
> &nbsp;&nbsp;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  
> &nbsp;&nbsp;from  
> /Users/psethi/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site\_ruby/1.9.1/rubygems/custom\_require.rb:36:in  
> `require'  
> &nbsp;&nbsp;from  
> /Users/psethi/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site\_ruby/1.9.1/rubygems/custom\_require.rb:36:in  
> `require'  
> &nbsp;&nbsp;from (irb):2  
> &nbsp;&nbsp;from /Users/psethi/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `\<main\>'  
> 1.9.3p0 :003 \>
> 
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Jam](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@Jam](https://rubytalk.org/u/Jam)\
**Post date:** [28 September 2012 12:38 UTC](https://rubytalk.org/t/ruby-bindings-for-rrdtool/66371/2 "2012-09-28T12:38:49Z")

</div>

[http://oss.oetiker.ch/rrdtool/prog/rrdruby.en.html](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.

> **···**
>
> On Sep 27, 2012, at 11:52 PM, Pradeep Sethi \<lists@ruby-forum.com\> wrote:
> 
> > 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 ?
> > 
> > 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
