Reputation: 1037
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
Upvotes: 4
Views: 15951
Reputation: 592
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.
Upvotes: 0
Reputation: 9094
You are maybe missing one or more of the compilation dependencies
sudo zypper install make gcc gcc-c++ glibc-devel
Upvotes: 0
Reputation: 53
I had same problem. I ran those commands in external storage. Move them to your home and follow commands.
Upvotes: 0
Reputation: 31
I was able to get around this error by by :
./configure --without-snapshot
before the
make & make install
Upvotes: 3