Nyx*_*nyx 5 compiler-construction arm cross-compiling node.js raspberry-pi
在尝试使用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.
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题并成功编译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
Run Code Online (Sandbox Code Playgroud)
小智 8
尝试在我的节点目录中运行./configure后,我也遇到了这个错误.以下是我在ubuntu服务器上运行以获取节点的命令:
然后尝试从它的目录运行您的节点文件.作为一小部分,我这样做时也遇到以下错误:
错误:ENOENT,stat'/ home/ubuntu/local'出错(本机)
为了解决这个问题,我刚刚运行:sudo npm install -g npm
归档时间: |
|
查看次数: |
8344 次 |
最近记录: |