Asterisk Cluster on Raspbian: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Created page with "= Install Prerequisites = == Distro Packages == <pre> apt-get -y install gettext fontconfig python-setuptools python-lxml python-pycurl bundler gem update bundler </pre> ==..."
 
No edit summary
 
Line 67: Line 67:
103 : echo -e "[build]\nexecutable = $(PYTHON) -Es\n" > setup.cfg
103 : echo -e "[build]\nexecutable = $(PYTHON) -Es\n" > setup.cfg
109 : rm setup.cfg
109 : rm setup.cfg
 
</pre>


an extract of the file
an extract of the file

Latest revision as of 08:13, 1 July 2017

Install Prerequisites

Distro Packages

apt-get -y install gettext fontconfig python-setuptools python-lxml python-pycurl bundler
gem update bundler

glib

cd /usr/src
wget https://ftp.gtk.org/pub/glib/2.12/glib-2.12.13.tar.gz
tar xvf glib-2.12.13.tar.gz
rm -f glib-2.12.13.tar.gz
cd glib-2.12.13
./configure
make
make install

openhpi

cd /usr/src
wget wget https://sourceforge.net/projects/openhpi/files/latest/download -O latest-openhpi.tar.gz
tar xvf latest-openhpi.tar.gz
rm -f latest-openhpi.tar.gz
cd openhpi-3.6.1
./configure
make
make install


corosync and pacemaker

We installed openhpid from Sourceforge above. apt-get will try to install openhpid from the ditro which does not install correctly. That is why there is a command there to remove openhpid. this does not remove the package we installed above.

apt-get -y install corosync pacemaker
apt-get -y autoremove openhpid
apt-get -y autoremove


pcs

Download

cd /usr/src
wget https://github.com/ClusterLabs/pcs/archive/master.zip
unzip master.zip
rm -f master.zip
cd pcs-master

setup.cfg

Create configurtion file.

echo -e '[build]\nexecutable = /usr/bin/python -Es' > setup.cfg

Edit Makefile

vi Makefile

Remark lines

103 : echo -e "[build]\nexecutable = $(PYTHON) -Es\n" > setup.cfg
109 : rm setup.cfg

an extract of the file

.
.
        # make Python interpreter execution sane (via -Es flags)
#       echo -e "[build]\nexecutable = $(PYTHON) -Es\n" > setup.cfg
        $(PYTHON) setup.py install --root=$(or ${DESTDIR}, /) ${EXTRA_SETUP_OPTS}
        # fix excessive script interpreting "executable" quoting with old setuptools:
        # https://github.com/pypa/setuptools/issues/188
        # https://bugzilla.redhat.com/1353934
        sed -i '1s|^\(#!\)"\(.*\)"$$|\1\2|' ${DESTDIR}${PREFIX}/bin/pcs
#       rm setup.cfg
        mkdir -p ${DESTDIR}${PREFIX}/sbin/
        mv ${DESTDIR}${PREFIX}/bin/pcs ${DESTDIR}${PREFIX}/sbin/pcs
.
.

install

make
make install

This is not working as yet. Still a work in progress.

make install_pcsd