Trying to install any version of NodeJS larger than 0.10 on CentOS 5/6 with no luck.
On CentOS 5:
I'm getting SSL handshake error when curl tries to download setup script. If I manage to download setup script for any version via HTTP it tells that my distribution isn't supported however https://nodejs.org/en/download/package-manager/ page says CentOS 5 is supported.
CentOS release 5.11 (Final)
Kernel \r on an \m
On CentOS 6:
Setup script tells that my distribution isn't supported however https://nodejs.org/en/download/package-manager/ page says CentOS 6 is supported.
CentOS release 6.4 (Final)
Kernel \r on an \m
It works for me when using centos 6.8, though I did get the same error when curl calls returned as error.
Try, for debugging only, to run the following echo --insecure | sudo tee -a /root/.curlrc and re-run the setup command again and see if it helps.
As for SSL handshake error it is known problem with CentOS 5, because https://nodejs.org have disabled use of some TLS versions and there is no workaround for that. Same will happen, when you try to use wget even with --no-check-certificate option.
Due used GCC version it was also impossible to compile from source on either of mentioned CentOS versions. However I've found instructions on https://www.subhosting.net/kb/how-to-install-nodejs-on-centos-6/ page about how to install binaries without any package manager (see Install Node.js from binary package heading):
Linux Binaries (x86/x64) linefor dir in bin include lib share; do cp -par ${dir}/* /usr/local/${dir}/; done commandSame here
## Your distribution, identified as "redhat-release-server-6Server-6.7.0.3.el6.x86_64", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
@Poilaucul Please provide the full command that was used that generated this error message. We need to know what version you were trying to install and what the install script output was.
@chrislea
curl --insecure --silent --location https://rpm.nodesource.com/setup_6.x | bash -
`curl --insecure --silent --location https://rpm.nodesource.com/setup_8.x | bash -
I have the same issue. Same as above but here's the last message.
Also, can this be used on other "Linux binaries" as well?
for dir in bin include lib share; do cp -par ${dir}/* /usr/local/${dir}/; done
Can you please try downloading the setup script and running it with the -x flag to give us more of an idea what's going on? Something like:
% curl -RLO https://rpm.nodesource.com/setup_6.x
% /bin/bash -x ./setup_6.x
Thanks.
4.x
[root@laptop1 ~]# curl -RLO https://rpm.nodesource.com/setup_4.x
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13428 100 13428 0 0 11861 0 0:00:01 0:00:01 --:--:-- 298k
[root@laptop1 ~]# /bin/bash -x ./setup_4.x
+ SCRSUFFIX=_4.x
+ NODENAME='Node.js v4.x LTS Argon'
+ NODEREPO=pub_4.x
+ NODEPKG=nodejs
+ test -t 1
++ which tput
++ tput colors
+ ncolors=8
+ test -n 8
+ test 8 -ge 8
++ tput cols
+ termcols=109
++ tput bold
+ bold=''
++ tput smul
+ underline=''
++ tput smso
+ standout=''
++ tput sgr0
+ normal=''
++ tput setaf 0
+ black=''
++ tput setaf 1
+ red=''
++ tput setaf 2
+ green=''
++ tput setaf 3
+ yellow=''
++ tput setaf 4
+ blue=''
++ tput setaf 5
+ magenta=''
++ tput setaf 6
+ cyan=''
++ tput setaf 7
+ white=''
+ setup
+ script_deprecation_warning
+ '[' X_4.x == X ']'
+ print_status 'Installing the NodeSource Node.js v4.x LTS Argon repo...'
++ echo 'Installing the NodeSource Node.js v4.x LTS Argon repo...'
+ local 'outp=Installing the NodeSource Node.js v4.x LTS Argon repo...'
+ echo
+ echo -e '## Installing the NodeSource Node.js v4.x LTS Argon repo...'
## Installing the NodeSource Node.js v4.x LTS Argon repo...
+ echo
+ print_status 'Inspecting system...'
++ echo 'Inspecting system...'
+ local 'outp=Inspecting system...'
+ echo
+ echo -e '## Inspecting system...'
## Inspecting system...
+ echo
+ '[' '!' -x /bin/rpm ']'
+ echo '+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release'
+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
++ rpm -q --whatprovides redhat-release
+ DISTRO_PKG=centos-release-6-9.el6.12.3.i686
+ echo '+ uname -m'
+ uname -m
++ uname -m
+ UNAME_ARCH=i686
+ '[' Xi686 == Xi686 ']'
+ DIST_ARCH=i386
+ [[ centos-release-6-9.el6.12.3.i686 =~ ^(redhat|centos|cloudlinux|sl)- ]]
+ DIST_TYPE=el
+ [[ centos-release-6-9.el6.12.3.i686 =~ ^system-release-201[4-9]\. ]]
++ echo centos-release-6-9.el6.12.3.i686
++ sed -r 's/^[[:alpha:]]+-release(-server|-workstation|-client)?-([0-9]+).*$/\2/'
+ DIST_VERSION=6
+ [[ 6 =~ ^[0-9][0-9]?$ ]]
+ RELEASE_URL_VERSION_STRING=el6
+ RELEASE_URL=https://rpm.nodesource.com/pub_4.x/el/6/i386/nodesource-release-el6-1.noarch.rpm
+ print_status 'Confirming "el6-i386" is supported...'
++ echo 'Confirming "el6-i386" is supported...'
+ local 'outp=Confirming "el6-i386" is supported...'
+ echo
+ echo -e '## Confirming "el6-i386" is supported...'
## Confirming "el6-i386" is supported...
+ echo
+ exec_cmd_nobail 'curl -sLf -o /dev/null '\''https://rpm.nodesource.com/pub_4.x/el/6/i386/nodesource-release-el6-1.noarch.rpm'\'''
+ echo '+ curl -sLf -o /dev/null '\''https://rpm.nodesource.com/pub_4.x/el/6/i386/nodesource-release-el6-1.noarch.rpm'\'''
+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_4.x/el/6/i386/nodesource-release-el6-1.noarch.rpm'
+ bash -c 'curl -sLf -o /dev/null '\''https://rpm.nodesource.com/pub_4.x/el/6/i386/nodesource-release-el6-1.noarch.rpm'\'''
+ RC=22
+ [[ 22 != 0 ]]
+ print_status 'Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support'
++ echo 'Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support'
+ local 'outp=Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support'
+ echo
+ echo -e '## Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support'
## Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
+ echo
+ exit 1
6.x
[root@laptop1 ~]# curl -RLO https://rpm.nodesource.com/setup_6.x
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
101 6981 101 6981 0 0 6136 0 0:00:01 0:00:01 --:--:-- 243k
[root@laptop1 ~]# /bin/bash -x ./setup_6.x
+ print_status 'Installing the NodeSource Node.js 6.x repo...'
++ echo 'Installing the NodeSource Node.js 6.x repo...'
++ sed -r 's/\\n/\\n## /mg'
+ local 'outp=Installing the NodeSource Node.js 6.x repo...'
+ echo
+ echo -e '## Installing the NodeSource Node.js 6.x repo...'
## Installing the NodeSource Node.js 6.x repo...
+ echo
+ print_status 'Inspecting system...'
++ echo 'Inspecting system...'
++ sed -r 's/\\n/\\n## /mg'
+ local 'outp=Inspecting system...'
+ echo
+ echo -e '## Inspecting system...'
## Inspecting system...
+ echo
+ '[' '!' -x /bin/rpm ']'
+ echo '+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release'
+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
++ rpm -q --whatprovides redhat-release
+ DISTRO_PKG=centos-release-6-9.el6.12.3.i686
+ echo '+ uname -m'
+ uname -m
++ uname -m
+ UNAME_ARCH=i686
+ '[' Xi686 == Xi686 ']'
+ DIST_ARCH=i386
+ [[ centos-release-6-9.el6.12.3.i686 =~ ^(redhat|centos|cloudlinux|sl)- ]]
+ DIST_TYPE=el
+ [[ centos-release-6-9.el6.12.3.i686 =~ ^system-release-201[4-9]\. ]]
++ echo centos-release-6-9.el6.12.3.i686
++ sed -r 's/^[[:alpha:]]+-release(-server|-workstation)?-([0-9]+).*$/\2/'
+ DIST_VERSION=6
+ [[ 6 =~ ^[0-9][0-9]?$ ]]
+ RELEASE_URL_VERSION_STRING=el6
+ RELEASE_URL=https://rpm.nodesource.com/pub_6.x/el/6/i386/nodesource-release-el6-1.noarch.rpm
+ print_status 'Confirming "el6-i386" is supported...'
++ echo 'Confirming "el6-i386" is supported...'
++ sed -r 's/\\n/\\n## /mg'
+ local 'outp=Confirming "el6-i386" is supported...'
+ echo
+ echo -e '## Confirming "el6-i386" is supported...'
## Confirming "el6-i386" is supported...
+ echo
+ exec_cmd_nobail 'curl -sLf -o /dev/null '\''https://rpm.nodesource.com/pub_6.x/el/6/i386/nodesource-release-el6-1.noarch.rpm'\'''
+ echo '+ curl -sLf -o /dev/null '\''https://rpm.nodesource.com/pub_6.x/el/6/i386/nodesource-release-el6-1.noarch.rpm'\'''
+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_6.x/el/6/i386/nodesource-release-el6-1.noarch.rpm'
+ bash -c 'curl -sLf -o /dev/null '\''https://rpm.nodesource.com/pub_6.x/el/6/i386/nodesource-release-el6-1.noarch.rpm'\'''
+ RC=22
+ [[ 22 != 0 ]]
+ print_status 'Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support'
++ echo 'Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support'
++ sed -r 's/\\n/\\n## /mg'
+ local 'outp=Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support'
+ echo
+ echo -e '## Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support'
## Your distribution, identified as "centos-release-6-9.el6.12.3.i686", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
+ echo
+ exit 1
Closing old issues: Node 4 and 6 are EOL now, not an issue anymore.
Most helpful comment
As for SSL handshake error it is known problem with CentOS 5, because https://nodejs.org have disabled use of some TLS versions and there is no workaround for that. Same will happen, when you try to use
wgeteven with--no-check-certificateoption.Due used GCC version it was also impossible to compile from source on either of mentioned CentOS versions. However I've found instructions on https://www.subhosting.net/kb/how-to-install-nodejs-on-centos-6/ page about how to install binaries without any package manager (see
Install Node.js from binary packageheading):Linux Binaries (x86/x64)linefor dir in bin include lib share; do cp -par ${dir}/* /usr/local/${dir}/; donecommand