Comments (4)
@kevin-omi The error says the processor architecture of system where you installed ibm_db and where you copied are not same. If processor architecture is different, you need to install ibm_db locally. Try below commands:
cd /opt/nodejs/node12/node_modules/ibm_db
npm install
Also, we need complete output of below commands from Amazon Linux 2 system:
uname
uname -m
node -v
npm ls ibm_db
db2level
echo $IBM_DB_HOME
echo $PATH
echo $LD_LIBRARY_PATH $DYLD_LIBRARY_PATH
npm install ibm_db
If you see architecture is arm64, ibm_db will not work as ibm_db is not supported for arm64 architecture. Thanks.
from node-ibm_db.
Linux
x86_64
node v18.18.2
task@ /var/task
└── (empty)
db2level = bash: db2level: command not found
echo $IBM_DB_HOME = blank
PATH=/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin
LD_LIBRARY_PATH=/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib
npm install ibm_db results:
added 48 packages, and audited 49 packages in 19s
3 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 9.8.1 -> 10.2.4
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.4
npm notice Run npm install -g [email protected] to update!
npm notice
The following command is pointless because the ibm_db need write permissions to the license file and other directories, and the Lambda function does not have write permissions to its file system except for the mounted EFS or /tmp folder.
cd /opt/nodejs/node12/node_modules/ibm_db
npm install
from node-ibm_db.
@kevin-omi I suspect the odbc_bindings.node file is getting corrupted when ibm_db get copied from S3 to EFS via AWS DataSync. Please check the transfer mode. If it is not a binary transfer, the binary files will get corrupted.
You may try to install ibm_db under /tmp folder where lambda function has the write permission. Thanks.
from node-ibm_db.
@kevin-omi Let us know if you tried file transfer in binary mode and any update about the issue? Thanks.
from node-ibm_db.
Related Issues (20)
- Fetch multiple rows HOT 2
- adm-zip can it be moved to dev dependencies HOT 2
- queryResult deferred callback result changed with version 3.2.3 HOT 5
- Node ibm_db Installation Error with Python 3.12 HOT 2
- conn.query callback being fired before all queries are finished. (possibly) HOT 1
- Release v3.2.4 HOT 1
- Bug Report - Could not locate the bindings file. HOT 2
- Having trouble get a valid npm install in a GitLab CI Pipeline HOT 2
- libcrypto.so.1 error HOT 3
- Connection Pooling not working as expected .maxpool and settimeout having issue HOT 5
- I am tryingto install ibm_db in linux and getting error HOT 5
- GSKIT Error HOT 3
- No longer building on npm install HOT 11
- [IBM][CLI Driver] SQL1042C An unexpected system error occurred. SQLSTATE=58004 HOT 6
- Q: z/OS license being cached ? HOT 1
- npm install not working with podman HOT 7
- There is no build folder after installation of ibm_db HOT 5
- unhandledrejection
- Support of ibm_db with arm64 for MacOS with M1/M2 Chip HOT 1
- Slow response to retrieve 11577 records took 20sec HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ibm_db.