<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mariano Guerra's Log (Posts about build)</title><link>http://marianoguerra.org/</link><description></description><atom:link href="http://marianoguerra.org/categories/build.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Mon, 18 Nov 2024 17:56:23 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>How to build Riak TS (Time Series Database) from Source</title><link>http://marianoguerra.org/posts/how-to-build-riak-ts-time-series-database-from-source/</link><dc:creator>Mariano Guerra</dc:creator><description>&lt;p&gt;To build riak ts we need some basic build tools installed, like compilers and tools.&lt;/p&gt;
&lt;p&gt;On ubuntu/debian an derivatives:&lt;/p&gt;
&lt;pre class="literal-block"&gt;sudo apt-get update
sudo apt-get install build-essential autoconf git libncurses5-dev libssl-dev libpam0g-dev&lt;/pre&gt;
&lt;p&gt;On RHEL, Centos, Oracle Linux and derivatives:&lt;/p&gt;
&lt;pre class="literal-block"&gt;sudo yum update -y
sudo yum groupinstall "Development Tools" -y
sudo yum install openssl-devel ncurses-devel git autoconf pam-devel -y&lt;/pre&gt;
&lt;p&gt;A quick description of each so you can map to your OS:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;p&gt;build-essential: a group of tools to build stuff (duh!)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;autoconf: needed to build &lt;a class="reference external" href="https://github.com/basho/otp"&gt;basho's erlang OTP version&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;git: to fetch repos&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;libcurses and libssl: to have curses and ssl support on erlang&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;libpam0g-dev: required to compile a riak module (canola)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;not sure about the RHEL equivalent, try pam-devel&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now clone the riak repo:&lt;/p&gt;
&lt;pre class="literal-block"&gt;git clone https://github.com/basho/riak.git
cd riak&lt;/pre&gt;
&lt;p&gt;Checkout the Riak TS tag:&lt;/p&gt;
&lt;pre class="literal-block"&gt;git checkout riak_ts-1.3.0&lt;/pre&gt;
&lt;p&gt;Download and install &lt;a class="reference external" href="https://github.com/kerl/kerl"&gt;kerl&lt;/a&gt; to build the correct erlang OTP version:&lt;/p&gt;
&lt;pre class="literal-block"&gt;mkdir -p ~/bin
wget https://raw.githubusercontent.com/kerl/kerl/master/kerl -O ~/bin/kerl
chmod u+x ~/bin/kerl
export PATH=$PATH:$HOME/bin&lt;/pre&gt;
&lt;p&gt;Build OTP_R16B02_basho10 erlang version (notice that this won't interfere with your local erlang installation, see kerl readme for details):&lt;/p&gt;
&lt;pre class="literal-block"&gt;kerl build git git://github.com/basho/otp.git OTP_R16B02_basho10 R16B02-basho10
mkdir -p ~/soft/erlang-releases/R16B02-basho10
kerl install R16B02-basho10 ~/soft/erlang-releases/R16B02-basho10
. ~/soft/erlang-releases/R16B02-basho10/activate
export PATH=$HOME/soft/erlang-releases/R16B02-basho10/bin:$PATH&lt;/pre&gt;
&lt;p&gt;Now build Riak TS:&lt;/p&gt;
&lt;pre class="literal-block"&gt;make locked-deps
make rel&lt;/pre&gt;
&lt;p&gt;And run it:&lt;/p&gt;
&lt;pre class="literal-block"&gt;cd rel/riak
./bin/riak console&lt;/pre&gt;</description><category>build</category><category>compile</category><category>howto</category><category>riak</category><guid>http://marianoguerra.org/posts/how-to-build-riak-ts-time-series-database-from-source/</guid><pubDate>Fri, 03 Jun 2016 15:31:45 GMT</pubDate></item><item><title>How To Build Twister Distributed Microblog on Ubuntu 13.10 (Saucy)</title><link>http://marianoguerra.org/posts/how-to-build-twister-distributed-microblog-on-ubuntu-1310-saucy/</link><dc:creator>Mariano Guerra</dc:creator><description>&lt;p&gt;today I found out about &lt;a class="reference external" href="http://twister.net.co/?page_id=16"&gt;twisterd&lt;/a&gt; and I wanted
to give it a try (and reserve my username ;) so I tried and it took a while
to get all the dependencies right, to avoid you the pain here is the guide.&lt;/p&gt;
&lt;p&gt;take into account the comments in the script.&lt;/p&gt;
&lt;p&gt;just a console dump, it should work just by pasting the commands in order:&lt;/p&gt;
&lt;pre class="literal-block"&gt;mkdir twister
cd twister
sudo apt-get update
sudo apt-get install libssl-dev libdb-dev libdb++-dev libminiupnpc-dev libboost-all-dev build-essential git autoconf libtool
git clone https://github.com/miguelfreitas/twister-core.git
git clone https://github.com/miguelfreitas/twister-html.git
mkdir ~/.twister
mv twister-html ~/.twister/html
cd twister-core/libtorrent

# NOTE: the following command will fail with an error about boost, ignore
# it and run the following commands

./bootstrap.sh
./configure --enable-logging --enable-debug --enable-dht --with-boost-libdir=/usr/lib/x86_64-linux-gnu/
make
cd ../src
make -f makefile.unix
./twisterd -daemon -rpcuser=user -rpcpassword=pwd -rpcallowip=127.0.0.1&lt;/pre&gt;
&lt;p&gt;BTW I'm @mariano :)&lt;/p&gt;</description><category>build</category><category>microblog</category><category>twister</category><category>ubuntu</category><guid>http://marianoguerra.org/posts/how-to-build-twister-distributed-microblog-on-ubuntu-1310-saucy/</guid><pubDate>Wed, 08 Jan 2014 18:39:33 GMT</pubDate></item></channel></rss>