 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Antonio Cangiano
RE: gem install ibm_db ibm_db.c:834: error: [ reply ] 2009-02-13 21:10
|
Despite the recent release of the first stable version of Ruby 1.9.1, you will find that most Ruby libraries don't work with it. Unfortunately at this stage, the majority of Ruby libraries have not been ported to Ruby 1.9.1 yet. In fact, I know of very few people who run Rails with Ruby 1.9.1 due to this.
I'd recommend that you install Ruby 1.8.7 (or 1.8.6) and try to install the ibm_db gem with it.
|
By: developer bee
gem install ibm_db ibm_db.c:834: error: [ reply ] 2009-02-13 19:49
|
I am out of ideas, while getting the following error:
gem install ibm_db --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Building native extensions. This could take a while...
ERROR: Error installing ibm_db:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install ibm_db --include-dependencies
checking for SQLConnect() in -ldb2... yes
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. -I/opt/ibm/db2/V9.5/include -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -o ibm_db.o -c ibm_db.c
ibm_db.c:123:1: warning: "STRCASECMP" redefined
In file included from /usr/local/include/ruby-1.9.1/ruby.h:32,
from ibm_db.c:21:
/usr/local/include/ruby-1.9.1/ruby/ruby.h:1209:1: warning: this is the location of the previous definition
ibm_db.c: In function ‘_ruby_ibm_db_assign_options’:
ibm_db.c:732: warning: unused variable ‘err’
ibm_db.c:731: warning: unused variable ‘i’
ibm_db.c:728: warning: unused variable ‘autocommit’
ibm_db.c: In function ‘_ruby_ibm_db_parse_options’:
ibm_db.c:834: error: ‘struct RArray’ has no member named ‘len’
ibm_db.c: In function ‘ibm_db_exec’:
ibm_db.c:3050: warning: unused variable ‘vParam’
ibm_db.c: In function ‘_ruby_ibm_db_bind_data’:
ibm_db.c:3305: warning: dereferencing type-punned pointer will break strict-aliasing rules
ibm_db.c:3291: warning: unused variable ‘origlen’
ibm_db.c:3290: warning: unused variable ‘nullterm’
ibm_db.c: In function ‘ibm_db_execute’:
ibm_db.c:3656: error: ‘struct RArray’ has no member named ‘len’
ibm_db.c: In function ‘_ruby_ibm_db_get_data2’:
ibm_db.c:4790: warning: unused variable ‘locType’
ibm_db.c: In function ‘ibm_db_set_option’:
ibm_db.c:5697: warning: unused variable ‘options’
ibm_db.c: In function ‘ibm_db_get_option’:
ibm_db.c:6445: warning: pointer targets in assignment differ in signedness
ibm_db.c:6423: warning: unused variable ‘op_string’
ibm_db.c: In function ‘ibm_db_get_last_serial_value’:
ibm_db.c:6513: warning: pointer targets in assignment differ in signedness
ibm_db.c:6519: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness
make: *** [ibm_db.o] Error 1
DB2DIR=/opt/ibm/db2/V9.5
DB2INSTANCE=db2inst1
DB2LIB=/opt/ibm/db2/V9.5/lib32
IBM_DB_INCLUDE=/home/db2inst1/sqllib/include
IBM_DB_LIB=/home/db2inst1/sqllib/lib
INSTHOME=/home/db2inst1
LD_LIBRARY_PATH=/home/db2inst1/sqllib/lib32
gem list --local
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
rails (2.2.2)
rake (0.8.3)
Any help will be apreciated,
Thank you.
|
|
 |