Git Product home page Git Product logo

Comments (2)

bimalkjha avatar bimalkjha commented on July 29, 2024

@VinnyV88 The output of npm i command under node_modules/ibm_db directory displays the Make error. make version is empty. Make is required to compile native code and generate bindings file.
Please install make in your system and make sure commands make --version and gcc --version both are working without any error. Then rerun the npm i command under ibm_db directory again. It should fix the issue.
We have clearly documented the requirement of make and gcc for non-windows systems in the documentation of ibm_db as prerequisite here: https://github.com/ibmdb/node-ibm_db?tab=readme-ov-file#prerequisite
Thanks.

from node-ibm_db.

VinnyV88 avatar VinnyV88 commented on July 29, 2024

Thank you, @bimalkjha for the reply. I did go through the prerequisites and installed the required software.

I did end up resolving the issue, but I wanted to share the process I went through in case someone else runs into the same issue I was having.

To confirm, I tried to install Make again:

vinnyv88@ViViD-Laptop:~$ sudo apt install make
[sudo] password for vinnyv88:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
make is already the newest version (4.3-4.1build1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

But, the Make error was suspicious so I looked more into it. The make --version command said I needed to run make init. So I did and then make --version returned 0.8.1.

vinnyv88@ViViD-Laptop:~$ make --version
make ✖ ERR  Missing Makefile / Bakefile
make ℹ info Run "make init" to generate a Makefile.
vinnyv88@ViViD-Laptop:~$ make init
make ℹ info Running default template in  /home/vinnyv88
make ℹ info .npmignore    -> ./.npmignore
make ℹ info .eslintignore -> ./.eslintignore
make ℹ info Makefile      -> ./Makefile
make ℹ info package.json  -> ./package.json
make ℹ info Build success in 14ms
vinnyv88@ViViD-Laptop:~$ make --version
0.8.1

That didn't match the 4.3-4.1build1 returned when I ran the make install earlier. So, after more research, I found this article: https://askubuntu.com/questions/1146289/unable-to-run-makefile-targets-in-windows-subsystem-for-linux-ubuntu-18-04.

Apparently I had an NPM Make package installed which was blocking GNU Make from running. so I ran npm uninstall make -g to remove the NPM package and everything worked from there.

Thanks again, have a great day!

from node-ibm_db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.