Koozali.org: home of the SME Server

Anyone had any luck installing NodeJs

Offline animare

  • *
  • 29
  • +0/-0
Anyone had any luck installing NodeJs
« on: October 08, 2012, 01:53:30 PM »
I've tried the following (from https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager):

Code: [Select]
# wget http://nodejs.tchol.org/repocfg/el/nodejs-stable-release.noarch.rpm
# yum localinstall --nogpgcheck nodejs-stable-release.noarch.rpm
# yum install nodejs-compat-symlinks npm
# rm nodejs-stable-release.noarch.rpm

I get stuck when I try and do the yum localinstall. Has anyone had any experience installing NodeJS?

Thanks

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Anyone had any luck installing NodeJs
« Reply #1 on: October 08, 2012, 03:13:19 PM »
I get stuck when I try and do the yum localinstall. Has anyone had any experience installing NodeJS?

could you please tell us what's the error message you get?

TIA

Offline animare

  • *
  • 29
  • +0/-0
Re: Anyone had any luck installing NodeJs
« Reply #2 on: October 08, 2012, 05:47:24 PM »
Code: [Select]
root ~ # yum localinstall --nogpgcheck nodejs-stable-release.noarch.rpm
Loaded plugins: fastestmirror, protect-packages, smeserver
Setting up Local Package Process
Examining nodejs-stable-release.noarch.rpm: nodejs-stable-release-5-3.noarch
nodejs-stable-release.noarch.rpm: does not update installed package.
Nothing to do

Code: [Select]
root ~ # yum localinstall --nogpgcheck nodejs-stable-release.noarch.rpm
Loaded plugins: fastestmirror, protect-packages, smeserver
Setting up Local Package Process
Examining nodejs-stable-release.noarch.rpm: nodejs-stable-release-5-3.noarch
nodejs-stable-release.noarch.rpm: does not update installed package.
Nothing to do

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Anyone had any luck installing NodeJs
« Reply #3 on: October 08, 2012, 06:05:35 PM »
you already have that package installed on your server

Quote
Code: [Select]
Examining nodejs-stable-release.noarch.rpm: nodejs-stable-release-5-3.noarch
nodejs-stable-release.noarch.rpm: does not update installed package.

next step?

Offline faron

  • 1
  • +0/-0
Re: Anyone had any luck installing NodeJs
« Reply #4 on: March 20, 2013, 08:05:27 PM »
You need to have Python installed first (i used 2.4 version and haven't update it to 2.6 even though the current version is 3.0.0, but good luck).

First step:

on your terminal via SSH:

step 1: enter this command

/sbin/e-smith/db yum_repositories set dag repository \
Name 'Dag - EL5' \
BaseURL 'http://apt.sw.be/redhat/el5/en/$basearch/dag' \
EnableGroups no \
GPGCheck yes \
GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled

step 2: signal-event yum-modify;

step 3: yum --enablerepo=dag;

step 4: enter this command

/sbin/e-smith/db yum_repositories set through-ip repository \
BaseURL http://through-ip.com/packages/smeserver/i386/ \
Name 'Through IP Pty. Ltd.' \
EnableGroups yes \
Visible yes \
GPGCheck no \
status disabled

step 5: signal-event yum-modify

step 6: yum --enablerepo=through-ip --enablerepo=dag install smeserver-git smeserver-gitweb smeserver-gitweb-theme

step 7: signal-event post-upgrade

step 8: signal-event reboot

step 9: git config --global http.sslVerify false

and finally....step 10:

git clone git://github.com/ry/node.git
cd node
./configure
make
sudo make install
« Last Edit: March 20, 2013, 08:20:24 PM by faron »

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Anyone had any luck installing NodeJs
« Reply #5 on: March 21, 2013, 12:48:46 PM »
I needed nodejs in order to run etherpad-lite.  I was not able to locate a binary install of nodejs that would do this, and ended up installing gcc, python 2.7, and building nodjs from source.

Here's a summary of what I did to get etherpad-lite & nodejs working (not for the faint of heart; voids your warranty):
- install gcc
- install git
- download, ./configure, make, and make altinstall python 2.7.3 from http://www.python.org/download/releases/
- mkdir -p /var/git && cd /var/git && git clone https://github.com/joyent/node.git
- cd /var/git/node && git pull origin v0.8.22
- python2.7 configure && make && PYTHON=/usr/local/bin/python2.7 && export PYTHON && make install

(plus a bunch of stuff to get etherpad-lite running as a service, using a mysql db, and accessible)

nodejs v10 released a couple weeks ago is not compatible with etherpad-lite, so I'm still running 8.22

Offline madadam

  • *
  • 149
  • +0/-0
    • http://www.extremetourist.com
Re: Anyone had any luck installing NodeJs
« Reply #6 on: August 23, 2014, 01:21:15 PM »
Has anyone had any further success installing Node.js on SME Server v8?

Ultimately I'd like to see a package developed so I could simply install in using YUM. I'd be willing to offer a small bounty for this. Anyone up for it or want to join in on a bounty?

Cheers,

Adam
...

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Anyone had any luck installing NodeJs
« Reply #7 on: August 23, 2014, 10:21:46 PM »
Has anyone had any further success installing Node.js on SME Server v8?

Mine is still working fine -- but I don't know how to create an rpm.

I've created a wiki page on altinstalling python: http://wiki.contribs.org/Python_Altinstall

I'll follow up with a page on installing nodejs.

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Anyone had any luck installing NodeJs
« Reply #8 on: August 23, 2014, 11:18:20 PM »
... and here's a howto for nodejs: http://wiki.contribs.org/NodeJS

guest22

Re: Anyone had any luck installing NodeJs
« Reply #9 on: August 25, 2014, 05:29:17 AM »
Has anyone had any further success installing Node.js on SME Server v8?

Isn't NodeJS available from the EPEL repo? I do not have a SME8 server at hand, but when I 'yum install nodejs npm --enablerepo=epel' on a SME9 test box, it show a whole bunch of NodeJS related rpm's ready to be installed.

Just a thought.

guest

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Anyone had any luck installing NodeJs
« Reply #10 on: August 25, 2014, 08:35:19 AM »
... and here's a howto for nodejs: http://wiki.contribs.org/NodeJS

Great shot michael, thank
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Anyone had any luck installing NodeJs
« Reply #11 on: August 25, 2014, 01:11:56 PM »
Isn't NodeJS available from the EPEL repo? I do not have a SME8 server at hand, but when I 'yum install nodejs npm --enablerepo=epel' on a SME9 test box, it show a whole bunch of NodeJS related rpm's ready to be installed.

Just a thought.

guest
Right you are - epel includes nodejs v10.29 for SME 9 -- I've added a section to the wiki page for SME 9 install from Epel.  Thanks!

There is no version in epel for SME 8; when I last looked (18 - 24 months ago...) the only nodejs version I could find available in any repo was too old to run the apps I wanted to run (etherpad-lite & tiddlywiki5)