sqlanywhere / node-sqlanywhere

SAP SQL Anywhere Database Client for Node
Apache License 2.0
38 stars 36 forks source link

Error when executing node-gyp build #50

Closed mauriciocarvalho01 closed 1 year ago

mauriciocarvalho01 commented 1 year ago

I have this Dockerfile

`Dockerfile

FROM node:latest

WORKDIR /usr/app

COPY ./package*.json ./

RUN apt-get update && apt-get install -y build-essential python

RUN npm install -g node-gyp

RUN npm install sqlanywhere --save

RUN npm install

RUN npm install pm2 -g

COPY . .

ENV DOCKERIZE_VERSION v0.6.1 RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz

`

It tells me the error below

`#0 14.80 npm ERR! code 255

0 14.80 npm ERR! path /usr/app/node_modules/sqlanywhere

0 14.80 npm ERR! command failed

0 14.80 npm ERR! command sh -c node build.js

0 14.80 npm ERR! Looking for binaries...

0 14.80 npm ERR! Trying to build binaries

0 14.80 npm ERR! Error when executing node-gyp build

0 14.80 npm ERR! Make sure a C++ tool chain is installed and in the PATH

0 14.80

0 14.80 npm ERR! A complete log of this run can be found in:

0 14.80 npm ERR! /root/.npm/_logs/2023-03-13T21_05_53_790Z-debug-0.log`

mauriciocarvalho01 commented 1 year ago

https://github.com/sqlanywhere/node-sqlanywhere/issues/49