无法运行在Android手机的node.js? [英] unable to run node.js on Android phone?

查看:404
本文介绍了无法运行在Android手机的node.js?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图端口的Node.js的Andr​​oid手机 通过以下

I have been trying to port Node.js on Android phone by following the link below

<一个href="http://www.xydo.com/toolbar/20311835-node_js_on_android">http://www.xydo.com/toolbar/20311835-node_js_on_android

我创建了QEMU环境node.tar并将其发送到Ubuntu的机器吗?

I created the node.tar on QEMU environment and sent it to the ubuntu machine ?

我已经把所有的.so文件系统/ lib和节点bin文件系统/箱。 当我尝试运行它,它给节点未找到即使是present。

I have put all .so files in system/lib and node bin file in system/bin . When i try to run it it gives "Node not Found " even though it is present .

注:我已手动推文件,因为tar命令没有在Android上运行。  我使用的是root权限的设备。

NOTE : I have manually pushed the files since tar command does not work on android . I am using a rooted device .

有没有办法创造的Andr​​oid二进制文件的情况下直接对ARM环境???

Is there any way to create the binary file in android directly without the ARM environment ???

我失去了一些东西?感谢您的帮助。

Am i missing something ?Thanks for the help .

感谢您的答复。

我已经在采用Android您建议的链接安装Debian的: http://lanrat.com/android/debian

I have installed debian on Android using your suggested link: http://lanrat.com/android/debian

在这之后,当我运行在chroot环境下面的命令来能够使安装节点JS,(参考:HTTP://howtonode.org/f1932c1c56d3a50fe0c21998362d80f405229b5a/arm-chroot-fun)

After that, when I run the following commands on chroot to be able to make and install Node js, (ref:http://howtonode.org/f1932c1c56d3a50fe0c21998362d80f405229b5a/arm-chroot-fun)

$git clone http://github.com/creationix/nvm.git
$. nvm/nvm.sh              
$export JOBS=1        
$nvm install v0.4.11

我收到以下错误: /.nvm/src/node-v0.4.11/deps/v8/src/arm/macro-assembler-arm.cc:61:3:错误:#ERROR对于拇指间的工作,我们需要支持龙芯的架构 scons的: * 的[OBJ /发行/ ARM /宏汇编-arm.o]错误1 scons的:建筑终止,因为错误的。 WAF:离开目录`/.nvm/src/node-v0.4.11/build 构建失败: - >任务失败(ERR#2)​​:     {任务:libv8.a SConstruct - > libv8.a}

I get the following error: /.nvm/src/node-v0.4.11/deps/v8/src/arm/macro-assembler-arm.cc:61:3: error: #error "For thumb inter-working we require an architecture which supports blx" scons: * [obj/release/arm/macro-assembler-arm.o] Error 1 scons: building terminated because of errors. Waf: Leaving directory `/.nvm/src/node-v0.4.11/build' Build failed: -> task failed (err #2): {task: libv8.a SConstruct -> libv8.a}

另外,如果我尝试以下方法:

Alternately, if I try the following:

$ mkdir tmp
$ cd tmp
$ wget http://nodejs.org/dist/node-v0.4.11.tar.gz
$ tar -xvzf node-v0.4.11.tar.gz

补充-march =用于ARMv5T到CCFLAGS,在节点v0.4.11 / DEPS / V8 / SConstruct和

Added '-march=armv5t' to 'CCFLAGS',in node-v0.4.11/deps/v8/SConstruct and the

$ cd node-v0.4.11
$ ./configure
$ make
$ make install

安装运行没有错误,节点--version报告v0.4.11,当我尝试运行任何节点的命令,我得到所谓的终止所谓的纯虚方法不存在活跃异常中止

the installation runs without errors, node --version reports v0.4.11 and when I try to run any node commands, I get pure virtual method called terminate called without an active exception Aborted

可以请你让我知道我在做什么错在这里?

can you please let me know what i am doing wrong here?

推荐答案

有一个 NodeJS Android的端口与源,你可以得到启动和运行。

There is an Android port of NodeJS with source you can get up and running with.

这篇关于无法运行在Android手机的node.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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