Cannot install Flexisip (Linphone SIP server) on Centos 6.8 - centos

I am building Voice Call feature for Android app by using Linphone.
On server (CentOS 6.8), I install Flexisip by tutorial on Homepage of Linphone wiki (https://wiki.linphone.org/wiki/index.php/Flexisip:installation).
However in step 1, I cannot install "EPEL repository" for hiredis-devel package because this link is not found: http://mirror.ibcp.fr/pub/epel/7/x86_64/repoview/epel-release.html. If I ignore step 1, then when install Flexisip, it require hiredis-devel with version 0.11 or higher.
So I have some questions:
Can I install Flexisip on CentOS 6.8 ? or Flexisip require CentOS 7 and more recent ?
If I can install Flexisip on CentOS 6.8, how can I install hiredis-devel with version 0.11 or higher ? (because Flexisip require hiredis-devel with version 0.11 or higher, I only can install hiredis-devel with version 0.10 on CentOS 6.8)
Thanks all (sorry I am not native English speaker)

First, you need to download the file using Wget and then install it using RPM on your system to enable the EPEL repository. Use below links based on your Linux OS versions. (Make sure you must be root user).
RHEL/CentOS 7 64 Bit
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
RHEL/CentOS 6 32-64 Bit
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
RHEL/CentOS 6 64-Bit ##
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

Related

How to install glib2.64 on Ubuntu 16.04

I have Ubuntu 16.04.6 LTS and installed glib version returned by pkg-config --modversion glib-2.0 is 2.48.2.
I want to install latest glib 2.64 for my development uses.
I tried with sudo apt-get install libgtk2.0-dev but it is saying I have already latest version installed 2.48.2-0ubuntu4.6.
I would recommend upgrading to a later LTS version, or using a VM, a Docker container, or a Flatpak container.
If that's not possible, you might try building it and installing it yourself into a different prefix (configure with meson -Dprefix=/opt/glib or whatever). You could look into using a tool such as JHBuild to manage the prefix, but it might be more complicated than you need.

CPP-REST-SDK in Centos 7

I have a CentOS 7 (EPEL-Repo is registered) but I do not find the package for CPP-REST (libcpprest-dev in Debian) in the repos.
Do I need to install it from vanilla or is there a package in CentOS?
Thanks!
Short answer...
There is not an "official" CentOS 7 package at this time (2018-10-03) for cpprestsdk (libcpprest-dev in Debian).
Long answer (sharing this in case it helps anyone)...
You could build cpprestsdk from source, but the instructions "How to build for Linux" (https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-Linux) do not include CentOS or RHEL (at the time of this writing, 2018-10-03).
Before building cpprestsdk on CentOS 7, you'll need to update boost (at time of this writing CentOS 7 repos have boost 1.53, but 1.54 is required, and 1.68 is latest). You can do this to update (using boost 1.68 as example):
cd && wget https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.gz
tar -xzvf boost_1_68_0.tar.gz
cd ~/boost_1_68_0
./bootstrap.sh --prefix=/opt/boost
sudo ./b2 install --prefix=/opt/boost --with=all
After updating boost, I was able to build cpprestsdk on CentOS 7 like this...
Install some needed tools/libraries:
sudo yum -y install git cmake3 openssl-devel gcc-c++ make
Download the cpprestsdk project:
git clone https://github.com/Microsoft/cpprestsdk.git casablanca
cpprestsdk wants to treat warnings as errors. I had to turn this off by commenting out this line in ~/casablanca/Release/CMakeLists.txt:
#set(WERROR ON CACHE BOOL "Treat Warnings as Errors.")
Prepare/build cpprestsdk project:
cd casablanca/Release
mkdir build.release && cd build.release
cmake3 .. -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=/opt/boost
make
Install header files and library
sudo make install
Notice that I am calling cmake3 (not cmake) and I am specifying the boost root; which differs from the official instructions that appear to be written and tested for Ubuntu (not CentOS or RHEL). To build my projects using cpprestsdk, I had to use ldconfig to find the library paths.

Installing python-setuptools 20.4 or greater on CENTOS 7 for CKAN server

I am trying to install setuptools 20.4 or greater as it is a requirement for CKAN. I have tried downloading the rpm files and installing it but CKAN does not recognize the python2 rpm.
I am running a virtualenv for the ckan server under use ckan with the bash shell.
Does anybody have advice on how to properly install setuptools 20.4 or greater on centos?
If not using pip to upgrade setuptools, install/upgrade setuptools before you create the virtualenv.
I believe the rpm will update the system python's setuptools. When you create the virtualenv it copies the system setuptools into the virtualenv.
I had to update python to version 2.7.13 and then download setuptools from the python repository. Centos doesn't have official support for any python above 2.7.5 which is problematic as I have to add exclusions to yum update. Ckan does require setuptools installed this is not optional, on install it is listed as a critical error.

glibc 2.11 error on Marklogic 8.0 installation on CentOS 6.6

When I try to install Marklogic 8.0 (MarkLogic-8.0-2.x86_64.rpm) on CentOS6.6 it fails with following error:
error: Failed dependencies:
libc.so.6(GLIBC_2.11) is needed by MarkLogic-8.0-2.x86_64
I checked installed package of glibc and found that GLIB_2.12 is installed.
I tried erasing GLIBC_2.12, but Cent OS doesn't allow because it has dependencies.
I would appreciate if somebody help me how to install Marklogic 8.0 on CentOS6.6 keeping glibc 2.12 or how to downgrade glib version on CentOs
I haven't tested myself with CentOS 6.6, but am running CentOS 6.5 a lot. Did you try running this before the RPM?
yum -y install glibc.i686 gdb.x86_64 redhat-lsb.x86_64
See also Install Marklogic centos virtualbox vm
HTH!
To add to this: you're seeing this message when you attempt to install because a dependent library is unavailable; in the case of this particular message, if you run this beforehand:
yum install glibc.i686
You should get past that particular issue.

Is rpm2cpio installed by default on CentOS

I am writing some scripts for CentOS. Is rpm2cpio installed by default on CentOS?
I read somewhere rpm2cpio comes with rpm package, but I am not sure. I couldn't figure out from RMP project website.
For CentOS 5 and 6.
The rpm package is installed by default on CentOS and RHEL systems, and rpm2cpio is included in the rpm package as shown here:
$ rpm -ql rpm | grep -P 'rpm2cpio$'
/usr/bin/rpm2cpio
Therefore, yes, rpm2cpio is included in CentOS 5 and 6.