Changes

Jump to navigation Jump to search
667 bytes added ,  13:14, 25 August 2014
Add yum install notes for SME9
Line 1: Line 1: −
{{Level|Advanced}}
  −
{{Warning box|This procedure requires installation of gcc and could significantly compromise your server's security.<br />Thorough understanding of linux system management is required.<br /><br /><b>Proceed at your own risk</b>}}
  −
   
Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
 
Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
    
http://nodejs.org/
 
http://nodejs.org/
 +
==SME 9==
 +
===Install===
 +
On SME 9, you can install a reasonably recent version of NodeJS from the EPEL repository:
 +
* Add the epel repository to the configuration db using the SME 9 instructions from [[Epel]]
 +
* Update the yum configuration file using
 +
expand-template /etc/yum.smerepos.d/sme-base.repo
 +
* Install NodeJS
 +
yum --enablerepo=epel install nodejs
 +
This will install nodejs plus c-ares19, http-parser, libuv and v8 from the epel repo, plus libicu from the base repo.
 +
 +
===Update===
 +
* Update using
 +
yum --enablerepo=epel update nodejs c-ares19 http-parser libuv v8
 +
* NodeJS updates are released every 3 - 12 weeks; check for updates regularly.
 +
 +
==SME 8==
 +
{{Level|Advanced}}
 +
{{Warning box|This procedure requires installation of gcc and could significantly compromise your server's security.<br />Thorough understanding of linux system management is required.<br /><br /><b>Proceed at your own risk</b>}}
   −
==Prerequesites==
+
===Prerequesites===
 
* Requires Python 2.7 installed as described in [[Python Altinstall]]
 
* Requires Python 2.7 installed as described in [[Python Altinstall]]
 
* git and g++
 
* git and g++
 
  yum -y install git gcc-c++
 
  yum -y install git gcc-c++
   −
==Install==
+
===Install===
 
  mkdir -p /var/git
 
  mkdir -p /var/git
 
  cd /var/git
 
  cd /var/git
Line 24: Line 39:  
  make install
 
  make install
   −
==Update==
+
===Update===
 
  RELEASE=$(curl -s http://nodejs.org/download/ |grep Current\ version |awk -F"[><]" '{print $5}')
 
  RELEASE=$(curl -s http://nodejs.org/download/ |grep Current\ version |awk -F"[><]" '{print $5}')
 
  cd /var/git/node
 
  cd /var/git/node
Line 30: Line 45:  
  git pull origin $RELEASE-release
 
  git pull origin $RELEASE-release
   −
==Test==
+
===Test===
 
  node -v
 
  node -v
  

Navigation menu