Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple NodeJS/IOJS ODBC DB2 config Ubuntu 14.04
# first download and install IBM Data Server Driver Package CLI/Packages
apt-get install iojs npm git unixodbc unixodbc-dev -y
git clone git://github.com/wankdanker/node-odbc.git
cd node-odbc
node-gyp configure build
npm install odbc
[DEFAULT]
Driver = DB2
[ODBC]
TraceFile = /tmp/odbc.trace
Trace = 1
[DB2]
Description = DB2 Driver
Driver = /opt/ibm/db2_drivers/dsdriver/lib/libdb2o.so
FileUsage = 1
DontDLClose = 1
# INSTALL PACKAGES FOR NODEJS I LIKE
echo "Installing NodeJS Packages!"
npm config set loglevel=http
npm config set proxy=http://10.2.97.200:8080
npm config set https-proxy=http://10.2.97.200:8080
npm install -g express express-generator bower cheerio string pm2 http
# EXPORT NODE_PATH FOR NODE PACKAGE MANAGER (NPM)
export NODE_PATH=/usr/lib/node_modules
echo "NodeJS ready!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment