Recently built a new Ubuntu 10 VM to test out a few Node.js ideas. While support for windows is improving, it just isn’t ready for prime time. I’m very much a linux noob so I just tried following the various guides out there.
I’ve followed these steps successfully recently so it came as a surprise when running:
1: neil@ubuntu:~$ cd node 2: neil@ubuntu:~/node$ ./configureresulted in:
1: neil@ubuntu:~/node$ ./configure: 4: autoconf: not foundNow trying to brute my way through the install I pushed on and ran:
1: neil@ubuntu:~/node$ make 2: neil@ubuntu:~/node$ sudo make installHowever then running:
1: neil@ubuntu:~/node$ nodegave me the oh so informative:
1: The program 'node' is currently not installed. You can install it by typing:
2: sudo apt-get install nodeDO NOT RUN sudo apt-get install node
As this will install the node module. Confused? Well node != nodejs. node is apparently a Amateur Packet Radio Node program. Not what we want unless you’re into ham radios… Attempting to run node will usually result in something along the lines of:
1: axconfig: port 1 not active 2: axconfig: port 2 not active
How to fix all this? Well thanks to stack-overflow and the nodejs group at least I knew where to start:
First remove the node package:
1: sudo apt-get remove --purge node 2: sudo apt-get clean
And then run the following to get a stable version of nodeJS running (e.g. v0.2.4):
1: sudo apt-get install build-essential 2: cd node 3: git checkout v0.2.4 4: ./configure 5: make 6: sudo make install
You should now be able to run nodeJS scripts. YMMV
Thank you. The same things in the same order happened with me. But now I know what to do. Again thanks to you
ReplyDeleteThanks, I'm looking on this Node != Nodejs !!
ReplyDeletethanks man.You saved my day.I am finally able to run "Helloworld"
ReplyDeleteLOL! I am happy that I am not the first one to make this mistake, and I am happy that you wrote this so that it only cost me 3 minutes. :) Thanks!
ReplyDelete