node.js install on linux 5.4
2012-05-19 12:11
363 查看
node.js install on linux 5.4
上传软件node-v0.6.2.tar.gz,linux系统需要安装gcc、gcc-c++软件
[root@oracle Server]# rpm -ivh gcc-4.1.2-46.el5.i386.rpm gcc-c++-4.1.2-46.el5.i386.rpm
进入到上传目录,解压
[root@oracle soft]# tar -zxvf node-v0.6.2.tar.gz
[root@oracle soft]# ls
database node-v0.6.2 node-v0.6.2.tar.gz vsftpd-1.1.3-8.i386.rpm
[root@oracle soft]# cd node-v0.6.2
[root@oracle node-v0.6.2]# ls
AUTHORS common.gypi doc Makefile-gyp README.md vcbuild.bat
benchmark configure lib node src wscript
BSDmakefile configure-gyp LICENSE node.gyp test
ChangeLog deps Makefile out tools
[root@oracle node-v0.6.2]# ./configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for library dl : not found
Checking for openssl : not found
Checking for function SSL_library_init : not found
Checking for header openssl/crypto.h : not found
/soft/node-v0.6.2/wscript:364: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are installed. Use configure --without-ssl to disable this message.
#####报错,openssl软件包没有安装,需要安装以下包。
[root@oracle node-v0.6.2]# rpm -ivh openssl-devel-0.9.8e-12.el5.i386.rpm krb5-devel-1.6.1-36.el5.i386.rpm zlib-devel-1.2.3-3.i386.rpm e2fsprogs-devel-1.39-23.el5.i386.rpm keyutils-libs-devel-1.2-1.el5.i386.rpm libselinux-devel-1.33.4-5.5.el5.i386.rpm libsepol-devel-1.15.2-2.el5.i386.rpm
[root@oracle node-v0.6.2]# ./configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for library dl : yes
Checking for openssl : yes
Checking for library util : yes
Checking for library rt : yes
Checking for fdatasync(2) with c++ : yes
'configure' finished successfully (0.386s)
[root@oracle node-v0.6.2]# make && make install
上传软件node-v0.6.2.tar.gz,linux系统需要安装gcc、gcc-c++软件
[root@oracle Server]# rpm -ivh gcc-4.1.2-46.el5.i386.rpm gcc-c++-4.1.2-46.el5.i386.rpm
进入到上传目录,解压
[root@oracle soft]# tar -zxvf node-v0.6.2.tar.gz
[root@oracle soft]# ls
database node-v0.6.2 node-v0.6.2.tar.gz vsftpd-1.1.3-8.i386.rpm
[root@oracle soft]# cd node-v0.6.2
[root@oracle node-v0.6.2]# ls
AUTHORS common.gypi doc Makefile-gyp README.md vcbuild.bat
benchmark configure lib node src wscript
BSDmakefile configure-gyp LICENSE node.gyp test
ChangeLog deps Makefile out tools
[root@oracle node-v0.6.2]# ./configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for library dl : not found
Checking for openssl : not found
Checking for function SSL_library_init : not found
Checking for header openssl/crypto.h : not found
/soft/node-v0.6.2/wscript:364: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are installed. Use configure --without-ssl to disable this message.
#####报错,openssl软件包没有安装,需要安装以下包。
[root@oracle node-v0.6.2]# rpm -ivh openssl-devel-0.9.8e-12.el5.i386.rpm krb5-devel-1.6.1-36.el5.i386.rpm zlib-devel-1.2.3-3.i386.rpm e2fsprogs-devel-1.39-23.el5.i386.rpm keyutils-libs-devel-1.2-1.el5.i386.rpm libselinux-devel-1.33.4-5.5.el5.i386.rpm libsepol-devel-1.15.2-2.el5.i386.rpm
[root@oracle node-v0.6.2]# ./configure
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for library dl : yes
Checking for openssl : yes
Checking for library util : yes
Checking for library rt : yes
Checking for fdatasync(2) with c++ : yes
'configure' finished successfully (0.386s)
[root@oracle node-v0.6.2]# make && make install
相关文章推荐
- How to install Node.js on Linux
- Install nodejs on Linux Centos6.5
- How to Install and Run a node.js App on Centos 6.4 64bit
- How To Install Node.js on a CentOS 7 server
- Install 11.2.0.3(RAC) Grid Infrastructure on linux x86-64, run root.sh on second node failed 失败一列
- laravel5.4 npm 报错(node-sass 安装卡在 node scripts/install.js 解决办法)
- linux install nodejs
- Install MongoDB and Node.js on a Raspberry Pi
- How to install Node.js and NPM on Windows
- How do you install Node.JS on CentOS?
- install nodejs on ubuntu
- Install NodeJS on Ubuntu 12.10
- INSTALL NODE.JS ON WINDOWS
- [译]How to Install Node.js on Ubuntu 14.04 如何在ubuntu14.04上安装node.js
- Linux Install Node.js
- How To Install Node.js on an Ubuntu 14.04 server
- 【转】Install Node.js and NPM on Windows
- Step by step instructions to install NodeJS on Windows
- node.js express install on windows 7
- centos 5.4 安装nodejs + npm