Sunday 15 February 2015

ruby on rails - DB2 on IBM Bluemix -



ruby on rails - DB2 on IBM Bluemix -

i'm starting out on bluemix, i've created little rails 4 app , tested locally using sqlite. db2 default on bluemix opted when setup app.

when added ibm_db gem gem file ready deploy bluemix got next error bundler:

environment variable ibm_db_home not set. set db2/ibm_data_server_driver installation directory , retry gem install.

i don't have db2 installed on dev machine won't utilize else, utilize postgres thats not natively supported on bluemix it's 3rd party provider don't want into. i'm not willing install db2 deploy bluemix, i'm hoping theres way ?

thanks.

in order create connection db2 local machine, you'll need ibm db2 driver installed , ibm_db_home environment variable set path install driver package. (e.g. /home/db2inst1/sqllib)

the ibm_db gem should able find necessary binaries in order create connection database.

you can obtain driver here: https://www-304.ibm.com/support/docview.wss?uid=swg21418043

this developerworks article of help, utilize db2 express-c test things out locally: http://www.ibm.com/developerworks/data/library/techarticle/dm-0705chun/

ruby-on-rails db2 bluemix

No comments:

Post a Comment