Koozali.org: home of the SME Server

[Solved] Centos Software Collections

Offline michelandre

  • *
  • 261
  • +0/-0
[Solved] Centos Software Collections
« on: August 24, 2018, 07:41:38 PM »
Hi all,

I installed a software in July 21st 2018. Now I want to install, on another SME-9.2, the same software in August 2018 following the exact same procédure I used in July. But it doesn't work anymore.

As of 2018-07-25 15:42 (http://mirror.centos.org/centos/6.9/readme)

Quote
"This directory (and version of CentOS) is deprecated. For normal users,you should use /6/ and not /6.9/ in your path. Please see this FAQ concerning the CentOS release scheme:

I am trying to install postgresql92 (https://wiki.contribs.org/Software_Collections:PostgreSQL) but it looks like it is no more available.

I can install: rh-postgresql94, rh-postgresql95 and rh-postgresql96.

I think the Contribs (https://wiki.contribs.org/Software_Collections:PostgreSQL) and maybe other Collections needs some refresh? Or where do I go wrong with postgresql92?

Michel-André
« Last Edit: August 29, 2018, 12:16:37 AM by michelandre »

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Centos Software Collections
« Reply #1 on: August 25, 2018, 02:47:52 PM »
My server upgraded to v6.10 on July 5th; that's why the centos 6.9 folder now shows the 'deprecated' readme.
Code: [Select]
# cat /etc/centos-release
CentOS release 6.10 (Final)

# grep centos-release /var/log/yum/yum.log
Feb 19 13:57:59 Updated: centos-release-6-8.el6.centos.12.3.x86_64
Apr 07 07:47:42 Updated: centos-release-6-9.el6.12.3.x86_64
Jul 05 07:08:08 Updated: centos-release-6-10.el6.centos.12.3.x86_64

postgresql92 still appears in the repository in a web browser, but is not available for installation using any command I can figure out:
http://mirror.centos.org/centos/6/sclo/x86_64/rh/

The software collections site still includes postgresql92 install instructions, but also says that it was end-of-life in 2016:
https://www.softwarecollections.org/en/scls/tag/CentOS-6/?search=postgresql&policy=&repo=&order_by=-create_date&per_page=10

There were some radical changes made to the sme wiki page for software collection repositories in November 2016; it looks like the postgreql92 wiki page was never updated to use the new scl repository configurations:
https://wiki.contribs.org/index.php?title=Software_Collections_Repositories&type=revision&diff=32281&oldid=28179

If you're feeling adventurous, you could try installing the scl-postgresql92 repository that is actually used on the wiki page using these notes that have since been removed from the wiki:
https://wiki.contribs.org/index.php?title=Software_Collections_Repositories&oldid=28179#tab=PostgreSQL92

Good luck ;-)

Offline michelandre

  • *
  • 261
  • +0/-0
Re: Centos Software Collections
« Reply #2 on: August 29, 2018, 12:16:13 AM »
Hi mmccarn,

Thank you for your reply.

I resolved the problem of PostgreSQL, I installed RH-PostgreSQL96.

Code: [Select]
wget https://www.centos.org/keys/RPM-GPG-KEY-CentOS-6
Code: [Select]
/sbin/e-smith/db yum_repositories set centos-sclo-rh repository  \
Name 'Centos - RH Software Collections'                          \
BaseURL 'http://mirror.centos.org/centos/6/sclo/x86_64/rh/'      \
EnableGroups no                                                  \
GPGCheck yes                                                     \
GPGKey file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6              \
Visible no                                                       \
status disabled
Code: [Select]
signal-event yum-modify
Code: [Select]
yum install -y --enablerepo=centos-sclo-rh rh-postgresql96
For the other problem, it took me a very long time but I found that it was the latest version of NPM causing the problem with LESSC. I installed Node.js-10.5.0 and all was working properly after that.

Michel-André

Offline ReetP

  • *
  • 3,732
  • +5/-0
Re: [Solved] Centos Software Collections
« Reply #3 on: August 31, 2018, 01:31:36 PM »
You can use the nodejs repo

Code: [Select]
/sbin/e-smith/db yum_repositories set nodejs8 \
repository Name 'Node JS 8' \
BaseURL https://rpm.nodesource.com/pub_8.x/el/6/x86_64 \
EnableGroups no GPGCheck no Visible yes status disabled

Latest version is 10

https://rpm.nodesource.com/pub_10.x/
...
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

Offline michelandre

  • *
  • 261
  • +0/-0
Re: [Solved] Centos Software Collections
« Reply #4 on: August 31, 2018, 04:17:28 PM »
Hi ReetP,

Thank you for your reply.


Code: [Select]
# /sbin/e-smith/db yum_repositories set nodejs8 \
repository Name 'Node JS 8' \
BaseURL https://rpm.nodesource.com/pub_8.x/el/6/x86_64 \
EnableGroups no GPGCheck no Visible yes status disabled

# signal-event yum-modify

# yum install  -y --enablerepo=nodejs8 nodejs

BEFORE:                       AFTER:
node --version  // v10.5.0    v8.11.4
npm --version   // 6.4.1      5.6.0
less --version  // 436        436
lessc --version // 3.8.1      3.8.1

Now Odoo-11 is working properly. My documentation is finished, just have to verify everything again.
But, I don't know if it worths to convert my documentation to a Mediawiki how-to?
- In July it was working properly.
- In August I had to debug and downgrade lessc to make it works.
- I had to use PostgreSQL-10 as RH-PostgreSQL96 was not able to delete/restore the DataBase.
- I think that hey are not too committed to compatibility with required softwares versions...
- Imagine the support for a how-to!

After spending so much time, maybe I should just forget about it and go with Dolibarr which is a breeze to install and is always working properly?

Michel-André

Offline ReetP

  • *
  • 3,732
  • +5/-0
Re: [Solved] Centos Software Collections
« Reply #5 on: August 31, 2018, 05:32:27 PM »
Node - yes I'm not sure how much stuff is yet running on 9 or 10.

Remember also that is the RPM you have installed. You can change the actual node version being used using 'n'

Code: [Select]
npm install -g n
Code: [Select]
n -h
Code: [Select]
n latest
Code: [Select]
n stable
Code: [Select]
n lts
Code: [Select]
node -v
You can also modify the npm version too eg

Code: [Select]
npm -h
Install specific npm version:

Use latest:
Code: [Select]
npm install -g npm
Use specific version:
Code: [Select]
npm install -g npm@5.6.0
Code: [Select]
npm -v
Etc.

If you have it running then document it - someone else may want to play.....

Just add a note box or warning box e.g.

Quote
Note Box|This works as of today <date> but development is fast and this may not work tomorrow
...
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