Ubuntu 编译安装Node.js到node.js网站下载最新压缩包,然后解压到/opt目录下。
Node.js 的详细介绍:请点这里
Node.js 的下载地址:请点这里安装GCC后,运行./configureroot@html5viewer1:/opt/node-v0.10.20# ./configure
{ "target_defaults": { "cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []},
"variables": { "clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"node_install_npm": "true",
"node_prefix": "",
"node_shared_cares": "false",
"node_shared_http_parser": "false",
"node_shared_libuv": "false",
"node_shared_openssl": "false",
"node_shared_v8": "false",
"node_shared_zlib": "false",
"node_tag": "",
"node_unsafe_optimizations": 0,
"node_use_dtrace": "false",
"node_use_etw": "false",
"node_use_openssl": "true",
"node_use_perfctr": "false",
"node_use_systemtap": "false",
"python": "/usr/bin/python",
"target_arch": "x64",
"v8_enable_gdbjit": 0,
"v8_no_strict_aliasing": 1,
"v8_use_snapshot": "true"}}
creating ./config.gypi
creating ./config.mk
root@html5viewer1:/opt/然后开始编译,成功后安装,我都是在root用户下运行这些命令。make
...
make install最后node可执行程序安装在/usr/local/bin目录下,npm安装在/usr/local/lib/node_modules目录下可以运行make test进行测试。
推荐阅读:Node.Js入门[PDF+相关代码] http://www.linuxidc.com/Linux/2013-06/85462.htmNode.js安装与配置 http://www.linuxidc.com/Linux/2013-05/84836.htm更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2在Ubuntu中安装Cinnamon 1.8Linux备份ifcfg-eth0文件导致的网络故障问题相关资讯 Node.js Node.js安装 Ubuntu Node.js
- Node.js v7 Beta版引入citgm (今 10:08)
- 基于Docker部署Node.js应用环境 (09月26日)
- Linux下Node.js安装过程详解 (07月26日)
| - Node.js HTTP Web 服务器代码 (09月26日)
- Ubuntu 16.04 64位 搭建 Node.js (09月25日)
- 在CentOS下安装Node.js (07月12日)
|
本文评论 查看全部评论 (0)