构buildNode.js给出错误:Node.jsconfiguration错误:找不到可接受的C编译器

在尝试使用Ubuntu 14.04系统交叉编译ARM(Raspberry Pi B)的Node.js v0.10.30时,遇到错误消息:

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. 

我该如何解决这个问题并成功编译node.js?

在新的Ubuntu 14.04 x64安装上使用的命令:

 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 

我尝试在我的节点目录中运行./configure时遇到了这个错误。 以下是我在ubuntu服务器上运行以获取节点的命令:

  1. cd ..(回到创build节点目录的目录)
  2. sudo apt-get install build-essential
  3. cd节点/
  4. 。/configuration
  5. make(对于像我这样的相对新手来说,这一步需要一段时间才能完成,所以如果这种情况发生的话,不要太过分)
  6. sudo make install

然后尝试从它的目录中运行你的节点文件。 作为一个小的旁边,我也得到了以下错误时,做到这一点:

错误:ENOENT,stat'/ home / ubuntu / local'处于Error(native)

为了解决这个问题,我只是跑了:sudo npm install -g npm