最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

在CentOS 6.8安装节点

IT培训 admin 5浏览 0评论

在CentOS 6.8安装节点

我试图在CentOS使用这些指令6.8安装的NodeJS:

当我运行yum install nodejs

但我得到以下错误

Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 0:5.12.0-1nodesource.el7.centos will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: nodejs-5.12.0-1nodesource.el7.centos.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package: nodejs-5.12.0-1nodesource.el7.centos.x86_64
--> Finished Dependency Resolution
Error: Package: nodejs-5.12.0-1nodesource.el7.centos.x86_64 (nodesource)
       Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: nodejs-5.12.0-1nodesource.el7.centos.x86_64 (nodesource)
       Requires: libc.so.6(GLIBC_2.15)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
回答如下:

也许你需要安装gcc-C ++和使用yum之前安装的NodeJS。

尝试这个:

$ yum install -y gcc-c++ make

$ curl -sL https://rpm.nodesource/setup_6.x | sudo -E bash -

接着:

$ yum install nodejs

并确认其使用:

$ node -v

http://tecadmin/install-latest-nodejs-and-npm-on-centos/

在CentOS 6.8安装节点

我试图在CentOS使用这些指令6.8安装的NodeJS:

当我运行yum install nodejs

但我得到以下错误

Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 0:5.12.0-1nodesource.el7.centos will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: nodejs-5.12.0-1nodesource.el7.centos.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package: nodejs-5.12.0-1nodesource.el7.centos.x86_64
--> Finished Dependency Resolution
Error: Package: nodejs-5.12.0-1nodesource.el7.centos.x86_64 (nodesource)
       Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: nodejs-5.12.0-1nodesource.el7.centos.x86_64 (nodesource)
       Requires: libc.so.6(GLIBC_2.15)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
回答如下:

也许你需要安装gcc-C ++和使用yum之前安装的NodeJS。

尝试这个:

$ yum install -y gcc-c++ make

$ curl -sL https://rpm.nodesource/setup_6.x | sudo -E bash -

接着:

$ yum install nodejs

并确认其使用:

$ node -v

http://tecadmin/install-latest-nodejs-and-npm-on-centos/

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论