title: node-tflite - GLIBC_2.27 not found (required by libtensorflowlite_c.so)
body: <p>I am trying to deploy a Node.js server to IBM cloud (Linux) using <code>node-tflite</code> as a dependency, and get the following error preventing the server from starting:</p>
  <pre><code>un 9 17:04:57 Code Engine deployment-0001 /usr/src/app/node_modules/bindings/bindings.js:121
          throw e;
          ^ 
  Jun 9 17:04:57 Code Engine deployment-0001 Error: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /usr/src/app/node_modules/node-tflite/build/Release/libtensorflowlite_c.so)
      at Object.Module._extensions..node (internal/modules/cjs/loader.js:1127:18)
      at Module.load (internal/modules/cjs/loader.js:933:32)
      at Function.Module._load (internal/modules/cjs/loader.js:774:14)
      at Module.require (internal/modules/cjs/loader.js:957:19)
      at require (internal/modules/cjs/helpers.js:88:18)
      at bindings (/usr/src/app/node_modules/bindings/bindings.js:112:48)
      at Object.&lt;anonymous&gt; (/usr/src/app/node_modules/node-tflite/index.js:4:32)
      at Module._compile (internal/modules/cjs/loader.js:1068:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
      at Module.load (internal/modules/cjs/loader.js:933:32) 
  Jun 9 17:04:57 Code Engine deployment-0001 npm ERR! code ELIFECYCLE 
  Jun 9 17:04:57 Code Engine deployment-0001 npm ERR! errno 1 
  Jun 9 17:04:57 Code Engine deployment-0001 npm ERR! sp-streamer@1.0.0 start: `nodemon index.js || node index.js` 
  Jun 9 17:04:57 Code Engine deployment-0001 npm ERR! Exit status 1 
  Jun 9 17:04:57 Code Engine deployment-0001 npm ERR!  
  Jun 9 17:04:57 Code Engine deployment-0001 npm ERR! Failed at the sp-streamer@1.0.0 start script. 
  Jun 9 17:04:57 Code Engine deployment-0001 npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 
  Jun 9 17:04:57 Code Engine deployment-0001 aggressive probe error (failed 202 times): dial tcp 127.0.0.1:9000: connect: connection refused
  </code></pre>
  <p>This is what my <code>package.json</code> looks like:</p>
  <pre><code>{
    &quot;name&quot;: &quot;sp-streamer&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;nodemon index.js || node index.js&quot;
    },
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;csv-parser&quot;: &quot;^3.0.0&quot;,
      &quot;dotenv&quot;: &quot;^10.0.0&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;fs&quot;: &quot;^0.0.1-security&quot;,
      &quot;mathjs&quot;: &quot;^9.4.2&quot;,
      &quot;node-tflite&quot;: &quot;^0.0.2&quot;,
      &quot;os-utils&quot;: &quot;^0.0.14&quot;,
      &quot;socket.io-client&quot;: &quot;^4.1.2&quot;
    }
  }
  </code></pre>
  <p>And I have a <code>dockerfile</code> as well:</p>
  <pre><code>FROM node:14
  
  WORKDIR /usr/src/app
  
  COPY package*.json ./
  RUN npm install
  COPY . .
  
  EXPOSE 9000
  CMD [ &quot;npm&quot;, &quot;start&quot; ]
  </code></pre>
  <p>And the following is a <code>.gitlab-ci.yml</code>:</p>
  <pre><code>stages:
    - build
  docker-build:
    image: docker:latest
    stage: build
    services:
      - docker:dind
    before_script:
      - docker login -u &quot;$CI_REGISTRY_USER&quot; -p &quot;$CI_REGISTRY_PASSWORD&quot; $CI_REGISTRY
    script:
      - docker build --pull -t &quot;$CI_REGISTRY_IMAGE${tag}&quot; .
      - docker push &quot;$CI_REGISTRY_IMAGE${tag}&quot;
  </code></pre>
  <p>How can I get the missing <code>/lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.27 not found</code>?</p>