Apache Thrift 0.9.0 won't configure per instructions - centos

Apache Thrift 0.9.0 won't configure per instructions on base CentOS install. When you try to do the ./configure, it gives you an "Error: libcrypto required"
The documentation says that you need:
sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel
http://thrift.apache.org/docs/install/centos/

The documentation is missing the openssl dependency, you also need to include:
openssl-devel.x86_64 in your package install list above
What you really need to install is
sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel openssl-devel.x86_64
Or just this if you've already installed the above per the original instructions.
sudo yum install openssl-devel.x86_64

Related

How to apt install python-pybind11?

I see form my project document that I need to install python-pybind11 by using
sudo apt -y install python-pybind11
but I got error like this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pybind11
I'm not sure if python-pybind11 is a valid package, where can I check it?
Use this to install pybind11:
pip install pybind11
Refer from Here.
In Ubuntu 18.04
apt-get install python-pybind11
On Mac,
brew install pybind11
In Ubuntu 16.04, you'll need to install yourself. One way is as follows:
# Some prerequisites (but not all of them)
apt-get install cmake
pip3 install pytest
# Clone, build and install
git clone https://github.com/pybind/pybind11.git
cd pybind11
mkdir build
cd build
cmake ..
make install
Reference
In some systems, you may need
sudo apt -y install python3-pybind11

How to install devtoolset-7 i686 on CentOS 6?

To install devtoolset-7.x86_64 on CentOS6 is pretty easy:
yum install -y centos-release-scl
yum install -y devtoolset-7-toolchain
However, i686 is not available for download: http://mirror.centos.org/centos/6/sclo/
So I found http://repo.cloudlinux.com/cloudlinux/6.10/sclo/devtoolset-7/i386/ but I don't how to add to my repo list e.g. yum-config-manager --add-repo
Is it possible install devtoolset-7 for i686? Is there another option?

Docker base image for perl; E: Package 'libssl1.0.0' has no installation candidate

I have a dockerfile that uses perl:5.22 as the base image
When I do:
#Dockerfile:
From perl:5.22
RUN apt-get update && apt-get install libssl1.0.0 libssl-dev
I get this error:
When I do: sudo apt-cache policy libssl1.0.0 in the dockerfile, like this:
#Dockerfile:
From perl:5.22
RUN apt-cache policy libssl1.0.0 && \
apt-cache policy libssl-dev
RUN apt-get update && apt-get install libssl1.0.0
I get:
Step 2/3 : RUN apt-cache policy libssl1.0.0 && apt-cache policy
libssl-dev ---> Running in a60f0185ef5a libssl1.0.0:
Installed: (none)
Candidate: (none)
Version table:
libssl-dev:
Installed: 1.1.0f-3+deb9u2
Candidate: 1.1.0f-3+deb9u2
Version table:
*** 1.1.0f-3+deb9u2 500
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
100 /var/lib/dpkg/status
1.1.0f-3+deb9u1 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
There's no available candidate to install libssl1.0.0; I get:
E: Package 'libssl1.0.0' has no installation candidate
However there's a candidate to install the libssl-dev package, but none for the libssl1.0.0
I'm new with docker; does the perl 5.22 base image already come with libssl1.0.0 already preinstalled in the image? I couldn't see it in their base image and secondly, *how do I install this package (libssl1.0.0) in my dockerfile if there's no candidate available to install it*?
Lastly, since the base image already comes preinstalled with the libssl-dev could I use this package, libssl-dev, instead of the libssl1.0.0, is there a difference between libssl-dev and libssl1.0.0 ?
Actually, it is already installed by default.
$ docker run -it perl:5.22 /bin/bash
root#e5315bc25223:~# apt search libssl
Sorting... Done
Full Text Search... Done
libssl-dev/now 1.1.0f-3+deb9u2 amd64 [installed,local]
Secure Sockets Layer toolkit - development files
libssl1.0.0/now 1.0.1t-1+deb8u8 amd64 [installed,local]
Secure Sockets Layer toolkit - shared libraries
The perl image is based on debian:stretch, which no longer supports libssl1.0.0. You can pull the package from jessie (https://packages.debian.org/jessie/libssl1.0.0) and install with dpkg.
Sample Dockerfile addition:
RUN wget "http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u8_amd64.deb" \
&& dpkg -i libssl1.0.0_1.0.1t-1+deb8u8_amd64.deb
Regarding the version, apt show libssl-dev gives:
Package: libssl-dev
Version: 1.1.0f-3+deb9u2
As far as if you can use 1.1.0 instead of 1.0.0, that really depends on your software's requirements.

In Centos 6.4,when configure Emacs

In Centos 6.4,when configure Emacs,it shows:
configure: error: The required function `tputs' was not found in any library.
The following libraries were tried (in order):
libtinfo, libncurses, libterminfo, libtermcap, libcurses
Please try installing whichever of these libraries is most appropriate
for your system, together with its header files.
For example, a libncurses-dev(el) or similar package.
How to fix it,what's the problem in it.
sudo yum install ncurses-devel
then ./configure again
Try to install libncurses-dev with
bash
apt-get install libncurses-dev
I'm on a Debian Wheezy derived distribution (CrunchBang)
Trying to install Emacs 24.5.1
Had to install libncurses5-dev, then run ./configure
$ sudo apt-get install ncurses-devel
...
E: Unable to locate package ncurses-devel
$ sudo apt-get install libncurses5-dev

How to install iconv-devel on CentOS 5.6?

After installing rvm on CentOS 5.6 and run rvm notes:
dependencies:
# For RVM
rvm: yum install -y bash curl git # NOTE: For git you need the EPEL repository enabled
# For Ruby (MRI & Ree) you should install the following OS dependencies:
ruby: yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel ;
yum install -y make bzip2 ;
yum install -y iconv-devel # NOTE: For centos 5.4 final iconv-devel might not be available :(
However iconv-devel cannot be found:
Setting up Install Process
No package iconv-devel available.
Nothing to do
How can I install it?
You don't have to worry about it on CentOS 5.4+ (and some other Red Hat-based systems).
It's already provided in the glibc library:
http://www.kannel.org/pipermail/users/2008-August/005444.html
Error when trying to run gem install