Can't install nodejs on CentOS 7 using epel-release - node.js

So something strange happened this week and I'm not sure if it's only me. When I create a new EC2 instance with CentOS 7 from the Marketplace ( CentOS 7 (x86_64) - with Updates HVM ) and I try to install nodejs I am getting the error that nodejs package is not found. Of course prior to installing nodejs I am installing epel-release as nodejs is a part of this package.
Error output bellow:
[root#ip-172-31-15-245 centos]# yum install epel-release -y`
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: download.cf.centos.org
* extras: download.cf.centos.org
* updates: download.cf.centos.org
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/4): extras/7/x86_64/primary_db | 243 kB 00:00:00
(2/4): base/7/x86_64/group_gz | 153 kB 00:00:00
(3/4): updates/7/x86_64/primary_db | 13 MB 00:00:00
(4/4): base/7/x86_64/primary_db | 6.1 MB 00:00:01
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================================================================================
Installing:
epel-release noarch 7-11 extras 15 k
Transaction Summary
==================================================================================================================================================================================================================
Install 1 Package
Total download size: 15 k
Installed size: 24 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/extras/packages/epel-release-7-11.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for epel-release-7-11.noarch.rpm is not installed
epel-release-7-11.noarch.rpm | 15 kB 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security#centos.org>"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-7.1908.0.el7.centos.x86_64 (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1
Installed:
epel-release.noarch 0:7-11
Complete!
`[root#ip-172-31-15-245 centos]# yum install nodejs`
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 32 kB 00:00:00
* base: download.cf.centos.org
* epel: mirror.23m.com
* extras: download.cf.centos.org
* updates: download.cf.centos.org
epel | 4.7 kB 00:00:00
(1/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(2/3): epel/x86_64/group_gz | 96 kB 00:00:00
(3/3): epel/x86_64/primary_db | 7.0 MB 00:00:00
No package nodejs available.
Error: Nothing to do
Does anyone else experience the same issue?
Tried using nvm but does suit me so I'm looking for any advice?

Some other users have been having problems with EPEL and Node.js on CentOS 7. Can you download the tarball and try to install it manually (I would use the default user's account instead of root, though):
NOTE - Tested on CentOS 7.9
wget https://nodejs.org/dist/latest/node-v17.4.0-linux-x64.tar.gz -P /home/<default user>/Downloads
cd /home/<default user>/Downloads
sudo tar -C /usr/local --strip-components 1 -xzf node*.tar.gz

Related

Building GCC 11.2 on Amazon Linux 2

While attempting to build GCC version 11.3 for Linux-x86_64 (with multilib and multiarch support enabled), I am getting the following error:
In file included from /usr/include/features.h:447,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/../gcc/tsystem.h:87,
from /home/slagathor/Developer/gcc-11.3.0/libgcc/generic-morestack.c:32:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
7 | # include <gnu/stubs-32.h>
From what I can tell this means that I don't have glibc-devel (32-bit version) installed; however when attempting to install it via YUM I get the following output:
$ sudo yum install glibc-devel.i686
Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
firefox | 2.9 kB 00:00:00
workspaces-internal-dependencies | 2.2 kB 00:00:00
No package glibc-devel.i686 available.
I am using an Amazon Linux Workspace, any assistance would be helpful.
Maybe you are using centos so you need to go to chrome and search for "How to install glibc-devel.i686 for centos".

remove and reinstall/update stackdriver-agent

Is there another method of removing and reinstalling/updating stackdriver-agent after pinning it to a certain version beyond removing to reinstall the latest?
stackdriver-agent.x86_64 5.5.2-1001.el7
stackdriver-agent.x86_64 5.5.2-1002.el7
Running "install -y stackdriver-agent" still uses stackdriver-agent.x86_64 0:5.5.2-1002.el7 even after "remove stackdriver-agent".
Is there a config file to make this change before pulling/installing the latest version which is 6.*?
The ONLY way I was able to get the new version installed was to remove from all prod systems the logging agent first, then the agent, then reinstall.
stackdriver-agent.x86_64 0:6.0.5-1.el7
Try going over the "Installing the Cloud Monitoring agent on a single VM" documentation which I've went through.
I was able to install, start, stop, remove and install another version of the agent.
Here's how I did it (using CentOS 6 box):
I've created a new CentOS 6 VM, added agent's repository to package list:
[wbogacz#centos ~]$ curl -sSO https://dl.google.com/cloudagents/add-monitoring-agent-repo.sh
[wbogacz#centos ~]$ sudo bash add-monitoring-agent-repo.sh
Adding agent repository for Red Hat.
Then listed all available versions for this OS:
[wbogacz#centos ~]$ sudo yum list --showduplicates stackdriver-agent
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.eu.oneandone.net
* centos-sclo-rh: ftp.plusline.net
* centos-sclo-sclo: mirror.infonline.de
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: ftp.plusline.net
* updates: ftp.plusline.net
google-cloud-monitoring/signature | 454 B 00:00
google-cloud-monitoring/signature | 1.4 kB 00:00 ...
Installed Packages
stackdriver-agent.x86_64 5.5.2-1002.el6 #google-cloud-monitoring
Available Packages
stackdriver-agent.x86_64 5.5.2-1001.el6 google-cloud-monitoring
stackdriver-agent.x86_64 5.5.2-1002.el6 google-cloud-monitoring
Version 6 of the agent is not available for CentOS 6 (it shows in CentOS 8).
I then installed 1001 version:
Loading mirror speeds from cached hostfile
* base: mirror.eu.oneandone.net
* centos-sclo-rh: ftp.plusline.net
* centos-sclo-sclo: mirror.infonline.de
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: ftp.plusline.net
* updates: ftp.plusline.net
Resolving Dependencies
--> Running transaction check
---> Package stackdriver-agent.x86_64 0:5.5.2-1001.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================
Package Arch Version Repository Size
================================================================================================================
Installing:
stackdriver-agent x86_64 5.5.2-1001.el6 google-cloud-monitoring 1.3 M
Transaction Summary
================================================================================================================
Install 1 Package(s)
Total download size: 1.3 M
Installed size: 4.9 M
Downloading Packages:
85f2f9343af9e0c4669fb9214584c8d4c2ccacfd0a5559e7d980bc4ae85babc6-stackdriver-agent-5.5.2 | 1.3 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : stackdriver-agent-5.5.2-1001.el6.x86_64 1/1
Verifying : stackdriver-agent-5.5.2-1001.el6.x86_64 1/1
Installed:
stackdriver-agent.x86_64 0:5.5.2-1001.el6
Complete!
Listed installed agent's again and got nothing:
[wbogacz#centos ~]$ sudo yum list installed | grep stack
stackdriver-agent.x86_64
Started the agent:
[wbogacz#centos ~]$ sudo service stackdriver-agent start
Starting stackdriver-collectd: option = Interval; value = 60.000000;
option = Hostname; value = ;
option = FQDNLookup; value = false;
Created new plugin context.
option = PIDFile; value = /var/run/stackdriver-agent.pid;
option = Interval; value = 60.000000;
option = Hostname; value = ;
option = FQDNLookup; value = false;
Created new plugin context.
Remove the agent
[wbogacz#centos ~]$ sudo yum remove stackdriver-agent
Loaded plugins: fastestmirror, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package stackdriver-agent.x86_64 0:5.5.2-1001.el6 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================
Package Arch Version Repository Size
================================================================================================================
Removing:
stackdriver-agent x86_64 5.5.2-1001.el6 #google-cloud-monitoring 4.9 M
Transaction Summary
================================================================================================================
Remove 1 Package(s)
Installed size: 4.9 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : stackdriver-agent-5.5.2-1001.el6.x86_64 1/1
Verifying : stackdriver-agent-5.5.2-1001.el6.x86_64 1/1
Removed:
stackdriver-agent.x86_64 0:5.5.2-1001.el6
Complete!
Install 1002 version:
Loading mirror speeds from cached hostfile
* base: mirror.eu.oneandone.net
* centos-sclo-rh: ftp.plusline.net
* centos-sclo-sclo: mirror.infonline.de
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: ftp.plusline.net
* updates: ftp.plusline.net
Resolving Dependencies
--> Running transaction check
---> Package stackdriver-agent.x86_64 0:5.5.2-1002.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================
Package Arch Version Repository Size
================================================================================================================
Installing:
stackdriver-agent x86_64 5.5.2-1002.el6 google-cloud-monitoring 1.3 M
Transaction Summary
================================================================================================================
Install 1 Package(s)
Total download size: 1.3 M
Installed size: 4.9 M
Downloading Packages:
2a595a0373346006564e3ddc1a15101460b78d72936b11ba177ac956b125cca2-stackdriver-agent-5.5.2 | 1.3 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : stackdriver-agent-5.5.2-1002.el6.x86_64 1/1
Verifying : stackdriver-agent-5.5.2-1002.el6.x86_64 1/1
Installed:
stackdriver-agent.x86_64 0:5.5.2-1002.el6
Complete!
Check installed version:
[wbogacz#centos ~]$ rpm --query --queryformat '%{NAME} %{VERSION} %{RELEASE} %{ARCH}\n' \
> stackdriver-agent
stackdriver-agent 5.5.2 1002.el6 x86_64

unable to to install Varnish 6.0 on AmazonLinux

I am trying to install varnish 6 image on amazon linux and ubuntu but unfortunately I am not getting successful.
I have followed both the script and manual methods at https://packagecloud.io/varnishcache/varnish60/install#bash-rpm without success. See below the output. I am getting similar output on Ubuntu as well
[root#aaa00web32 yum.repos.d]# curl -s https://packagecloud.io/install/repositories/varnishcache/varnish60/script.rpm.sh | sudo bash
Detected operating system as amzn/2018.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/varnishcache/varnish60/config_file.repo?os=amzn&dist=2018&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: ovl, priorities
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
nt-local | 2.9 kB 00:00:00
varnishcache_varnish60-source/signature | 836 B 00:00:00
varnishcache_varnish60-source/signature | 951 B 00:00:01 !!!
(1/6): amzn-main/latest/group_gz | 4.4 kB 00:00:00
(2/6): amzn-updates/latest/group_gz | 4.4 kB 00:00:00
(3/6): nt-local/primary_db | 59 kB 00:00:00
(4/6): amzn-updates/latest/primary_db | 351 kB 00:00:00
(5/6): amzn-updates/latest/updateinfo | 502 kB 00:00:00
(6/6): amzn-main/latest/primary_db | 4.0 MB 00:00:01
varnishcache_varnish60-source/primary | 175 B 00:00:01
Package python26-pygpgme-0.3-9.12.amzn1.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: ovl, priorities
Package yum-utils-1.1.31-40.29.amzn1.noarch already installed and latest version
Nothing to do
Generating yum cache for varnishcache_varnish60...
The repository is setup! You can now install packages.
[root#aaa00web32 yum.repos.d]# yum install varnish
Loaded plugins: ovl, priorities
No package varnish available.
Error: Nothing to do
[root#aaa00web32 yum.repos.d]# yum update
Loaded plugins: ovl, priorities
No packages marked for update
[root#aaa00web32 yum.repos.d]#
Anyone has any idea what could be the issue here?
varnish 6.0 not support amazon linux
in [https://packagecloud.io/varnishcache/varnish60/install#bash-rpm][1] you could see in the install script
else
aws=`grep -q Amazon /etc/issue`
if [ "$?" = "0" ]; then
dist='6'
os='aws'
else
unknown_os
fi
amazon linux set dist to 6
in varnish download page [https://packagecloud.io/varnishcache/varnish60lts?page=1][2] you can see that there is no el6
same occur if you search for el6 tag [https://packagecloud.io/app/varnishcache/varnish60/search?dist=el%2F6][3]

How to install GitLab on CentOS 6 running WHM?

I am trying to install GitLab on my dedicated server with no luck.
Server info:
CENTOS 6.7 x86_64 standard
WHM 11.52.1 (build 2)
I tried this guide, but I keep getting the following error:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.ca.planethoster.net
* epel: mirrors.mit.edu
* extras: centos.mirror.iweb.ca
* updates: centos.mirrors.atwab.net
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.6.6-6.el6_7.1 will be installed
--> Processing Dependency: mysql-libs for package: 2:postfix-2.6.6-6.el6_7.1.x86_64
--> Finished Dependency Resolution
Error: Package: 2:postfix-2.6.6-6.el6_7.1.x86_64 (updates)
Requires: mysql-libs
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
When I run the following command:
sudo yum install postfix
I get the following error:
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 12 kB 00:00
* base: centos.mirror.iweb.ca
* epel: mirrors.mit.edu
* extras: centos.mirrors.atwab.net
* updates: centos.mirror.netelligent.ca
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.8 MB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.6 MB 00:00
virtualbox/signature | 198 B 00:00
virtualbox/signature | 951 B 00:00 ...
No package mysql-libs available.
Error: Nothing to do
When I run the following command:
sudo yum install mysql-libs
What I eventually did was skip the installation of postfix. I skipped it like so:
sudo yum install --skip-broken curl openssh-server openssh-clients postfix cronie
Then I edited the gitlab.rb config file using something like nano:
nano /etc/gitlab/gitlab.rb
and changed the external_url' and added to it a random unused port number:
external_url 'http://example.com:8443/'
then run
sudo gitlab-ctl reconfigure
for the change to take effect.
Voila it works.
It looks like a common problem with CentOS. Similar question has been answered here on fixing the yum install postfix and missing mysql-libs.
NOTE: Since I can't comment I will provide this as an answer and update based on any comments.
I suggest you use the Bitnami one-click install GitLab. It's very easy to install GitLab.
More info : https://bitnami.com/stack/gitlab
and Wiki is : https://wiki.bitnami.com/Applications/BitNami_GitLab#How_to_change_the_default_address_for_GitLab.3f

Installing R on RHEL 6

my questions is similar to this one -
Problems installing R on Linux CentOS 6.3
I installed epel, but when I run yum install R, I get the two dependency problems -
Error: Package: R-core-3.0.1-2.el6.x86_64 (epel)
Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
Error: Package: R-core-devel-3.0.1-2.el6.x86_64 (epel)
Requires: texinfo-tex
I tried installing texinfo-tex using the rpm file from -
http://rpm.pbone.net/index.php3/stat/4/idpl/15993086/dir/scientific_linux_6/com/texinfo-tex-4.13a-8.el6.x86_64.rpm.html
However, this takes me into a long tree of missing dependencies. I downloaded and tried installing 5 different rpm files and each time there were some missing dependencies. Ans this was just one branch of this tree of dependencies. I figured, there has got to be a better way. Can some one help? This has been driving me nuts.
Edit: Another option I'm trying is building R from source. Not sure if this will work given the missing packages though. For now however, it says it can't find a fortran compiler ("No F77 compiler found"). I installed gcc, thinking that it would have one, but apparently not.
on RHEL6.4 do
subscription-manager repos --enable rhel-6-server-optional-rpms
yum install texinfo-tex
rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install R
cheers Marten
I have the exact same problem and have spent about 3 hours attempting to find a yum repository out there for RHEL 6 that can solve this problem. So far, it appears that whoever added this dependency didn't actually try and install it once they added the dependency. These dependency mappings don't appear to exist anywhere in any repo that I can find.
…
So I got frustrated and tried this command
yum install texinfo-tex-4.13a-8.el6.x86_64.rpm
and it worked
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
CentALT | 951 B 00:00
elrepo | 2.9 kB 00:00
epel/metalink | 13 kB 00:00
epel-testing/metalink | 13 kB 00:00
mongodb | 951 B 00:00
puppetlabs-enterprise-extras | 1.9 kB 00:00
remi | 2.9 kB 00:00
rhel-source | 2.5 kB 00:00
rhel-x86_64-server-6 | 1.8 kB 00:00
rpmforge | 1.9 kB 00:00
scl_python27 | 2.9 kB 00:00
scl_ruby193 | 2.9 kB 00:00
Setting up Install Process
Examining texinfo-tex-4.13a-8.el6.x86_64.rpm: texinfo-tex-4.13a-8.el6.x86_64
Marking texinfo-tex-4.13a-8.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package texinfo-tex.x86_64 0:4.13a-8.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
texinfo-tex x86_64 4.13a-8.el6 /texinfo-tex-4.13a-8.el6.x86_64 387 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total size: 387 k
Installed size: 387 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : texinfo-tex-4.13a-8.el6.x86_64 1/1
Verifying : texinfo-tex-4.13a-8.el6.x86_64 1/1
Installed:
texinfo-tex.x86_64 0:4.13a-8.el6
Complete!
# yum install R
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package R.x86_64 0:3.0.1-2.el6 will be installed
--> Processing Dependency: R-devel = 3.0.1-2.el6 for package: R-3.0.1-2.el6.x86_64
--> Running transaction check
---> Package R-devel.x86_64 0:3.0.1-2.el6 will be installed
--> Processing Dependency: R-java-devel = 3.0.1-2.el6 for package: R-devel-3.0.1-2.el6.x86_64
--> Processing Dependency: R-core-devel = 3.0.1-2.el6 for package: R-devel-3.0.1-2.el6.x86_64
--> Running transaction check
---> Package R-core-devel.x86_64 0:3.0.1-2.el6 will be installed
---> Package R-java-devel.x86_64 0:3.0.1-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
R x86_64 3.0.1-2.el6 epel 19 k
Installing for dependencies:
R-core-devel x86_64 3.0.1-2.el6 epel 90 k
R-devel x86_64 3.0.1-2.el6 epel 19 k
R-java-devel x86_64 3.0.1-2.el6 epel 19 k
Transaction Summary
================================================================================
Install 4 Package(s)
Total download size: 147 k
Installed size: 326 k
Is this ok [y/N]:
Installing R on 6.6 RHEL 64 bit machine
After going through many pages i found this steps, so thought to share as a quick steps:
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
"It's a package which is preferred for RHEL machine."
sudo yum install tcl
“The Tcl package contains the Tool Command Language, a robust general-purpose scripting language. This package is known to build and work properly using an LFS-7.7 platform. This package is known to build and work properly using the gcc-5 compiler.”
sudo yum clean all
“Cleans the yum cache”
sudo yum install R
“For installing R”
Try this one
rpm -ivh http://mirror.unl.edu/epel/6/x86_64/epel-release-6-7.noarch.rpm
The second is:
#yum install R
Thanks & Regards,
Alok
Try sudo yum groupinstall “Development Tools”
This installs development tools which includes all compilers.
I am also trying to install the same. Tried building from source. Now trying to build with yum. Let's see how it goes
"I tried this.. it said "package epel-release-6-8.noarch is already installed". "
But not enabled... See: https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/
I was having the same issue, And many seem to be getting stuck on this.
The dependencies are available in the RedHat Repo [rhel-6-server-optional-rpms]. Enable the repo and R should install.

Resources