不能建立节点上的SheevaPlug(用于ARMv5)与Debian的挤压 [英] Cannot build node on Sheevaplug (armv5t) with Debian squeeze

查看:255
本文介绍了不能建立节点上的SheevaPlug(用于ARMv5)与Debian的挤压的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在已经尝试建立在/节点(0.5.1)的的SheevaPlug(用于ARMv5)运行Debian(6.0.2版本)挤压的方法有多种,但总是与......结束了

I have now tried several ways of building node (version 0.5.1) on/for a Sheevaplug (armv5t) running Debian (version 6.0.2) squeeze but always ends up with...

$ node
Illegal instruction

......在所有的情况下,曾经我能得到它来编译。

... in all cases where ever I could get it to compile.

我试图遵循以下几个导游(即使在各种组合):

I have tried to follow several guides (even in various combinations):

  • Adding -march=armv5t to deps/v8/SConstruct ~line 130 (http://code.google.com/p/v8/issues/detail?id=836)
  • Removed if statement from wscript line 533 and replaced with snapshot = "" (http://comments.gmane.org/gmane.comp.lang.javascript.nodejs/10822)
  • Build on other system with scratchbox2 (http://www.plugcomputer.org/plugwiki/index.php/Scratchbox2_based_cross_compiling)
  • Building v8 separately and then referencing it to node when compiling, guide is for other arm so I had to try and change the parameters to armv5t (http://coolaj86.info/articles/debugging-v8-and-node-js-on-arm.html)

现在我觉得卡住,几个人似乎已经成功地建立了用于ARMv5节点,但也许这是不同版本的节点和V8的不同。

Now I feel stuck, several people seem to have succeeded in building node for armv5t but maybe it's different for different versions of node and v8.

我怎么能continiue努力?我会很乐意测试任何建议。

How can I continiue trying? I will happily test any suggestions.

推荐答案

使用节点的稳定的0.4.10版本上的SheevaPlug以下步骤解决它。

Using the stable version 0.4.10 of node solved it with the following steps on the Sheevaplug.

$ sudo apt-get update
$ sudo apt-get install scons make libssl

(可能需要多几个包)

(Might be a few more packages needed)

$ cd /home/user/source
$ wget http://nodejs.org/dist/node-v0.4.10.tar.gz
$ tar zxvf node-v0.4.10.tar.gz
$ cd node-v0.4.10
$ nano deps/v8/SConstruct

在打开的文件DEPS更改〜139线/ V8 / SConstruct

Change ~line 139 in opened file deps/v8/SConstruct

      'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS'],

      'CCFLAGS':      ['$DIALECTFLAGS', '$WARNINGFLAGS', '-march=armv5t'],

保存文件并退出nano的,Ctrl + O键输入Ctrl + X

Save file and exit nano with, ctrl+o enter ctrl+x

$ ./configure

检查有关丢失包的投诉。

Check for complaints about missing packages

$ make

需要一段时间〜40分钟,我的SheevaPlug,构建测试运行节点后

Takes a while ~40 minutes on my Sheevaplug, after build test running node with

$ ./node

如果节点壳开始确定,退出程序,并运行

If node shell started ok, exit shell and run

$ sudo make install

这篇关于不能建立节点上的SheevaPlug(用于ARMv5)与Debian的挤压的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