<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=TOP&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/TOP/Building+on+Linux">Building on Linux</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://wiki.asterisk.org/wiki/display/~dsessions">Darren Sessions</a>
    </h4>
        <br/>
                         <h4>Changes (0)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="BuildingonLinux-BuildingonLinux"></a>Building on Linux</h1>
<br>
<div class="panel" style="background-color: #CCCCCC;border-color: #ccc;border-style: solid;border-width: 1px;"><div class="panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #ccc;background-color: #003366;color: white;"><b>#1 - Distribution Specific Instructions</b></div><div class="panelContent" style="background-color: #CCCCCC;">
<br>

<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-1832984072" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text"> CentOS 6.0 (RHEL)</span></div>
    <div class="expand-content"><ol>
        <li><h6><a name="BuildingonLinux-Addadditionalrequiredrepositories"></a>Add additional required repositories</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>curl -o /etc/yum.repos.d/zeroc-ice.repo http://download.zeroc.com/Ice/3.4/rhel6/zeroc-ice-rhel6.repo
</pre>
</div></div></li>
        <li><h6><a name="BuildingonLinux-Installrequiredlibrariesandapplications"></a>Install required libraries and applications</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>yum groupinstall "Development Tools"

yum remove byacc
ln -s /usr/bin/bison /usr/bin/yacc

yum install wget mcpp-devel db48-devel bzip2-devel expat-devel openssl-devel python python-devel boost-devel lua-devel

curl -O ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/updates/13/x86_64/cmake-2.8.0-3.fc13.x86_64.rpm
rpm -ivh cmake-2.8.0-3.fc13.x86_64.rpm
</pre>
</div></div></li>
        <li><h6><a name="BuildingonLinux-JavaSupport%28Optional%29"></a>Java Support (Optional)</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>
wget -O jre-6u29-linux-x64-rpm.bin http://javadl.sun.com/webapps/download/AutoDL?BundleId=56691
sh ./jre-6u29-linux-x64-rpm.bin

wget http://www.jgoodies.com/download/libraries/forms/forms-1_3_0.zip
wget http://www.jgoodies.com/download/libraries/looks/looks-2_3_1.zip
unzip forms-1_3_0.zip
unzip looks-2_3_1.zip
mv forms-1.3.0/forms-1.3.0.jar /usr/share/java/forms.jar
mv looks-2.3.1/looks-2.3.1.jar /usr/share/java/looks.jar

export CLASSPATH=/usr/share/java/db.jar:/usr/share/java/forms.jar:/usr/share/java/looks.jar

wget http://apache.mirrors.pair.com/ant/binaries/apache-ant-1.8.2-bin.zip
unzip apache-ant-1.8.2-bin.zip -d /opt

yum install db48-java
</pre>
</div></div></li>
</ol>
</div>



<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-871444656" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text"> Debian 5.0 (Lenny)</span></div>
    <div class="expand-content"><ol>
        <li><h6><a name="BuildingonLinux-Addadditionalrequiredrepositories"></a>Add additional required repositories</h6>
<p>We'll need the cmake package from the testing repo, however, we'll not want to use the testing repo for much else so we'll need to create an apt preferences file that gives the main repo a higher priority.</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>echo "deb http://www.backports.org/debian lenny-backports main contrib non-free" &gt;&gt; /etc/apt/sources.list
echo "deb http://ftp.us.debian.org/debian/ testing main" &gt;&gt; /etc/apt/sources.list
echo -e "Package: *\r\nPin: release a=stable\r\nPin-Priority: 900" &gt;&gt; /etc/apt/preferences
apt-get update
</pre>
</div></div></li>
        <li><h6><a name="BuildingonLinux-Installrequiredlibrariesandapplications"></a>Install required libraries and applications</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>apt-get install build-essential python python-dev flex
