Boost-Libboost is needed in Centos7 (ContexBroker) - boost

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!

Related

How can I install libdouble-conversion-dev on Ubuntu 18.04?

I tried installing the libdouble-conversion-dev package using sudo apt-get install libdouble-conversion-dev but failed with the following output:
Package libdouble-conversion-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libdouble-conversion-dev' has no installation candidate
I have also tried running sudo apt-get update beforehand and got the same results, as well as installing from the debian file from https://packages.debian.org/buster/amd64/libdouble-conversion-dev/download but nothing seemed to have changed.
You can manually install a Debian package on a compatible Ubuntu host with sudo dpkg -i $name_of_package_file.

CentOS 7 : How can i fix this Error? (Yum : Error Nothing to do)

First, I'm so sorry to my english, not perfect.
I was faced with problem while testing a .sh file.
That because of error Nothing to do..
That phrase is the phrase that appeared when executing yum -y install perl-CPAN, but before that, yum -y groupinstall 'Development Tools' worked normally.
And It was successful when I typed it directly instead of yum -y install perl-CPAN.
I tried solutions like below but the result was the same.
Edit and Install
# cd /etc/yum.repos.d
# vi CentOS-Base.repo
Enable =0 -> 1
# yum install epel-release
# ./setup.sh
ps : Many people have recommended this solutions.
Check
check already install
check the correct install repository
Thanks to read my situation, and have a nice day.
Although I do not know what setup.sh you are refering to is, yum says Nothing to do. if you have the package already installed. To check if you have the package installed, you can use rpm. If the package is not installed, it will give you:
# rpm -q perl-CPAN
package perl-CPAN is not installed
Then if you install the package, e.g. with:
# yum -y install perl-CPAN
[...]
Complete!
Then you can verify package is installed:
# rpm -q perl-CPAN
perl-CPAN-2.28-5.fc33.noarch
Note I have tested on Fedora 33, but there should not be much difference to CentOS in this regards.

How do I install lubicu66 on Ubuntu 20.04?

I am trying to install Ezra-project on Ubuntu 20.04. When I run the install it fails and says:
dpkg: dependency problems prevent configuration of ezra-project:
ezra-project depends on libicu66; however:
Package libicu66 is not installed.
I tried installing libicu66 with
sudo apt install libicu66
But it says
Package libicu66 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libicu66' has no installation candidate
Is libicu66 available for Ubuntu 20.04? If so, please could someone direct me to where to download it from?
I faced same problem when i tried to install couchdb.
The solution i found was installing it manually.
Go to https://www.ubuntuupdates.org/package/core/focal/main/base/libicu66 and download the proper version for your CPU architecture.
It could be done with wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2_[YOUR_CPU_ARCHITECTURE].deb
Then in the same folder use sudo apt update && sudo dpkg -i libicu66_66.1-2ubuntu2_[YOUR_CPU_ARCHITECTURE].deb

No ruby-devel in RHEL7?

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

what packages do I need to install on Ubuntu to get ruby-opengl to compile?

I am trying to use the ruby-opengl package, when I install it the compliler complains that it cannot find the correct header files. What Ubuntu packages (9.10) do I need to make this work?
libopengl-ruby1.8 and libopengl-ruby1.9 have both been in ubuntu's universe repository since Hardy (8.04). Is there a reason you absolutely must compile from source? If so, you could try running sudo aptitude build-dep libopengl-ruby1.9 or sudo aptitude build-dep libopengl-ruby1.8. That ought to grab the packages you need.

Resources