2 By any means,
this is not completely ready yet.
4 Pre-req (Setup and configure Informix)
5 ======================================
6 Download and install informix (supported version 11.5).
7 Download and install CSDK.
8 It is assumed that informix is installed at `/opt/informix`, adjust approriately.
9 (by
default IBM installs informix at `/opt/IBM/informix`)
13 INFORMIXDIR=
'/opt/informix'
14 INFORMIXSERVER=
'__MyInformixServer__'
15 ONCONFIG=
"onconfig.${INFORMIXSERVER}"
16 INFORMIXSQLHOSTS=
"${INFORMIXDIR}/etc/sqlhosts.${INFORMIXSERVER}"
18 INFORMIXLIBDIR=
"${INFORMIXDIR}/lib"
19 INFORMIXLIBS=${INFORMIXLIBDIR}
21 for d in c++ cli client client/csm csm dmi esql ;
do
22 if [[ -d
"${INFORMIXLIBDIR}/${d}" ]]; then
23 INFORMIXLIBS=${INFORMIXLIBS}:${INFORMIXLIBDIR}/${d}
27 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${INFORMIXLIBS}
29 PATH=${INFORMIXDIR}/bin:${PATH}
30 IFMX_HISTORY_SIZE=10000
32 export INFORMIXSERVER INFORMIXDIR ONCONFIG INFORMIXSQLHOSTS LD_LIBRARY_PATH PATH IFMX_HISTORY_SIZE
34 Make sure Informix is running. Test that its accepting connections.
37 $ dbaccess sysmaster -
43 $ npm install nodejs-db-informix
45 Or to install the
package globally
47 $ sudo npm install nodejs-db-informix -g
49 NOTE: global install will fail if `INFORMIXDIR` and above mentioned environment
50 variables in pre-reqs are not setup for root user.
55 $ node-waf distclean configure build
57 -or- if you're using `node-gyp`
59 $ node-gyp clean configure build
65 $ node-waf --debug distclean configure build
72 -or- if you're using `node-gyp`
74 $ nodejs tests/tests.js
79 This module is released under the [MIT License] [license].