安装nodejs时提示Leaving directory
在按照标准的编译命令./configure =>make =>make install
在make的时候发生错误:
../deps/v8/src/base/platform/mutex.h:: error: expected ‘)’ before ‘const’
../deps/v8/src/base/platform/mutex.h:: error: ‘void operator=(const LockGuard&)’ must be a nonstatic member function
../deps/v8/src/base/platform/mutex.h:: error: expected declaration before ‘}’ token
make[]: *** [/home/tmp/environmental/node-v4.2.3/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] Error
make[]: Leaving directory `/home/tmp/environmental/node-v4.2.3/out'
make: *** [node] Error
百度了半天,一直无法解决,后来听群里的网友说,可以直接下载并使用源码包中的编译好的文件:【http://nodejs.cn/ 】=》【http://nodejs.cn/download/ 】=》下载地址【https://nodejs.org/dist/v5.1.1/node-v5.1.1.tar.gz 】
自己不进行node的编译,直接使用源码包中编译后的软件包,
[root@MyServer environmental]# cd node-v5.2.0-linux-x64/
[root@MyServer node-v5.2.0-linux-x64]# ll
total
drwxrwxr-x mysql mysql Dec : bin
-rw-rw-r-- mysql mysql Dec : CHANGELOG.md
drwxrwxr-x mysql mysql Dec : include
drwxrwxr-x mysql mysql Dec : lib
-rw-rw-r-- mysql mysql Dec : LICENSE
-rw-rw-r-- mysql mysql Dec : README.md
drwxrwxr-x mysql mysql Dec : share
[root@MyServer node-v5.2.0-linux-x64]# cd bin/
[root@MyServer bin]# ll
total
-rwxrwxr-x mysql mysql Dec : node
lrwxrwxrwx mysql mysql Dec : npm -> ../lib/node_modules/npm/bin/npm-cli.js
进入编译后的目录后,进行一些软连接配置,即可全局使用node/npm命令:
[root@MyServer ~]# ln -s /home/tmp/environmental/node-v5.2.0-linux-x64/bin/node /usr/local/bin/node
[root@MyServer ~]# ln -s /home/tmp/environmental/node-v5.2.0-linux-x64/bin/npm /usr/local/bin/npm
此时使用命令 node -v 正常运行。over~
安装nodejs的三大方法:http://www.xitongzhijia.net/xtjc/20150202/36680.html
安装nodejs时提示Leaving directory的更多相关文章
- centos 在安装YouCompleteMe时提示 Fatal : pyconfig.h No such file or directory
问题:centos 在安装YouCompleteMe时提示 Fatal : pyconfig.h No such file or directory 解决:安装python-devel yum ins ...
- ubuntu安装vim时提示 没有可用的软件包 vim,但是它被其它的软件包引用了 解决办法
ubuntu安装vim时提示 没有可用的软件包 vim-gtk3,但是它被其它的软件包引用了 解决办法 本人在ubuntu系统安装vim 输入 sudo apt-get install vim 提示 ...
- Loadrunner:安装LR11时提示缺少vc2005_sp1_with_atl_fix_redist
[问题现象] 安装LR11时提示缺少vc2005_sp1_with_atl_fix_redist: [解决办法] 手动安装缺少的组件,LR安装包中已自带该组件,为何不自动捕捉异常去获取该自带的组件去安 ...
- 安装nodejs时:The error code is 2503.
在windows下安装nodejs时老是报错: The installer has encountered an unexpected error installing . 有三种方法可以尝试: &q ...
- 部署testlink报错,安装wampserver时提示丢失MSVCR110.dll
安装wampserver时提示丢失MSVCR110.dll(在windows server上可用)对于32位系统,安装Wampserver 后启动的时候提示系统错误:MSVCR110.dll丢失.于是 ...
- win10安装nodejs遇到提示错误代码2503怎么办
我们在安装某个软件的时候,最闹心的就是遇到提示安装失败或错误,比如win10系统在安装nodejs遇到提示错误代码2503,遇见这个问题也不要慌张,今天小编就来告诉大家怎么解决这个问题. 1.打开智能 ...
- sql server 2008 express 安装的时提示“重启计算机失败"
sql server 2008 express 安装的时提示"重启计算机失败" 解决办法: 打开注册表编辑器(regedit.exe),在HKEY_LOCAL_MACHINE\SY ...
- ubuntu安装nginx时提示error: the HTTP rewrite module requires the PCRE library
ubuntu安装nginx时提示error: the HTTP rewrite module requires the PCRE library 须要安装pcre包. sudo apt-get upd ...
- 使用WinNTSetup安装win10时提示efi part有红叉(win10安装UEFI系统安装)
1.装载ImDisk虚拟磁盘 2.格式化硬盘 *格式化时注意”创建新ESP分区 3.使用 WinNTSetup 选择win10安装程序 *1. “BOOTMGR PBR "后有感叹号不用管, ...
随机推荐
- IDEA 在SVN上更新代码错误: Error:Server SSL certificate rejected
在IDEA中更新代码到SVN中 ,出现了 Error:Server SSL certificate rejected ---服务器的SSL证书 的错误 之前在网上有找过一些相关的做法,但是 ...
- git的安装方法
下载:https://git-scm.com/downloads
- 在vue中使用swiper4.x
需求 :实现一个左右两边有边距的轮播图vue+swiper4 轮播图左右两边含有上一张和下一张的一部分 先安装swiper: 1.npm install swiper 安装swiper 2.在入口 ...
- Codeforces Round #600 (Div. 2) D。 Harmonious Graph
#include<iostream> using namespace std ; ; int p[N]; int cnt; int find(int x) { if(p[x]!=x) p[ ...
- 题解【洛谷P3478】[POI2008]STA-Station
题面 设\(dp_i\)表示以\(i\)为根节点时所有节点的深度之和. 首先以 \(1\) 为根求出所有点深度之和\(dp_1\),并预处理每个点的子树大小. 设 \(v\) 是 \(u\) 的孩子, ...
- 杭电oj 2072————统计单词数(java)
problem:统计单词数 思路:利用HashMap的特性——不能反复存储同一个键得数据,所以可以保证map里边儿的元素都是不重复的,存储完毕之后直接输出size就好了 注意事项: 1.利用strin ...
- visual env VS conda environment of python
1. There's two types of python environment in pycharm: virtualenv Environment conda environment For ...
- html5的placeholder属性(IE如何兼容placeholder属性)
界面UI推荐 jquery html5 实现placeholder兼容password IE6 html5的placeholder属性(IE如何兼容placeholder属性) 2013-01-05 ...
- Python—网络通信编程之tcp非阻塞通信(socketserver)
服务端代码 import socketserver # 定义一个类 class MyServer(socketserver.BaseRequestHandler): # 如果handle方法出现报错, ...
- css实现移动端滚动条隐藏仍然可以滚动内容
.g-panel { height: calc(100% - 112px); overflow: auto; &::-webkit-scrollbar { display: none; // ...