Skip to content

Error libthcli.so: cannot open shared object file: No such file or directory in Docker #14

Closed
@jjschwarz

Description

@jjschwarz

I am building a docker image which include informixdb 2.1.0, so based on
https://github.com/OpenInformix/node-informixdb/blob/master/INSTALL.md

I included informixdb and moment in my Dockerfile dependencies. It appears to pass all of the installation fine, but when I run my code I get the error:

(node:9) UnhandledPromiseRejectionWarning: Error: libthcli.so: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at bindings (/usr/src/app/node_modules/bindings/bindings.js:112:48)
at Object. (/usr/src/app/node_modules/informixdb/lib/odbc.js:35:31)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
(node:9) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The libthcli.so file appears to be installed at /usr/src/app/node_modules/informixdb/installer/onedb-odbc-driver/lib/cli/ . I have tried adding a ld.so.conf line to look at that path, but it did not change the behavior.

Any suggestions on how to fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions