报错的内容如下:

  1. xxx@xxx [/usr/local/src/node-v0.8.3]# ./configure
  2. { 'target_defaults': { 'cflags': [],
  3. 'default_configuration': 'Release',
  4. 'defines': [],
  5. 'include_dirs': [],
  6. 'libraries': []},
  7. 'variables': { 'host_arch': 'x64',
  8. 'node_install_npm': 'true',
  9. 'node_install_waf': 'true',
  10. 'node_prefix': '',
  11. 'node_shared_openssl': 'false',
  12. 'node_shared_v8': 'false',
  13. 'node_shared_zlib': 'false',
  14. 'node_use_dtrace': 'false',
  15. 'node_use_etw': 'false',
  16. 'node_use_openssl': 'true',
  17. 'target_arch': 'x64',
  18. 'v8_no_strict_aliasing': ,
  19. 'v8_use_snapshot': 'true'}}
  20. creating ./config.gypi
  21. Traceback (most recent call last):
  22. File "./configure", line , in <module>
  23. pprint.pformat(output, indent=) + "\n")
  24. File "./configure", line , in write
  25. f = open(filename, 'w+')
  26. IOError: [Errno ] Permission denied: './config.gypi'

解决方法:

在ubuntu中,先安装git

  1. ~ sudo apt-get install git

然后,从github下载nodejs源代码

  1. ~ git clone git://github.com/joyent/node.git
  2. Cloning into 'node'...
  3. remote: Counting objects: 100200, done.
  4. remote: Compressing objects: 100% (28074/28074), done.
  5. remote: Total 100200 (delta 78807), reused 90936 (delta 70473)
  6. Receiving objects: 100% (100200/100200), 61.81 MiB | 698 KiB/s, done.
  7. Resolving deltas: 100% (78807/78807), done.

进入node目录

  1. ~ cd node
  2. ~ pwd
  3. /home/conan/workspace/nodejs/node

  

切换最新的release的版本v0.11.2-release

  1. ~ git checkout v0.11.2-release
  2. Branch v0.11.2-release set up to track remote branch v0.11.2-release from origin.
  3. Switched to a new branch 'v0.11.2-release'

  

后面的步骤就是一样的了,进行安装

  1. ./configure
  2. make
  3. sudo make install

  

参考资料:http://blog.fens.me/nodejs-enviroment/#gsc.tab=0

ubuntu安装nodejs出现./config.gypi错误的更多相关文章

  1. ubuntu 安装Nodejs

    ubuntu 安装Nodejs 1.在软件管理器里面安装nodejs2.由于版本很老,所以需要更新版本:先安装npm , sudo apt install npm然后用npm安装 n 命令,更新nod ...

  2. ubuntu 安装nodejs和git

    1.安装curl sudo apt-get install curl 2.安装nodejs 和 npm curl -sL https://deb.nodesource.com/setup_8.x | ...

  3. ubuntu 安装nodejs/npm

    安装发行稳定版 Ubuntu 默认仓库里带有Node.js,版本较旧,这并不是最新版,但是应该很稳定.执行如下命令:   1 2 sudo apt-getupdate sudo apt-getinst ...

  4. ubuntu 安装 nodejs

    http://blog.csdn.net/caib1109/article/details/51804687 我的系统环境: Ubuntu 16.04 64位 本文内容亲测可用, 请放心食用 使用淘宝 ...

  5. 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用) ubuntu 安装vim 及遇到的错误处理

    今天,处理完问题,闲来无事,打算在虚拟机中的Ubuntu中练习shell脚本编写. 无奈,虚拟机系统所装的只有vi,这个编辑软件对于我们来说还是比较不习惯的,所以打算安装vim.好了,闲言少叙. 安装 ...

  6. 【转】无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用) ubuntu 安装vim 及遇到的错误处理

    今天,处理完问题,闲来无事,打算在虚拟机中的Ubuntu中练习shell脚本编写. 无奈,虚拟机系统所装的只有vi,这个编辑软件对于我们来说还是比较不习惯的,所以打算安装vim.好了,闲言少叙. 安装 ...

  7. Ubuntu安装nodeJS

    安装环境 ubuntu12.04 64bit nodejs-v0.8.14.tar.gz Node.js是一个基于google v8+javascript的服务端编程框架.但是Node.js又不是js ...

  8. ubuntu安装nodejs,npm live-server

    sudo apt-get install curl 先安装的是curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/in ...

  9. Ubuntu 安装nodejs最新版本

    sudo apt update -y   sudo apt install -y npm   sudo npm config set registry https://registry.npm.tao ...

随机推荐

  1. OKVIS 代码框架

    1. okvis_app_synchronous.cpp 在此文件中 okvis 对象为 okvis_estimator,是类 okvis::ThreadedKFVio 的实例化对象. 数据输入接口是 ...

  2. 2018-2019-2 网络对抗技术 20165230 Exp4 恶意代码分析

    目录 1.实验内容 2.实验过程 任务一:系统运行监控 每隔五分钟记录自己的电脑,并进行分析 安装配置sysinternals里的sysmon工具 任务二:恶意软件分析 静态分析工具 ViruScan ...

  3. 字符驱动之二操作方法(struct file_operations)【转】

    转自:http://blog.chinaunix.net/uid-26837113-id-3157515.html 从上一篇我们看到了字符驱动的三个重要结构,那我现在跟大家详细的说说 struct f ...

  4. springboot系列十五、springboot集成PageHelper

    一.介绍 项目中经常会遇到分页,PageHelper为我们解决了这个问题.本质上实现了Mybatis的拦截器,作了分页处理. 二.配置PageHelper 1.引入依赖 pagehelper-spri ...

  5. 调用链系列一、Zipkin架构介绍、Springboot集承(springmvc,HttpClient)调用链跟踪、Zipkin UI详解

    1.Zipkin是什么 Zipkin分布式跟踪系统:它可以帮助收集时间数据,解决在microservice架构下的延迟问题:它管理这些数据的收集和查找:Zipkin的设计是基于谷歌的Google Da ...

  6. insmod 时报错“Unknown symbol”问题的解决

    在加载驱动模块时报错: “ Unknown symbol CFG80211_SupBandReInit (err 0)” 查看了内核代码以及加载上的symbol(命令为 cat /proc/kalls ...

  7. MFC CStdioFile

    读Text文件 void CNWiReworkDlg::ReadHexFile() { using namespace std; CStdioFile file; file.Open(hexFileP ...

  8. sqlserver2008r2通过发布和订阅的方式进行数据库同步

    发布服务器:192.168.8.16 订阅服务器:192.168.8.92 发布服务器配置: 选择需要发布的数据库,这里是Attendace_new 订阅服务器配置: 在订阅服务器上新建一个数据库:d ...

  9. PYTHON-UDP

    1.TCP 和 UDP 发送数据时的流程 ***** 解释 为何TCP是可靠的 是因为发送数据后必须收到确认包 2. UDP的模板代码 ***** 1.UDP协议: (数据报协议) 特点: 无连接 优 ...

  10. vue系列之webpack

    webpack 地址: https://github.com/vuejs-templates/webpack 注意里面的template,用webpack创建的项目,结构就是这样的