Koozali.org: home of the SME Server

Software Collections Nodejs yum installation fails

Offline sqlerror

  • ***
  • 50
  • +0/-0
Software Collections Nodejs yum installation fails
« on: November 20, 2016, 11:46:16 PM »
When installing the nodejs software collection, yum fails with these messages:
Code: [Select]
yum install nodejs010 --enablerepo=scl-nodejs010
Code: [Select]
... --> Finished Dependency Resolution
Error: Package: nodejs010-nodejs-0.10.35-4.el6.x86_64 (scl-nodejs010)
           Requires: v8314-v8 < 1:3.15
Error: Package: nodejs010-nodejs-devel-0.10.35-4.el6.x86_64 (scl-nodejs010)
           Requires: v8314-v8-devel
Error: Package: nodejs010-node-gyp-1.0.2-3.el6.noarch (scl-nodejs010)
           Requires: v8314-v8-devel
Error: Package: nodejs010-nodejs-devel-0.10.35-4.el6.x86_64 (scl-nodejs010)
           Requires: libv8.so.v8314-3.14.5()(64bit)
Error: Package: nodejs010-nodejs-0.10.35-4.el6.x86_64 (scl-nodejs010)
           Requires: v8314-v8 >= 1:3.14.5.10-8
Error: Package: nodejs010-nodejs-0.10.35-4.el6.x86_64 (scl-nodejs010)
           Requires: libv8.so.v8314-3.14.5()(64bit)
Error: Package: nodejs010-node-gyp-1.0.2-3.el6.noarch (scl-nodejs010)
           Requires: v8314-gyp
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

What can be done about this?
Thanks.
Geert

guest22

Re: Software Collections Nodejs yum installation fails
« Reply #1 on: November 21, 2016, 04:26:11 AM »
When installing the nodejs software collection, yum fails with these messages:
Code: [Select]
yum install nodejs010 --enablerepo=scl-nodejs010


The SCL repo's have changed. Will try to correct them asap.

Offline sqlerror

  • ***
  • 50
  • +0/-0
Re: Software Collections Nodejs yum installation fails
« Reply #2 on: November 21, 2016, 11:27:11 AM »

The SCL repo's have changed. Will try to correct them asap.

Great, thanks for your work on this and so many other useful contribs!

Offline ReetP

  • *
  • 3,951
  • +6/-0
Re: Software Collections Nodejs yum installation fails
« Reply #3 on: November 21, 2016, 01:00:25 PM »
As a FYI you can use the node repo directly for a more up to date version (I had to do this to use the newer versions of rocketchat):

/sbin/e-smith/db yum_repositories set nodejs \
repository Name 'Node JS 4' \
BaseURL https://rpm.nodesource.com/pub_4.x/el/6/x86_64 \
EnableGroups no GPGCheck no Visible yes status disabled

yum --enablerepo=nodejs install nodejs

(You may need nodejs-devel as well)

You can check versions like this:

[root@test]# node -v
v4.5.0
[root@test]# npm -v
3.10.8

Modify with

n 0.4.6

HTH.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

guest22

Re: Software Collections Nodejs yum installation fails
« Reply #4 on: November 21, 2016, 01:11:27 PM »
As a FYI you can use the node repo directly for a more up to date version (I had to do this to use the newer versions of rocketchat):


Please note that the above is NOT Software Collections, but a native install.


Repo for Software Collections adjusted to the latest CentOS SCL

Offline sqlerror

  • ***
  • 50
  • +0/-0
Re: Software Collections Nodejs yum installation fails
« Reply #5 on: November 21, 2016, 04:11:57 PM »

Please note that the above is NOT Software Collections, but a native install.


Repo for Software Collections adjusted to the latest CentOS SCL

Can I then run
Code: [Select]
yum install v8314 --enablerepo=centos-sclo-rhTo get dependancies fixed and then install scl-nodje010 as per howto?


Test gave:
Code: [Select]
root@mail ~]# yum install v8314  --enablerepo=scl-nodejs010 --enablerepo=centos-sclo-rh
Loaded plugins: fastestmirror, smeserver
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.denit.net
 * smeaddons: mirror.enpol-ict.net
 * smeextras: mirror.enpol-ict.net
 * smeos: mirror.enpol-ict.net
 * smeupdates: mirror.enpol-ict.net
 * updates: centos.mirror1.spango.com
Resolving Dependencies
--> Running transaction check
---> Package v8314.x86_64 0:2.0-11.el6 will be installed
--> Processing Dependency: v8314-v8-devel for package: v8314-2.0-11.el6.x86_64
--> Processing Dependency: v8314-v8 for package: v8314-2.0-11.el6.x86_64
--> Processing Dependency: v8314-runtime for package: v8314-2.0-11.el6.x86_64
--> Processing Dependency: v8314-gyp for package: v8314-2.0-11.el6.x86_64
--> Running transaction check
---> Package v8314-gyp.noarch 0:0.1-0.12.1617svn.sc1.el6 will be installed
---> Package v8314-runtime.x86_64 0:2.0-11.el6 will be installed
---> Package v8314-v8.x86_64 1:3.14.5.10-8.el6 will be installed
---> Package v8314-v8-devel.x86_64 1:3.14.5.10-8.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================================================================
 Package                                            Arch                                       Version                                                      Repository                                          Size
=====================================================================================================================================================================================================================
Installing:
 v8314                                              x86_64                                     2.0-11.el6                                                   centos-sclo-rh                                     3.3 k
Installing for dependencies:
 v8314-gyp                                          noarch                                     0.1-0.12.1617svn.sc1.el6                                     centos-sclo-rh                                     391 k
 v8314-runtime                                      x86_64                                     2.0-11.el6                                                   centos-sclo-rh                                     1.0 M
 v8314-v8                                           x86_64                                     1:3.14.5.10-8.el6                                            centos-sclo-rh                                     1.5 M
 v8314-v8-devel                                     x86_64                                     1:3.14.5.10-8.el6                                            centos-sclo-rh                                     1.4 M

Transaction Summary
=====================================================================================================================================================================================================================
Install       5 Package(s)

Total download size: 4.3 M
Installed size: 11 M
Is this ok [y/N]: n

Is this ok [y/N]?

guest22

Re: Software Collections Nodejs yum installation fails
« Reply #6 on: November 21, 2016, 04:15:43 PM »
Only

yum install nodejs010 --enablerepo=centos-sclo-rh

Offline sqlerror

  • ***
  • 50
  • +0/-0
Re: Software Collections Nodejs yum installation fails
« Reply #7 on: November 21, 2016, 04:32:19 PM »
Only

yum install nodejs010 --enablerepo=centos-sclo-rh

Allright, thank you very much for fixing this.