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





-------------------------------

locate librrd.so
/opt/rrdtool-1.4.5/lib/librrd.so
/opt/rrdtool-1.4.5/lib/librrd.so.4
/opt/rrdtool-1.4.5/lib/librrd.so.4.1.4
/usr/lib/librrd.so.2
/usr/lib/librrd.so.2.0.13
/usr/local/rrdtool-1.4.5/src/.libs/librrd.so
/usr/local/rrdtool-1.4.5/src/.libs/librrd.so.4
/usr/local/rrdtool-1.4.5/src/.libs/librrd.so.4.1.4

--------------------------------------------------------

If I try to install RubyRRDtool, I got other errors:

gem install RubyRRDtool
Building native extensions.  This could take a while...
ERROR:  Error installing RubyRRDtool:
        ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby extconf.rb
checking for main() in -lz... yes
checking for main() in -lpng... yes
checking for main() in -lfreetype... yes
checking for main() in -lart_lgpl_2... yes
checking for rrd_first() in -lrrd... no
creating Makefile

make
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux
-I/usr/local/include/ruby-1.9.1/ruby/backward
-I/usr/local/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64  -fPIC -O3
-ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -o
rubyrrdtool.o -c rubyrrdtool.c
rubyrrdtool.c:24:17: error: rrd.h: No such file or directory
In file included from rubyrrdtool.c:25:
rrd_addition.h:27: error: expected specifier-qualifier-list before
'rrd_value_t'
rubyrrdtool.c: In function 's_arr_new':
rubyrrdtool.c:98: error: 'struct RArray' has no member named 'len'
rubyrrdtool.c:119: warning: passing argument 1 of 'strlen' makes pointer
from integer without a cast
rubyrrdtool.c:119: warning: passing argument 2 of 'memcpy' makes pointer
from integer without a cast
rubyrrdtool.c:119: warning: passing argument 1 of '__strdup' makes
pointer from integer without a cast
rubyrrdtool.c: In function 'rrdtool_create':
rubyrrdtool.c:325: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c: In function 'rrdtool_first':
rubyrrdtool.c:419: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c: In function 'rrdtool_last':
rubyrrdtool.c:462: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c: In function 'rrdtool_update':
rubyrrdtool.c:595: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c: In function 'rrdtool_call':
rubyrrdtool.c:627: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c: In function 'rrdtool_tune':
rubyrrdtool.c:658: error: 'rrd_tune' undeclared (first use in this
function)
rubyrrdtool.c:658: error: (Each undeclared identifier is reported only
once
rubyrrdtool.c:658: error: for each function it appears in.)
rubyrrdtool.c: In function 'rrdtool_resize':
rubyrrdtool.c:686: error: 'rrd_resize' undeclared (first use in this
function)
rubyrrdtool.c: In function 'rrdtool_restore':
rubyrrdtool.c:726: warning: passing argument 1 of 's_arr_push' makes
pointer from integer without a cast
rubyrrdtool.c:727: warning: passing argument 1 of 's_arr_push' makes
pointer from integer without a cast
rubyrrdtool.c:728: warning: passing argument 1 of 's_arr_push' makes
pointer from integer without a cast
rubyrrdtool.c:737: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c: In function 'rrdtool_fetch':
rubyrrdtool.c:778: error: 'rrd_value_t' undeclared (first use in this
function)
rubyrrdtool.c:778: error: 'rrd_data' undeclared (first use in this
function)
rubyrrdtool.c:795: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c:813: warning: comparison between signed and unsigned
rubyrrdtool.c: In function 'rrdtool_xport':
rubyrrdtool.c:880: error: 'rrd_value_t' undeclared (first use in this
function)
rubyrrdtool.c:880: error: 'rrd_data' undeclared (first use in this
function)
rubyrrdtool.c:897: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c:915: warning: comparison between signed and unsigned
rubyrrdtool.c: In function 'rrdtool_graph':
rubyrrdtool.c:965: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c: In function 'rrdtool_info':
rubyrrdtool.c:1002: warning: passing argument 1 of 'rrd_info_r' makes
pointer from integer without a cast
rubyrrdtool.c:1004: warning: passing argument 2 of 'rb_raise' makes
pointer from integer without a cast
rubyrrdtool.c:1011: error: 'union infoval' has no member named 'u_val'
rubyrrdtool.c:1011: error: non-floating-point argument to function
'isnan'
rubyrrdtool.c:1015: error: 'union infoval' has no member named 'u_val'
rubyrrdtool.c:1022: error: 'union infoval' has no member named 'u_str'
rubyrrdtool.c:1022: error: 'union infoval' has no member named 'u_str'
rubyrrdtool.c:1022: error: 'union infoval' has no member named 'u_str'
rubyrrdtool.c:1022: error: 'union infoval' has no member named 'u_str'
rubyrrdtool.c:1023: error: 'union infoval' has no member named 'u_str'
make: *** [rubyrrdtool.o] Error 1


Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.1/gems/RubyRRDtool-0.6.0 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.9.1/gems/RubyRRDtool-0.6.0/./gem_make.out
--------------------------------------------------------------

Any ideas?

Thanks a lot

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to