apt-get install -t testing cmake liblua5.1-0-dev libbz2-dev libssl-dev libexpat1-dev mono-gmcs monodevelop mono-xbuild
apt-get install libdb4.8++-dev ruby ruby1.8-dev php5-dev libmcpp-dev
apt-get install -t lenny-backports libboost1.40-all-dev git
</pre>
</div></div></li>
        <li><h6><a name="BuildingonLinux-JavaSupport%28Optional%29"></a>Java Support (Optional)</h6>
<p>Append "non-free" to the "lenny main" entries in /etc/apt/sources.list file so they look similar to the ones below.</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>deb http://ftp.us.debian.org/debian/ lenny main non-free
deb-src http://ftp.us.debian.org/debian/ lenny main non-free
</pre>
</div></div>
<p>Finish installing</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>apt-get update
apt-get install sun-java6-jdk libdb4.8-java ant libjgoodies-forms-java libjgoodies-looks-java
update-alternatives --config java
export CLASSPATH=/usr/share/java/libdb4.8-java.jar:/usr/share/java/forms.jar:/usr/share/java/looks.jar
</pre>
</div></div></li>
</ol>
</div>



<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-70062078" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text"> Fedora 14</span></div>
    <div class="expand-content"><ol>
        <li><h6><a name="BuildingonLinux-Installrequiredlibrariesandapplications"></a>Install required libraries and applications</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>yum groupinstall "Development Tools"
yum-builddep ice
yum install jgoodies-forms jgoodies-looks boost-devel lua-devel git-all
echo '#!/bin/sh' &gt; /usr/local/bin/yacc; echo 'bison -y "$@"' &gt;&gt; /usr/local/bin/yacc
</pre>
</div></div></li>
</ol>
</div>



<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-1518051590" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text"> openSUSE 11.3</span></div>
    <div class="expand-content"><ol>
        <li><h6><a name="BuildingonLinux-Installrequiredlibrariesandapplications"></a>Install required libraries and applications</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>sudo zypper install devel_rpm_build gcc-c++ cmake git-core libopenssl-devel libbz2-devel python-devel libexpat-devel php5-devel lua-devel ruby ruby-devel patch libtool flex
mkdir zeroc
cd zeroc
wget http://www.zeroc.com/download/Ice/3.4/Ice-3.4.1-sles11-x86_64-rpm.tar.gz
tar -xvf Ice-3.4.1-sles11-x86_64-rpm.tar.gz
sudo rpm -i db48-4.8.30-1ice.sles11.x86_64.rpm
sudo rpm -i db48-devel-4.8.30-1ice.sles11.x86_64.rpm
sudo rpm -i db48-java-4.8.30-1ice.sles11.x86_64.rpm
sudo rpm -i db48-utils-4.8.30-1ice.sles11.x86_64.rpm
sudo rpm -i mcpp-devel-2.7.2-2ice.sles11.x86_64.rpm
cd ~
wget http://cdnetworks-us-2.dl.sourceforge.net/project/boost/boost/1.44.0/boost_1_44_0.tar.gz
tar -xvf boost_1_44_0.tar.gz
cd boost_1_44_0
./bootstrap.sh
./bjam
sudo ./bjam install
cd ~
</pre>
</div></div></li>
</ol>
</div>



<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-1993150319" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text"> Ubuntu 10.04 LTS (Lucid)</span></div>
    <div class="expand-content"><ol>
        <li><h6><a name="BuildingonLinux-Addadditionalrequiredrepositories"></a>Add additional required repositories</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>apt-get install python-software-properties
add-apt-repository "deb http://archive.canonical.com/ lucid partner"
apt-get update
</pre>
</div></div></li>
        <li><h6><a name="BuildingonLinux-Installrequiredlibrariesandapplications"></a>Install required libraries and applications</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>apt-get install build-essential libboost1.40-all-dev liblua5.1-0-dev cmake libmcpp-dev libbz2-dev libdb4.8++-dev mono-gmcs monodevelop mono-xbuild ruby ruby1.8-dev php5-dev libexpat1-dev libssl-dev git-core flex
