Multiple Errors with RRD and Rake

Hello all,

I am trying to install the SequreISP application (link below) but I'm
facing an error that I cannot resolve and any help is much appreciated.

The application I am trying to install is:
https://github.com/sequre/sequreisp

Here's some information about my system:

OS: Centos 5.4 (Final)

uname -a
Linux gateway 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686
i686 i386 GNU/Linux

ruby 1.9.2p290
Rails 2.3.11
gem version 1.8.7
rake version 0.9.2

The command that's giving me errors is:
rake db:migrate RAILS_ENV=production --trace

The errors are:
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Could not open library 'rrd': rrd: cannot open shared object file: No
such file or directory. Could not open library 'librrd.so': librrd.so:
cannot open shared object file: No such file or directory
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/lib/ffi/library.rb:75:in
`block in ffi_lib'
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/lib/ffi/library.rb:54:in
`map'
/usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/lib/ffi/library.rb:54:in
`ffi_lib'
/usr/local/lib/ruby/gems/1.9.1/gems/rrd-ffi-0.2.7/lib/rrd/wrapper.rb:44:in
`singletonclass'
/usr/local/lib/ruby/gems/1.9.1/gems/rrd-ffi-0.2.7/lib/rrd/wrapper.rb:41:in
`<class:Wrapper>'
/usr/local/lib/ruby/gems/1.9.1/gems/rrd-ffi-0.2.7/lib/rrd/wrapper.rb:6:in
`<module:RRD>'
/usr/local/lib/ruby/gems/1.9.1/gems/rrd-ffi-0.2.7/lib/rrd/wrapper.rb:2:in
`<top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:184:in
`require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:184:in
`require'
/usr/local/lib/ruby/gems/1.9.1/gems/rrd-ffi-0.2.7/lib/rrd.rb:4:in `<top
(required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in
`require'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in
`block (2 levels) in require'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in
`each'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in
`block in require'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in
`each'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in
`require'
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler.rb:120:in
`require'
/opt/sequreisp/deploy/sequreisp/config/boot.rb:116:in `load_gems'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.11/lib/initializer.rb:164:in
`process'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.11/lib/initializer.rb:113:in
`run'
/opt/sequreisp/deploy/sequreisp/config/environment.rb:13:in `<top
(required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in
`require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in
`block in require'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:547:in
`new_constants_in'
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:182:in
`require'
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.11/lib/tasks/misc.rake:4:in
`block in <top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:205:in
`call'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:205:in
`block in execute'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:200:in
`each'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:200:in
`execute'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:158:in
`block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:151:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:176:in
`block in invoke_prerequisites'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:174:in
`each'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:174:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:157:in
`block in invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:151:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:144:in
`invoke'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:112:in
`invoke_task'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in
`block (2 levels) in top_level'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in
`each'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in
`block in top_level'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:84:in
`top_level'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:62:in
`block in run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:59:in
`run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2/bin/rake:32:in `<top
(required)>'
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19:in `<main>'
Tasks: TOP => db:migrate => environment

Hi,

You need to install librrd-dev package equivalent for for CentOS. I
guess it is librrdtool-devel, and of course librrdtool.