is there any change to get rails running with db2 V7.2.
I know its a very old version, but we can't migrate at the moment since there are many dependencies and we want to try out rails just now.
I tried to install the adapter with
gem install ibm_db – –with-IBM_DB-dir=/usr/IBMdb2/V7.1 –with-IBM_DB-include=/usr/IBMdb2/V7.1/include –with-IBM_DB-lib=/usr/IBMdb2/V7.1/lib
and get
ibm_db.c
ibm_db.c: In function `_ruby_ibm_db_connect_helper':
ibm_db.c:1120: error: `SQL_ATTR_PING_DB' undeclared (first use in this function)
ibm_db.c:1120: error: (Each undeclared identifier is reported only once
ibm_db.c:1120: error: for each function it appears in.)
ibm_db.c: At top level:
ibm_db.c:4789: error: parse error before “SQLLEN”
ibm_db.c: In function `_ruby_ibm_db_get_data2':
ibm_db.c:4793: error: `ctype' undeclared (first use in this function)
ibm_db.c:4796: error: `stmt_res' undeclared (first use in this function)
ibm_db.c:4801: error: `col_num' undeclared (first use in this function)
ibm_db.c:4802: error: `read_length' undeclared (first use in this function)
ibm_db.c:4803: error: `buff' undeclared (first use in this function)
ibm_db.c:4803: error: `buff_length' undeclared (first use in this function)
ibm_db.c:4803: error: `out_length' undeclared (first use in this function)
ibm_db.c: In function `ibm_db_server_info':
ibm_db.c:5858: error: `SQL_DATABASE_CODEPAGE' undeclared (first use in this function)
ibm_db.c: In function `ibm_db_client_info':
ibm_db.c:6319: error: `SQL_APPLICATION_CODEPAGE' undeclared (first use in this function)
ibm_db.c:6330: error: `SQL_CONNECT_CODEPAGE' undeclared (first use in this function)
ibm_db.c: In function `ibm_db_active':
ibm_db.c:6376: error: `SQL_ATTR_PING_DB' undeclared (first use in this function)
make: *** [ibm_db.o] Fehler 1
Thanks a lot for any hint
Stefan
database-support/db2.txt · Last modified: 2009/02/27 15:40 by acangiano
Discussion
hi all,
is there any change to get rails running with db2 V7.2. I know its a very old version, but we can't migrate at the moment since there are many dependencies and we want to try out rails just now.
I tried to install the adapter with gem install ibm_db – –with-IBM_DB-dir=/usr/IBMdb2/V7.1 –with-IBM_DB-include=/usr/IBMdb2/V7.1/include –with-IBM_DB-lib=/usr/IBMdb2/V7.1/lib
and get ibm_db.c ibm_db.c: In function `_ruby_ibm_db_connect_helper': ibm_db.c:1120: error: `SQL_ATTR_PING_DB' undeclared (first use in this function) ibm_db.c:1120: error: (Each undeclared identifier is reported only once ibm_db.c:1120: error: for each function it appears in.) ibm_db.c: At top level: ibm_db.c:4789: error: parse error before “SQLLEN” ibm_db.c: In function `_ruby_ibm_db_get_data2': ibm_db.c:4793: error: `ctype' undeclared (first use in this function) ibm_db.c:4796: error: `stmt_res' undeclared (first use in this function) ibm_db.c:4801: error: `col_num' undeclared (first use in this function) ibm_db.c:4802: error: `read_length' undeclared (first use in this function) ibm_db.c:4803: error: `buff' undeclared (first use in this function) ibm_db.c:4803: error: `buff_length' undeclared (first use in this function) ibm_db.c:4803: error: `out_length' undeclared (first use in this function) ibm_db.c: In function `ibm_db_server_info': ibm_db.c:5858: error: `SQL_DATABASE_CODEPAGE' undeclared (first use in this function) ibm_db.c: In function `ibm_db_client_info': ibm_db.c:6319: error: `SQL_APPLICATION_CODEPAGE' undeclared (first use in this function) ibm_db.c:6330: error: `SQL_CONNECT_CODEPAGE' undeclared (first use in this function) ibm_db.c: In function `ibm_db_active': ibm_db.c:6376: error: `SQL_ATTR_PING_DB' undeclared (first use in this function) make: *** [ibm_db.o] Fehler 1
Thanks a lot for any hint
Stefan