</pre>
</div></div></li>
        <li><h6><a name="BuildingonLinux-JavaSupport%28Optional%29"></a>Java Support (Optional)</h6>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>add-apt-repository "deb http://archive.canonical.com/ lucid partner"
apt-get update
apt-get install sun-java6-jdk libdb4.8-java ant libjgoodies-forms-java libjgoodies-looks-java
update-alternatives --config java
export CLASSPATH=/usr/share/java/libdb4.8-java.jar:/usr/share/java/forms.jar:/usr/share/java/looks.jar
</pre>
</div></div></li>
</ol>
</div>

<br>
</div></div> 
<br>

<div class="panel" style="background-color: #CCCCCC;border-color: #ccc;border-style: solid;border-width: 1px;"><div class="panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #ccc;background-color: #003366;color: white;"><b>#2 - Ice (Digium's Branch)</b></div><div class="panelContent" style="background-color: #CCCCCC;">
<br>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>git clone git://git.asterisk.org/asterisk-scf/release/ice
cd ice
</pre>
</div></div>
<h6><a name="BuildingonLinux-BaseInstallationoptions"></a>Base Installation options</h6>

<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-2040160522" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text"> Install minimum requirements (C++, Python)</span></div>
    <div class="expand-content"><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>cd cpp
make install
cd ../py
make install
cd ..
</pre>
</div></div></div>


<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-1127804742" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text"> Install minimum requirements and *all* optional languages.</span></div>
    <div class="expand-content"><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>make install
</pre>
</div></div></div>

<h6><a name="BuildingonLinux-Optionallanguages"></a>Optional languages</h6>

<style type="text/css">
@media all {
    .expand-content { margin-left: 20px; }
    .expand-control-icon { display: inline-block; width: 20px; }
    .expand-control-text { vertical-align: top; text-decoration:none; }
    .expand-control-image { vertical-align: middle; text-decoration:none; }
}
@media screen {
    .expand-hidden { display: none; }
    .expand-control { cursor: pointer; text-decoration: none; }
}
@media print {
    /* show expander text in print */
    .expand-content { display: block !important; }
}
</style>

                 <div id="expander-39594259" class="expand-control" tabindex="0"><span class="expand-control-icon"><img class="expand-control-image" src="/wiki/images/icons/arrow_down.png"></span><span class="expand-control-text"> Java</span></div>
    <div class="expand-content"><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>cd java
make install
cd ..
</pre>
</div></div></div>

<br>
</div></div>
<br>

<div class="panel" style="background-color: #CCCCCC;border-color: #ccc;border-style: solid;border-width: 1px;"><div class="panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #ccc;background-color: #003366;color: white;"><b>#3 - Slice Translator Plugins</b></div><div class="panelContent" style="background-color: #CCCCCC;">
<br>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>git clone git://git.asterisk.org/asterisk-scf/release/slice-plugins
cd slice-plugins
cmake .
make
make install
cd ..
</pre>
</div></div>
<br>
</div></div>
<br>

<div class="panel" style="background-color: #CCCCCC;border-color: #ccc;border-style: solid;border-width: 1px;"><div class="panelHeader" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #ccc;background-color: #003366;color: white;"><b>#4 - Asterisk SCF</b></div><div class="panelContent" style="background-color: #CCCCCC;">
<br>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>git clone git://git.asterisk.org/asterisk-scf/integration/gitall
cd gitall
./gitall-asterisk-scf.sh
cmake/init-cmake.sh
cmake --build ./build
</pre>
</div></div>
<br>
</div></div>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=TOP">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
        <a href="https://wiki.asterisk.org/wiki/display/TOP/Building+on+Linux">View Online</a>
        |
        <a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=19006350&revisedVersion=32&originalVersion=31">View Changes</a>
                |
        <a href="https://wiki.asterisk.org/wiki/display/TOP/Building+on+Linux?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>