ubuntu安装nodejs出现./config.gypi错误
报错的内容如下:
- xxx@xxx [/usr/local/src/node-v0.8.3]# ./configure
- { 'target_defaults': { 'cflags': [],
- 'default_configuration': 'Release',
- 'defines': [],
- 'include_dirs': [],
- 'libraries': []},
- 'variables': { 'host_arch': 'x64',
- 'node_install_npm': 'true',
- 'node_install_waf': 'true',
- 'node_prefix': '',
- 'node_shared_openssl': 'false',
- 'node_shared_v8': 'false',
- 'node_shared_zlib': 'false',
- 'node_use_dtrace': 'false',
- 'node_use_etw': 'false',
- 'node_use_openssl': 'true',
- 'target_arch': 'x64',
- 'v8_no_strict_aliasing': ,
- 'v8_use_snapshot': 'true'}}
- creating ./config.gypi
- Traceback (most recent call last):
- File "./configure", line , in <module>
- pprint.pformat(output, indent=) + "\n")
- File "./configure", line , in write
- f = open(filename, 'w+')
- IOError: [Errno ] Permission denied: './config.gypi'
解决方法:
在ubuntu中,先安装git
- ~ sudo apt-get install git
然后,从github下载nodejs源代码
- ~ git clone git://github.com/joyent/node.git
- Cloning into 'node'...
- remote: Counting objects: 100200, done.
- remote: Compressing objects: 100% (28074/28074), done.
- remote: Total 100200 (delta 78807), reused 90936 (delta 70473)
- Receiving objects: 100% (100200/100200), 61.81 MiB | 698 KiB/s, done.
- Resolving deltas: 100% (78807/78807), done.
进入node目录
- ~ cd node
- ~ pwd
- /home/conan/workspace/nodejs/node
切换最新的release的版本v0.11.2-release
- ~ git checkout v0.11.2-release
- Branch v0.11.2-release set up to track remote branch v0.11.2-release from origin.
- Switched to a new branch 'v0.11.2-release'
后面的步骤就是一样的了,进行安装
- ./configure
- make
- sudo make install
参考资料:http://blog.fens.me/nodejs-enviroment/#gsc.tab=0
ubuntu安装nodejs出现./config.gypi错误的更多相关文章
- ubuntu 安装Nodejs
ubuntu 安装Nodejs 1.在软件管理器里面安装nodejs2.由于版本很老,所以需要更新版本:先安装npm , sudo apt install npm然后用npm安装 n 命令,更新nod ...
- ubuntu 安装nodejs和git
1.安装curl sudo apt-get install curl 2.安装nodejs 和 npm curl -sL https://deb.nodesource.com/setup_8.x | ...
- ubuntu 安装nodejs/npm
安装发行稳定版 Ubuntu 默认仓库里带有Node.js,版本较旧,这并不是最新版,但是应该很稳定.执行如下命令: 1 2 sudo apt-getupdate sudo apt-getinst ...
- ubuntu 安装 nodejs
http://blog.csdn.net/caib1109/article/details/51804687 我的系统环境: Ubuntu 16.04 64位 本文内容亲测可用, 请放心食用 使用淘宝 ...
- 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用) ubuntu 安装vim 及遇到的错误处理
今天,处理完问题,闲来无事,打算在虚拟机中的Ubuntu中练习shell脚本编写. 无奈,虚拟机系统所装的只有vi,这个编辑软件对于我们来说还是比较不习惯的,所以打算安装vim.好了,闲言少叙. 安装 ...
- 【转】无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用) ubuntu 安装vim 及遇到的错误处理
今天,处理完问题,闲来无事,打算在虚拟机中的Ubuntu中练习shell脚本编写. 无奈,虚拟机系统所装的只有vi,这个编辑软件对于我们来说还是比较不习惯的,所以打算安装vim.好了,闲言少叙. 安装 ...
- Ubuntu安装nodeJS
安装环境 ubuntu12.04 64bit nodejs-v0.8.14.tar.gz Node.js是一个基于google v8+javascript的服务端编程框架.但是Node.js又不是js ...
- ubuntu安装nodejs,npm live-server
sudo apt-get install curl 先安装的是curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/in ...
- Ubuntu 安装nodejs最新版本
sudo apt update -y sudo apt install -y npm sudo npm config set registry https://registry.npm.tao ...
随机推荐
- OKVIS 代码框架
1. okvis_app_synchronous.cpp 在此文件中 okvis 对象为 okvis_estimator,是类 okvis::ThreadedKFVio 的实例化对象. 数据输入接口是 ...
- 2018-2019-2 网络对抗技术 20165230 Exp4 恶意代码分析
目录 1.实验内容 2.实验过程 任务一:系统运行监控 每隔五分钟记录自己的电脑,并进行分析 安装配置sysinternals里的sysmon工具 任务二:恶意软件分析 静态分析工具 ViruScan ...
- 字符驱动之二操作方法(struct file_operations)【转】
转自:http://blog.chinaunix.net/uid-26837113-id-3157515.html 从上一篇我们看到了字符驱动的三个重要结构,那我现在跟大家详细的说说 struct f ...
- springboot系列十五、springboot集成PageHelper
一.介绍 项目中经常会遇到分页,PageHelper为我们解决了这个问题.本质上实现了Mybatis的拦截器,作了分页处理. 二.配置PageHelper 1.引入依赖 pagehelper-spri ...
- 调用链系列一、Zipkin架构介绍、Springboot集承(springmvc,HttpClient)调用链跟踪、Zipkin UI详解
1.Zipkin是什么 Zipkin分布式跟踪系统:它可以帮助收集时间数据,解决在microservice架构下的延迟问题:它管理这些数据的收集和查找:Zipkin的设计是基于谷歌的Google Da ...
- insmod 时报错“Unknown symbol”问题的解决
在加载驱动模块时报错: “ Unknown symbol CFG80211_SupBandReInit (err 0)” 查看了内核代码以及加载上的symbol(命令为 cat /proc/kalls ...
- MFC CStdioFile
读Text文件 void CNWiReworkDlg::ReadHexFile() { using namespace std; CStdioFile file; file.Open(hexFileP ...
- sqlserver2008r2通过发布和订阅的方式进行数据库同步
发布服务器:192.168.8.16 订阅服务器:192.168.8.92 发布服务器配置: 选择需要发布的数据库,这里是Attendace_new 订阅服务器配置: 在订阅服务器上新建一个数据库:d ...
- PYTHON-UDP
1.TCP 和 UDP 发送数据时的流程 ***** 解释 为何TCP是可靠的 是因为发送数据后必须收到确认包 2. UDP的模板代码 ***** 1.UDP协议: (数据报协议) 特点: 无连接 优 ...
- vue系列之webpack
webpack 地址: https://github.com/vuejs-templates/webpack 注意里面的template,用webpack创建的项目,结构就是这样的