From: Jam Bees Date: 2012-09-28T21:38:49+09:00 Subject: Re: ruby bindings for RRDtool --Apple-Mail-D62E2BAC-483A-40E4-9B14-6EE7DB747105 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On Sep 27, 2012, at 11:52 PM, Pradeep Sethi wrote: > Hi >=20 > 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 >=20 > Can anyone pls help, where would I find the ruby bindings ? >=20 >=20 >=20 > 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 >=20 >=20 http://oss.oetiker.ch/rrdtool/prog/rrdruby.en.html Check out the path to the libraries in the example: they're installed locall= y in the RRD directory, so hand in the appropriate path on your system.=20= --Apple-Mail-D62E2BAC-483A-40E4-9B14-6EE7DB747105 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Sep 27, 2012, at 11:52 PM, P= radeep Sethi <lists@ruby-forum.co= m> 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 include= d by default

Can anyone pls help, where wou= ld I find the ruby bindings ?


Admins-MacBook-Pro-2:~ psethi$ which rrdtool
/opt/lo= cal/bin/rrdtool
Admins-MacBook-Pro-2:~ psethi$ irb1.9.3p0 :001 > use 'RRD'
NoMethodError: undefined m= ethod `use' for main:Object
 from (irb):1
 from /Users/psethi/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `<m= ain>'
1.9.3p0 :002 > require 'RRD'
Loa= dError: cannot load such file -- RRD


http://oss.oetiker.ch/rrdtool/prog/rrdruby.en.html=

Check out the p= ath to the libraries in the example: they're installed locally in the RRD di= rectory, so hand in the appropriate path on your system. 
<= /body>= --Apple-Mail-D62E2BAC-483A-40E4-9B14-6EE7DB747105--