install node js error in "make" command: "recipe for target 'node' failed"

15.6k Views Asked by At

I'm trying to install node js on my linux. I installed all the prerequisites correctly. and I run ./configure correctly. the problem is in "make" command and "make install" command

make

make install

-

here is what I received in the terminal after "make" command:

/usr/bin/python tools/gyp_node.py -f make
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory '/home/islamassi/programming files/phoneGap/node-     v0.10.30/node/out'
Makefile:271: *** mixed implicit and normal rules.  Stop.
make[1]: Leaving directory '/home/islamassi/programming files/phoneGap/node-   v0.10.30/node/out'
Makefile:45: recipe for target 'node' failed
make: *** [node] Error 2

-

and this after "make install" command:

make -C out BUILDTYPE=Release V=1
make[1]: Entering directory '/home/islamassi/programming files/phoneGap/node-v0.10.30/node/out'
Makefile:271: *** mixed implicit and normal rules.  Stop.
make[1]: Leaving directory '/home/islamassi/programming files/phoneGap/node-   v0.10.30/node/out'
Makefile:45: recipe for target 'node' failed
make: *** [node] Error 2
4

There are 4 best solutions below

0
On

I had a similar error so I installed g++ that seemed to fix the issue for me.

sudo apt-get install g++

Then just run:

make

again.. and then:

sudo make install

Then you can check if node is installed with:

node -v

and you should see the version of node your running.

0
On

You are maybe missing one or more of the compilation dependencies

sudo zypper install make gcc gcc-c++ glibc-devel
0
On

I had same problem. I ran those commands in external storage. Move them to your home and follow commands.

0
On

I was able to get around this error by by :

./configure --without-snapshot

before the

make & make install