如何运行在Android上我的node.js的项目? [英] How to run my node.js project on android?

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

问题描述

我有我的Andr​​oid平板电脑工作PHP的服务器,所以我希望它可以以某种方式来运行nodejs也。该人士$ ​​C $ c是可以在GitHub上,而且它可以在Linux上构建还可以,但我实在无法理解,怎样建设社会主义。

I have a working php server on my android tablet, so I hope it's available somehow to run nodejs also. The source code is available on github, and it can be build on linux also, but I can't really understand, how to build it.

在此先感谢,

推荐答案

对于构建的指令从网站缺少的:

The instructions for a build are missing from the website:

  1. 下载吧:

  1. Download it:

wget的http://nodejs.org/dist/v0.8.1/node-v0.8.1.tar.gz

把它解压:

焦油xzf节点v0.8.1.tar.gz

进入解压后的文件夹:

CD节点v0.8.1 /

运行

./配置&功放;&安培; &功放;&安培; 须藤使安装

./configure && make && sudo make install

您可能需要安装一些依赖像 G ++ 建立必要卷曲的libssl-dev的第一。

You might need to install some dependencies like g++ or build-essential, curl and libssl-dev first.

还有一个包装的Andr​​oid端口,但它似乎并不积极编程和维持。

There is also a packaged Android port but it doesn't seem to be actively mantained.

修改:很明显,你需要根据你的设备来修改一些编译选项。谷歌搜索节点Android的+你的模型应该给你更多的细节。下面是他们为G1和Galaxy S:<一href="http://mitchtech.net/node-js-on-android-linux/">http://mitchtech.net/node-js-on-android-linux/

edit: apparently you need to modify some build options according to your device. A google search for "node android" + your model should give you more details. Here are they for the G1 and Galaxy S: http://mitchtech.net/node-js-on-android-linux/

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

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