Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: animare 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):
# 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
-
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
-
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
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
-
you already have that package installed on your server
Examining nodejs-stable-release.noarch.rpm: nodejs-stable-release-5-3.noarch
nodejs-stable-release.noarch.rpm: does not update installed package.
next step?
-
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
-
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
-
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
-
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.
-
... and here's a howto for nodejs: http://wiki.contribs.org/NodeJS
-
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
-
... and here's a howto for nodejs: http://wiki.contribs.org/NodeJS
Great shot michael, thank
-
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)