Wednesday 20 August 2014

Serf library installation

The Serf package contains a C-based HTTP client library built upon the Apache Portable Runtime (APR) library. It is used so that https URL can be accessed using svn.

Steps to install Serf:



First we need to download & install scons

(1) wget http://downloads.sourceforge.net/scons/scons-2.3.0.tar.gz
(2) tar xzvf scons-2.3.0.tar.gz
(3) cd scons-2.3.0
(4) python setup.py install --standard-lib

This install scons (/usr/bin/scons-2.3.0)


Install apr-1.5.0 & apr-util 1.5.3 ( in apar-util, do not use crypto option until you have openssl 1.0.1g)

Then navigate to: /usr/bin

ln -s /custom/apr-1.5.0/bin/apr-1-config apr-1-config
ln -s /custom/apr-util-1.5.3/bin/apu-1-config apu-1-config

Serf install steps:


(1) Download (HTTP): https://serf.googlecode.com/svn/src_releases/serf-1.3.4.tar.bz2
(2) tar xjvf serf-1.3.4.tar.bz2
(3) cd serf-1.3.4
(4) sed -i "/Append/s:RPATH=libdir,::"   SConstruct
sed -i "/Default/s:lib_static,::"    SConstruct
sed -i "/Alias/s:install_static,::"  SConstruct
/usr/bin/scons-2.3.0 PREFIX=/custom/serf/1.3.4
/usr/bin/scons-2.3.0 PREFIX=/custom/serf/1.3.4 install

cd /usr/lib64

ln -s /custom/serf/1.3.4/lib/libserf-1.so.1.3.0 libserf-1.so.1

No comments:

Post a Comment