Got error when install mongodb on centos 6.5(64bits) - linux

I am installing mongodb on CentOS 6.4, but have following error:
Error: Package: mongodb-org-server-3.0.1-1.amzn1.x86_64 (mongodb-org-3.0)
Requires: libstdc++.so.6(GLIBCXX_3.4.14)(64bit)
Error: Package: mongodb-org-server-3.0.1-1.amzn1.x86_64 (mongodb-org-3.0)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
How can I install that library. Thank you

Run package-cleanup --problems to list all dependencies and then install those dependencies.

Related

Can't install condor on CentOS

I have been trying to install condor on my centos virtual machine but keep getting the following errors:
--> Finished Dependency Resolution
Error: Package: condor-classads-8.5.5-1.el6.x86_64 (htcondor-development)
Requires: libpcre.so.0()(64bit)
Error: Package: condor-8.5.5-1.el6.x86_64 (htcondor-development)
Requires: ecryptfs-utils
Error: Package: condor-8.5.5-1.el6.x86_64 (htcondor-development)
Requires: libpcre.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I looked around online and tried all the suggestions but nothing's worked. I did the next logical thing and tried to install those packages but doing yum install ecryptfs-utils gave me "Nothing to do," message. Same with libpcre.so.0() I'm a beginner with Linux so I don't know what I'm doing wrong here. Help appreciated.
I had the same issue, and this was happening because yum was trying to install different version of condor. I was running centos 6.6, but yum was trying to install centos 7 (rhel 7) version. The reason for this was, by mistake, I initially downloaded and setup the rhel7 repo details of condor, and results got cached.
The solution is to clear yum cache (yum clean all), download the correct condor repo for your CentOS version/arch (use rpm -q centos-release to find this out), and then install (yum install condor-all).
Get condor from the official location. It has all the binaries it needs.

Failed to install Varnish due to dependencies errors

I'm trying install varnish on CentOS 6.7 and get following errors. Can somebody help?
yum install varnish
.....
Finished Dependency Resolution
Error: Package: varnish-libs-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: systemd-units
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: libpcre.so.1()(64bit)
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: varnish-libs-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: libpcre.so.1()(64bit)
Error: Package: varnish-4.1.0-1.el7.x86_64 (varnish-4.1)
Requires: systemd-sysv
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
You will need to install varnish from source. Follow these steps:
https://www.varnish-cache.org/docs/trunk/installation/install.html#compiling-varnish-from-source
Start by downloading the tarball:
http://repo.varnish-cache.org/source/
Then install the packages listed:
yum install -y autoconf automake jemalloc-devel libedit-devel libtool ncurses-devel pcre-devel pkgconfig python-docutils python-sphinx graphviz
tar xzvf downloaded-filename.tar.gz
cd name-of-the-folder-from-tarball
sh autogen.sh
sh configure
make
make check
(go make some tea)
make install
Read the notes on starting the service: https://www.varnish-cache.org/docs/trunk/installation/install.html#compiling-varnish-from-source
I'm not allowed to comment but I've upvoted the answer above. I just used it to install Varnish 5.2 on Amazon Linux. The downside of this approach is that you don't get a nice tidy "sudo service varnish start" option, but the upside is that at least you've got Varnish 5.
One change to the answer above. The location of the source has changed. You'll find it here now:
http://varnish-cache.org/releases/

Clusterlabs pacemaker will not install on centos5

I'm trying to install pacemaker on my centos 5.11 test server. I'm setting up a 2 node cluster for postgres. Pacemaker install failed due to dependency of package resource-agents. I cannot find the rpm in any of the centos repo at clusterlabs. I found the source rpm and compiled and installed succesfully. Pacemaker still fails to find resource-agents.
--> Finished Dependency Resolution
pacemaker-1.1.8-2.el5.i686 from clusterlabs-next has depsolving problems
--> Missing Dependency: resource-agents is needed by package pacemaker-1.1.8-2.el5.i686 (clusterlabs-next)
pacemaker-1.1.8-2.el5.x86_64 from clusterlabs-next has depsolving problems
--> Missing Dependency: resource-agents is needed by package pacemaker-1.1.8-2.el5.x86_64 (clusterlabs-next)
Error: Missing Dependency: resource-agents is needed by package pacemaker-1.1.8-2.el5.x86_64 (clusterlabs-next)
Error: Missing Dependency: resource-agents is needed by package pacemaker-1.1.8-2.el5.i686 (clusterlabs-next)
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
I'm not sure where resource-agents is supposed to be installed. I copied the source to a temp dir and extracted and compiled there. Is it possible resource-agents is not installed in the correct location?
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5*.rpm
wget -O /etc/yum.repos.d/pacemaker.repo http://clusterlabs.org/rpm/epel-5/clusterlabs.repo
then finally,
yum install -y pacemaker.$(uname -i) corosync.$(uname -i)

Linux installation problems - R

I see the following error while installing R on one of my Centos VE:
Error: Package: R-core-3.1.0-5.el5.x86_64 (epel)
Requires: libtcl8.4.so()(64bit)
Error: Package: R-core-3.1.0-5.el5.x86_64 (epel)
Requires: libtk8.4.so()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I tried installing R with the following commands:
rpm -ivh http://mirror.chpc.utah.edu/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
yum install R
Any help ?
Install these two Dependency files first-
tcl-devel
tk-devel
Follow the following commands
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum install tcl
sudo yum clean all
sudo yum install R

NPM Dependencies Error on CentOS Yum

My build script installs NPM on CentOS in the following way:
yum -y update
yum install -y wget
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum --enablerepo=epel -y groupinstall "Development Tools"
yum --enablerepo=epel -y install npm
At some point in the last week, I have been getting the following dependency issue:
Error: Package: nodejs-npm-registry-client-0.2.28-1.el6.noarch (epel)
Requires: npm(semver) >= 2.1.0
Installing: nodejs-semver-2.0.10-1.el6.noarch (epel)
npm(semver) = 2.0.10
Error: Package: nodejs-request-2.21.0-1.el6.noarch (epel)
Requires: npm(form-data) < 0.1
Available: nodejs-form-data-0.1.1-1.el6.noarch (epel)
npm(form-data) = 0.1.1
Error: Package: nodejs-request-2.21.0-1.el6.noarch (epel)
Requires: npm(form-data) < 0.1
Installing: nodejs-form-data-0.1.1-1.el6.noarch (epel)
npm(form-data) = 0.1.1
Error: Package: nodejs-npm-registry-client-0.2.28-1.el6.noarch (epel)
Requires: npm(request) >= 2.25.0
Installing: nodejs-request-2.21.0-1.el6.noarch (epel)
npm(request) = 2.21.0
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have been able to install NPM from source which is fine, but I would prefer to use the yum package. Can anyone provide some pointers for me? Thanks!
We used the epel-testing repo to install npm and bypass the issues with the epel repo
yum --enablerepo=epel-testing install npm
Update: This is fixed for the epel repo
yum install npm
With a clean CentOS 6.5 install I only needed to get the latest epel repository here:
http://mirrors.servercentral.net/fedora/epel/6/i386/repoview/epel-release.html
You can use wget or a GUI browser to fetch the package linked on that page:
http://mirrors.servercentral.net/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
Run the rpm install and epel will be enabled by default and npm can be installed with dependencies with a standard yum install command:
yum install npm

Resources