I have problem with installation check_mk on amazon-ec2.
I have already installed nagios core successfully and I try now install check_mk plugin by rpm:
rpm -ivh check-mk-raw-1.2.8p17-el7-40.x86_64.rpm
Rpm stop and return list of needed dependencies for installation. Most of them I installed successfully but I have problem with rest of it.
error: Failed dependencies:
mariadb-server is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
python-reportlab is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
libgsf is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
Mariadb
I followed instruction from site https://downloads.mariadb.org/mariadb/repositories/
Next I created MariaDB.repo file in /etc/yum.repos.d/ directory with content:
# MariaDB 10.1 RedHat repository list - created 2017-02-28 11:57 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/rhel7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
After that I tried install MariaDB by command:
sudo yum install MariaDB-server MariaDB-client
In result I got follow errors
Error: Package: MariaDB-server-10.1.21-1.el7.centos.x86_64 (mariadb)
Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
Error: Package: MariaDB-server-10.1.21-1.el7.centos.x86_64 (mariadb)
Requires: libsystemd.so.0()(64bit)
So I tried install systemd, in result I got:
configure: error: *** libmount support required but libraries not found
when I tried install it by yum I received:
Package libmount-2.23.2-26.27.amzn1.x86_64 already installed and latest version
Nothing to do
Python-reportlab
rpm -Uvh python-reportlab-3.1.8-5.fc23.x86_64.rpm
warning: python-reportlab-3.1.8-5.fc23.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY
error: Failed dependencies:
python-pillow is needed by python-reportlab-3.1.8-5.fc23.x86_64
rpm -Uvh python-pillow-3.0.0-1.fc23.i686.rpm
warning: python-pillow-3.0.0-1.fc23.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY
error: Failed dependencies:
libc.so.6 is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.0) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.1) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.1.3) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.11) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.3) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.3.4) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.4) is needed by python-pillow-3.0.0-1.fc23.i686
libfreetype.so.6 is needed by python-pillow-3.0.0-1.fc23.i686
libjpeg.so.62 is needed by python-pillow-3.0.0-1.fc23.i686
libjpeg.so.62(LIBJPEG_6.2) is needed by python-pillow-3.0.0-1.fc23.i686
liblcms2.so.2 is needed by python-pillow-3.0.0-1.fc23.i686
libopenjp2.so.7 is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0 is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.0) is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.1) is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.2) is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.3.2) is needed by python-pillow-3.0.0-1.fc23.i686
libpython2.7.so.1.0 is needed by python-pillow-3.0.0-1.fc23.i686
libtiff.so.5 is needed by python-pillow-3.0.0-1.fc23.i686
libtiff.so.5(LIBTIFF_4.0) is needed by python-pillow-3.0.0-1.fc23.i686
libwebp.so.5 is needed by python-pillow-3.0.0-1.fc23.i686
libwebpdemux.so.1 is needed by python-pillow-3.0.0-1.fc23.i686
libwebpmux.so.1 is needed by python-pillow-3.0.0-1.fc23.i686
libz.so.1 is needed by python-pillow-3.0.0-1.fc23.i686
rpm -Uvh glibc-2.24-3.fc25.i686.rpm
warning: glibc-2.24-3.fc25.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fdb19c98: NOKEY
error: Failed dependencies:
glibc-common = 2.24-3.fc25 is needed by glibc-2.24-3.fc25.i686
glibc-langpack = 2.24-3.fc25 is needed by glibc-2.24-3.fc25.i686
rpm -ivh glibc-common-2.25-1.fc26.x86_64.rpm
warning: glibc-common-2.25-1.fc26.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 64dab85d: NOKEY
error: Failed dependencies:
/usr/bin/bash is needed by glibc-common-2.25-1.fc26.x86_64
glibc = 2.25-1.fc26 is needed by glibc-common-2.25-1.fc26.x86_64
libgsf
I installed it from source (libgsf-1.14.0) successfully, nevertheless when I trying use rpm check-mk installation command I see it in failed dependencies. Can I somehow add it to rpm list manually?
I will be grateful for any clue. I struggle with it too long without progress.
os-release:
NAME="Amazon Linux AMI"
VERSION="2016.09"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.09"
PRETTY_NAME="Amazon Linux AMI 2016.09"
Architecture: x86_64
28.02.2017 EDIT:
Successfully I installed MariaDB:
Package MariaDB-server-10.1.21-1.el6.x86_64 already installed and latest version
Package MariaDB-client-10.1.21-1.el6.x86_64 already installed and latest version
but still I get failed dependencies:
rpm -Uvh check-mk-raw-1.2.8p17-el7-40.x86_64.rpm
error: Failed dependencies:
mariadb-server is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
python-reportlab is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
libgsf is needed by check-mk-raw-1.2.8p17-el7-40.x86_64 how resolve it?
01.03.2017 EDIT:
Finally I installed version for rhel6 and it's working now.
I think I can help with MariaDB, today I encountered with the same issue.
I was trying to install the latest MariaDB 10.1 and I got the same error as you there. Docker community had this issue some time ago and they just upgraded RHEL 7.1 to newer version and all the problems were gone.
As we all know, with Amazon Linux it's not so simple.
So I followed these steps and I was able to install MariaDB 5.5 (for my purposes it was OK)
Modify your MariaDB.repo file with this content (actually, only baseurl changes):
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Clean repos metadata
sudo yum clean metadata
Finally, try to install MariaDB server and client
sudo yum install -y MariaDB-server MariaDB-client
It worked very well for me. Good luck.
Related
I am new to Centos.
When I tried to install ffmpeg in Centos, followed this link.
Error: Package: ffmpeg-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libSDL-1.2.so.0()(64bit)
Error: Package: ffmpeg-libs-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libschroedinger-1.0.so.0()(64bit)
Error: Package: libavdevice-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libopenal.so.1()(64bit)
Error: Package: libavdevice-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libSDL-1.2.so.0()(64bit)
Error: Package: ffmpeg-libs-2.8.15-2.el7.nux.x86_64 (nux-dextop)
Requires: libass.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
When I tried to install libSDL-1.2.so.0, I have another dependencies errors.
What is usual practice of installation in Centos?
I go to Centos repository and download rpm binary package.
Then use the command as follow.
sudo yum --nogpgcheck localinstall xxxxxxxxxxx.rpm
If there are dependency packages to install, I tried to install those dependencies first.
We need to install epel repository first for Centos 7.
https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/
Then install from epel repository using yum install command.
I'm' trying to install GoCD Agent with sudo yum install -y go-agent
However, I'm getting the following error.
Resolving Dependencies
--> Running transaction check
---> Package go-agent.noarch 0:19.6.0-9515 will be installed
--> Processing Dependency: sysvinit-tools for package: go-agent-19.6.0-9515.noarch
--> Finished Dependency Resolution
Error: Package: go-agent-19.6.0-9515.noarch (gocd)
Requires: sysvinit-tools
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I tried installing sysvinit-tools with sudo yum install sysvinit-tools
I'm getting the following error.
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
No package sysvinit-tools available.
Error: Nothing to do
I'm on Amazon Linux AMI
In your case you appear to be on Amazon Linux AMI 2018.03 which is rather old and does not have sysvinit-tools.
I would recommend upgrading your machine, and to avoid upgrading sysvinit manually.
for centos7:
you can find that package in the epel repositories
First add the epel repository:
yum install epel-release
now you will be able to install sysvinit-tools:
yum install sysvinit-tools
I'm trying to install rvm with latest ruby on a centos 5 server, rvm is already installed with no ruby, it throws an error when trying to install ruby, something regarding git.
$ uname -a
Linux 2.6.18-308.24.1.el5PAE #1 SMP Tue Dec 4 18:28:32 EST 2012 i686 i686 i386 GNU/Linux
$ rvm install ruby-2.2-head
Checking requirements for centos.
Installing requirements for centos.
Installing required packages: git, autoconf.......
Error running 'requirements_centos_libs_install git autoconf',
showing last 15 lines of /home/ruby/.rvm/log/1442954643_ruby-2.2-head/package_install_git_autoconf.log
--> Missing Dependency: perl(Error) is needed by package git-1.8.2.1-1.el5.i386 (epel)
git-1.8.2.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl(Term::ReadKey) is needed by package git-1.8.2.1-1.el5.i386 (epel)
git-1.8.2.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl(Git) is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl-Git = 1.8.2.1-1.el5 is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Term::ReadKey) is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Git) is needed by package git-1.8.2.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Error) is needed by package git-1.8.2.1-1.el5.i386 (epel)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
++ return 1
++ return 1
Requirements installation failed with status: 1.
$ git --version
git version 1.6.4.4
This hosts uses cpanel.
I've tried directly installing with yum, same error, tried also to remove git
# yum remove git
Failed to set locale, defaulting to C
Loaded plugins: downloadonly, fastestmirror
Setting up Remove Process
No Match for argument: git
My guess is that Cpanel has git installed, but is an outdated version, could be this?
Try the answers provided here -- https://github.com/rvm/rvm/issues/2696 -- specifically fixing whatever goes wrong when you try to do this...
yum install -y libyaml-devel autoconf gcc-c++ readline-devel zlib-devel openssl-devel
I have a recently installed RHEL7 system, and need to do gem install jekyll, however this fails as:
Fetching: yajl-ruby-1.2.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
Google suggest this is due to the lack of a ruby-devel package being installed. However there doesn't seem to be such a package in RHEL7. Do I need to move to a software collection (don't really want to do this as this will be for a production machine, not development) or can I get it some other way?
This answer comes by way of piecing together bits from other answers - so to the previous contributors...thank you because I would not have figured this out.
This example is based on the RHEL 7 AMI (Amazon Managed Image) 3.10.0-229.el7.x86_64.
So by default as mentioned above the optional repository is not enabled. Don't add another repo.d file as it already exists just that it is disabled.
To enable first you need the name. I used grep to do this:
grep -B1 -i optional /etc/yum.repos.d/*
above each name will be the repo id enclosed in [ ] look for the optional not optional-source
Enable the optional repo:
yum-config-manager --enable <repo-id>
Refresh the yum cache (not sure if this is necessary but it doesn't hurt):
sudo yum makecache
Finally, you can install ruby-devel:
yum install ruby-devel
Depending on your user's permissions you may need to use sudo.
You need to subscribe to the optional repo to get all the devel packages.
subscription-manager repos --enable rhel-7-server-optional-rpms
This is because the ruby-devel package is contained in the rhel-7-server-optional-rpms repository.
At least on Oracle Linux 7 you have to enable an additional repo.
[root#foo ~]# yum repolist
repo id repo name
[...]
ol7_optional_latest/x86_64 Oracle Linux 7Server Optional Latest (x86_64)
After enabling the repo ruby-devel sits there, awaiting your installation.
[root#foo ~]# yum info ruby-devel | egrep 'Name|Version|From'
Name : ruby-devel
Version : 2.0.0.598
From repo : ol7_optional_latest
That's all.
ruby-devel RPM is available in the following repo on RHEL 7
rhel-7-server-optional-beta-rpms
Set "enabled = 1" for this repo in your .repo file and then run
yum install ruby-devel
additional repos are available to your RHEL 7
# yum -y install yum-utils
# yum repolist all
This will list all available repos. Enable the repo you need. The devel packages are in extras for instance:
# yum-config-manager --enable rhui-REGION-rhel-server-extras
After performing these steps, I could then install ruby-devel, augeas-devel and install/compile
# gem install ruby-augeas
I had the same issue and ended up downloading the package from:
https://www.rpmfind.net/linux/rpm2html/search.php?query=ruby-devel
In RHEL7.5, this package can be installed with:
rpm -ivh ruby-devel-2.0.0.648-33.el7_4.x86_64.rpm
Also, the development tools can be installed before that using:
yum groupinstall "Development Tools"
Install ruby package on your system and try again.
sudo yum install ruby193-ruby-devel.x86_64
You can download from:
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/ruby-devel(x86-64)
Something like this would work:
wget ftp://bo.mirror.garr.it/1/centos/7.2.1511/os/x86_64/Packages/ruby-devel-2.0.0.598-25.el7_1.x86_64.rpm
rpm -ivh ruby-devel-2.0.0.598-25.el7_1.x86_64.rpm
I am trying to install ContextBroker in Centos7:
sudo rpm -i contextBroker-0.14.1-1.X86_64.rpm
But I am getting the next error:
error: Failed dependencies:
libboost_filesystem-mt.so.5()(64bit) is needed by contextBroker-0.14.1-1.x86_64
libboost_system-mt.so.5()(64bit) is needed by contextBroker-0.14.1-1.x86_64
libboost_thread.so.5()(64bit) is needed by contextBroker-0.14.1-1.x86_64
Up to this point I thought that the solution was clear, lets install:
sudo yum install boost boost-devel boost-doc
But it was not functioning and Centos7 was giving me the same error.
Then I though that maybe it was because the static versiĆ³n was needed as the error is related to libboost and not directly boost ( I do not know if this was a good assumption),but I tried and it was not functioning and Centos7 was giving me the same error.
The thing is that I am able to find those files, but I dont know how to give dependencies to rpm and in case is not possible I tried to install the following packages:
sudo rpm -i boost-1.53.0-18.el7.x86_64.rpm
However to be able to install the following two packages, I had to install boost-devel using yum, because when I tried to install the package boost-devel.1.53.0-18.el7.x86_64.rpm I was missing a lot of dependencies.
sudo rpm -i boost-static-1.53.0-18.el7.i686.rpm
(Edit. The extension .i686 is for 32 bits, so this package was not needed.)
sudo rpm -i boost-static-1.53.0-18.el7.x86_64.rpm
The result was the same.. so I have two questions:
1.Can someone tell me the name or pass me the link of the boost rpm that I am missing and that is not allowing me to install directly boost-devel from the rpm.
2.Which one is the correct order to install all the boost rpm packages in Centos7?
Thanks!!
Edit:
I found that the extension of the files that are in my system end with .so.1.53.0, and the dependencies that the rpm is asking for end with .so.5()(64bit). Can it be that the rpm is looking for a specific version of the dependencies?
here is what I did on centos 6.5 x64
get the rpm package
wget --no-check-certificate https://forge.fi-ware.org/frs/download.php/1502/contextBroker-0.15.0-1.x86_64.rpm
then because of the dependencies required (listed in https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Publish/Subscribe_Broker_-_Orion_Context_Broker_-_Installation_and_Administration_Guide#Requirements )
we need to install EPEL (see http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F ) by running
yum install epel-release
then install each dependency:
yum install boost-filesystem
yum install boost-thread
yum install libmicrohttpd
yum install logrotate
then
rpm -i contextBroker-0.15.0-1.x86_64.rpm
it worked for me.
Hope this help
Finally I have been able to resolve the problem with the dependencies.
ContextBroker is depending on the old packages of boost for Centos 6, so to be able to install ContextBroker in Centos7 you have to remove the newest versions of boost from the system (to me this solution was not a problem, because in my case I am using a VM just to be able to exclusively use contextBroker but this can be a real problem with the dependencies of other packages that are using the corresponding version of boost for Centos7):
sudo yum remove boost boost-devel boost-system boost-filesystem boost-thread
Later it is needed the downloading and installation of the old packages:
sudo rpm -Uvh boost-thread-1.41.0-25.el6.x86_64.rpm
sudo rpm -Uvh boost-system-1.41.0-25.el6.x86_64.rpm
sudo rpm -Uvh boost-filesystem-1.41.0-25.el6.x86_64.rpm
And then is possible to install ContextBroker:
sudo rpm -i context-0.15.0-1.x86_64.rpm
I hope this helps to the new contextBroker's users!