<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=TOP&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><s>Building - FreeBSD (WIP)</s></h2>
<h4>Page <b>removed</b> by <a href="https://wiki.asterisk.org/wiki/display/~dsessions">Darren Sessions</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="Building-FreeBSD%28WIP%29-THISISAWORKINPROGRESS"></a>THIS IS A WORK IN PROGRESS</h1>
<p>since a default free bsd installation provides the bulk of storage un the /usr directory, we'll be installing in a user directory (in these directions, the username is digium) simular to the linux install instructions.</p>
<p>cd ~<br/>
su root -c "pkg_add -r git gmake cmake python boost-libs lua51 libexecinfo patch"</p>
<p>curl -O <a href="http://www.zeroc.com/download/Ice/3.4/ThirdParty-Sources-3.4.1.tar.gz" class="external-link" rel="nofollow">http://www.zeroc.com/download/Ice/3.4/ThirdParty-Sources-3.4.1.tar.gz</a><br/>
tar -xvf ThirdParty-Sources-3.4.1.tar.gz<br/>
cd ThirdParty-Sources-3.4.1<br/>
tar -xvf db-4.8.30.NC.tar.gz<br/>
tar -xvf mcpp-2.7.2.tar.gz<br/>
tar -xvf expat-2.0.1.tar.gz</p>
<p>#for 64-bit builds<br/>
export CFLAGS="-m64"<br/>
export CXXFLAGS="-m64"<br/>
export LDFLAGS="-m64"</p>
<p>cd db-4.8.30.NC/build_unix<br/>
../dist/configure --enable-cxx<br/>
gmake<br/>
su root -c "gmake install"</p>
<p>#for 64-bit builds<br/>
export CFLAGS=<br/>
export CXXFLAGS=<br/>
export LDFLAGS=</p>
<p>cd ../../mcpp-2.7.2cd git        <br/>
gpatch -p0 < ../mcpp/patch.mcpp.2.7.2<br/>
./configure CFLAGS="-fPIC -m64" --enable-mcpplib --disable-shared<br/>
gmake<br/>
su root -c "gmake install"<br/>
cd ../expat-2.0.1<br/>
setenv CFLAGS "-O3"<br/>
gmake<br/>
su root -c "gmake install"</p>
<p>cd ~<br/>
git clone git://git.asterisk.org/asterisk-scf/release/ice<br/>
cd ~/ice/cpp<br/>
export CPLUS_INCLUDE_PATH=/usr/local/include<br/>
gmake DB_HOME=/usr/local/BerkeleyDB.4.8/ MCPP_HOME=/usr/local LP64=yes<br/>
sudo make install<br/>
cd ../py<br/>
make<br/>
sudo make install</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>