We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”
brew install unixodbc
pkgutil --expand ibm-iaccess-1.1.0.15.pkg ./out
./out/Distrubution
hostArchitectures="x86_64”
hostArchitectures="x86_64,arm64”
pkgutil --flatten ./out ./ibm.pkg
ibm.pkg
Actually compiling node-odic:
I had to make two updates to the binding.gyp to make ODBC actually compile from npm i (yarn)
npm i
yarn
[ 'OS == "mac"', { 'include_dirs': [ '/usr/local/include', '/opt/homebrew/include' ], 'libraries' : [ '-L/usr/local/lib', '-L/opt/homebrew/lib', '-lodbc' ], 'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'NAPI_EXPERIMENTAL' ] }],
Installing and compiling odbc with npm/yarn has to be done in two separate steps.
odbc
npm i odbc@x —ignore-scripts
yarn add odbc@x —ignore-scripts
binding.gyp
./node_modules/odbc
npm run install
These steps will likely be redundant when node-odbc is updated to work on m1/arm64
The text was updated successfully, but these errors were encountered:
You saved my life, thanks!
Sorry, something went wrong.
Looks like support has since been added to node-odbc in version 2.4.6 IBM/node-odbc@286de6e
No branches or pull requests
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”
brew install unixodbc
pkgutil --expand ibm-iaccess-1.1.0.15.pkg ./out
./out/Distrubution
. ChangehostArchitectures="x86_64”
tohostArchitectures="x86_64,arm64”
pkgutil --flatten ./out ./ibm.pkg
ibm.pkg
Actually compiling node-odic:
I had to make two updates to the binding.gyp to make ODBC actually compile from
npm i
(yarn
)Installing and compiling odbc with npm/yarn has to be done in two separate steps.
odbc
from your packagenpm i
oryarn
to install the rest of your packagesnpm i odbc@x —ignore-scripts
oryarn add odbc@x —ignore-scripts
to install node-odbc without compilingbinding.gyp
file in./node_modules/odbc
to make the build work for the m1.npm run install
to build ODBC for your app.These steps will likely be redundant when node-odbc is updated to work on m1/arm64
The text was updated successfully, but these errors were encountered: