Building Node.js gives error: Node.js configure error: No acceptable C compiler found
I ran into this error as well after trying to run ./configure in my node directory. Here are the commands I ran to get node working for me on an ubuntu server:
- cd .. (back to directory where node directory was created)
- sudo apt-get install build-essential
- cd node/
- ./configure
- make (For relative newbies, like me, this step took awhile to complete, so don't freak out too much if that happens for you)
- sudo make install
Then try running your node file from it's directory. As a small aside, I also got the following error when doing that:
Error: ENOENT, stat '/home/ubuntu/local' at Error (native)
To fix that, I just ran: sudo npm install -g npm
Nyxynyx
Hello :) I have no formal education in programming :( And I need your help! :D These days its web development: Node.js Meteor.js Python PHP Laravel Javascript / jQuery d3.js MySQL PostgreSQL MongoDB PostGIS
Updated on June 16, 2022Comments
-
Nyxynyx almost 2 years
While trying to use a Ubuntu 14.04 system to cross compile Node.js v0.10.30 for ARM (Raspberry Pi B), I'm experiencing an error message:
Node.js configure error: No acceptable C compiler found! Please make sure you have a C compiler installed on your system and/or consider adjusting the CC environment variable if you installed it in a non-standard prefix.
How should I fix this problem and compile node.js successfully?
Commands used on a fresh Ubuntu 14.04 x64 installation:
sudo apt-get install gcc g++ git git clone git://github.com/joyent/node.git cd node git checkout v0.10.30-release export AR=arm-unknown-linux-gnueabi-ar export CC=arm-unknown-linux-gnueabi-gcc export CXX=arm-unknown-linux-gnueabi-g++ export LINK=arm-unknown-linux-gnueabi-g++ ./configure --without-snapshot --dest-cpu=arm --dest-os=linux
-
shomik naik over 7 yearsI guess it should be : sudo apt-get install -g npm
-
cbloss793 over 7 yearsThanks for the warning about step 5 taking awhile! Cuz it did and I was alittle scared. :)