master
1
2<!DOCTYPE HTML>
3<html>
4<head>
5 <meta charset="utf-8">
6 <title>Namecoin on Ubuntu 11.10 - BryFry</title>
7 <meta name="author" content="bryfry">
8
9 <meta name="description" content="So I setout to try a setup of Namecoin, the sibling to Bitcoin that is used for name/value storage and is the foundation for the dot-bit project. …">
10 <meta name="keywords" content="linix 11.10 Anonymization Bitcoin Cloud Namecoin Ubuntu">
11 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
12
13 <link href="/atom.xml" rel="alternate" title="BryFry" type="application/atom+xml">
14 <link rel="canonical" href="">
15 <link href="/favicon.ico" rel="shortcut icon">
16 <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
17
18<!-- Fonts -->
19 <link href='http://fonts.googleapis.com/css?family=Slackey' rel='stylesheet' type='text/css'>
20 <link href='http://fonts.googleapis.com/css?family=Fjalla+One' rel='stylesheet' type='text/css'>
21 <link href='http://fonts.googleapis.com/css?family=Amethysta' rel='stylesheet' type='text/css'>
22 <link href='http://fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css'>
23 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
24 <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
25
26 <script type="text/javascript" src="/javascripts/jquery-tapir.js"></script>
27
28 <!-- remove or comment it to disable ajaxification -->
29 <script src="/javascripts/ajaxify.js"></script>
30
31
32</head>
33
34
35<body>
36 <div id="wrapper">
37 <header id="header" class="inner"><!-- for more effects see _animate.scss -->
38<h1>
39 <a href="">
40 <div id="headerbg">
41 BryFry
42 </div>
43 </a>
44</h1>
45
46<!-- use full url including 'index.html' for navigation bar if you are using ajax -->
47<ul id="nav">
48 <li id="ajax"><a href="/index.html">Home</a></li>
49 <li id="ajax"><a href="/blog/archives/index.html">Archives</a></li>
50 <li><a href="/atom.xml">RSS</a></li>
51
52</ul>
53
54
55
56
57</header>
58
59<div id="toload">
60<!-- begin toload -->
61 <div id="content" class="inner">
62 <article class="post">
63 <h2 class="title">Namecoin on Ubuntu 11.10</h2>
64 <div class="meta">
65 <div class="date">Published on:
66
67
68
69
70
71
72
73
74
75
76
77<time datetime="2011-11-26T00:00:00-05:00" pubdate data-updated="true">Nov 26<span>th</span>, 2011</time></div>
78 <div class="tags">Tags:
79
80
81 <a class='category' href='/blog/categories/11-10/'>11.10</a>, <a class='category' href='/blog/categories/anonymization/'>Anonymization</a>, <a class='category' href='/blog/categories/bitcoin/'>Bitcoin</a>, <a class='category' href='/blog/categories/cloud/'>Cloud</a>, <a class='category' href='/blog/categories/namecoin/'>Namecoin</a>, <a class='category' href='/blog/categories/ubuntu/'>Ubuntu</a>, <a class='category' href='/blog/categories/linix/'>linix</a>
82
83
84</div>
85 </div>
86 <div class="entry-content"><p><img class="right" src="http://i.imgur.com/RJTsK.jpg" width="150" height="150" title="dot-bit" ></p>
87
88<p>So I setout to try a setup of <a href="https://github.com/vinced/namecoin">Namecoin</a>, the sibling to <a href="http://bitcoin.org/">Bitcoin</a> that is used for <a href="https://bitcointalk.org/?topic=6017.0">name/value storage</a> and is the foundation for the <a href="http://dot-bit.org/Main_Page">dot-bit project</a>. The dependencies were not explicitly laid out in the README so I wrote up the things I found I needed. Hopefully someone else doing the same thing will not have to do as much searching as I did.</p>
89
90<ul>
91<li>Setup: namecoin version 0.3.24.64-beta</li>
92<li>Target: Ubuntu 11.10 (x64), Amazon EC2 (Server) and Desktop</li>
93</ul>
94
95
96<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
97<span class='line-number'>2</span>
98<span class='line-number'>3</span>
99<span class='line-number'>4</span>
100<span class='line-number'>5</span>
101<span class='line-number'>6</span>
102<span class='line-number'>7</span>
103</pre></td><td class='code'><pre><code class='bash'><span class='line'>sudo apt-get install git build-essential libssl-dev <span class="se">\</span>
104</span><span class='line'>libdb4.7++-dev libboost-dev libboost-system-dev <span class="se">\</span>
105</span><span class='line'>libboost-filesystem-dev libboost-program-options-dev <span class="se">\</span>
106</span><span class='line'>libboost-thread-dev libglibmm-2.4-dev
107</span><span class='line'>git clone git://github.com/vinced/namecoin.git
108</span><span class='line'><span class="nb">cd </span>namecoin/src
109</span><span class='line'>make -f makefile.unix <span class="nv">USE_UPNP</span><span class="o">=</span>
110</span></code></pre></td></tr></table></div></figure>
111
112
113<p>I built my install list from the headers that were missing from a mostly generic 11.10 install. The list of the errors I came across are below. Shoot me a line if anyone comes across other packages that need added to the list.</p>
114
115<p>If you get this far you can start running namecoind which is well documented here: <a href="http://www.bluishcoder.co.nz/2011/05/12/namecoin-a-dns-alternative-based-on-bitcoin.html">Post Install</a></p>
116
117<p>If you have compilation errors you can read more after the jump.</p>
118
119<!--more-->
120
121
122
123
124<figure class='code'><figcaption><span>Compilation error - libssl</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
125<span class='line-number'>2</span>
126<span class='line-number'>3</span>
127</pre></td><td class='code'><pre><code class='text'><span class='line'>In file included from auxpow.cpp:4:0:
128</span><span class='line'>headers.h:37:28: fatal error: openssl/buffer.h: No such file or directoy
129</span><span class='line'>compilation terminated.
130</span></code></pre></td></tr></table></div></figure>
131
132
133
134
135<figure class='code'><figcaption><span>Solution - libssl</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
136</pre></td><td class='code'><pre><code class='bash'><span class='line'>sudo apt-get install libssl-dev
137</span></code></pre></td></tr></table></div></figure>
138
139
140
141
142<figure class='code'><figcaption><span>Compilation error - libdb</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
143<span class='line-number'>2</span>
144<span class='line-number'>3</span>
145</pre></td><td class='code'><pre><code class='text'><span class='line'>In file included from auxpow.cpp:4:0:
146</span><span class='line'>headers.h:43:20: fatal error: db_cxx.h: No such file or directory
147</span><span class='line'>compilation terminated.
148</span></code></pre></td></tr></table></div></figure>
149
150
151
152
153<figure class='code'><figcaption><span>Solution - libdb</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
154</pre></td><td class='code'><pre><code class='bash'><span class='line'>sudo apt-get install libdb4.7++-dev
155</span></code></pre></td></tr></table></div></figure>
156
157
158<p>If that fails …
159For some reason libdb4.7++-dev is not in the 11.10 server repositories, probably because the 4.7 and 4.7++ dev libraries have some conflicts. My workaround was to get 4.7++ and then manually install the 4.7++-dev.deb from launchpad. This is unstable and apt-get -f install will remove 4.7++-dev but for the compilation I didn’t have any extra issues. When I ran the install on my desktop 11.10 libdb4.7++-dev was in the repositories so you only get this error 11.10 server :|.</p>
160
161<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
162<span class='line-number'>2</span>
163</pre></td><td class='code'><pre><code class='bash'><span class='line'>wget http://launchpadlibrarian.net/66419156/libdb4.7%2B%2B-dev_4.7.25-10ubuntu1_amd64.deb
164</span><span class='line'>sudo dpkg -i --force-all libdb4.7++-dev_4.7.25-10ubuntu1_amd64.deb
165</span></code></pre></td></tr></table></div></figure>
166
167
168
169
170<figure class='code'><figcaption><span>Compilation error - libboost</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
171<span class='line-number'>2</span>
172<span class='line-number'>3</span>
173<span class='line-number'>4</span>
174<span class='line-number'>5</span>
175</pre></td><td class='code'><pre><code class='text'><span class='line'>/usr/bin/ld: cannot find -lboost_system
176</span><span class='line'>/usr/bin/ld: cannot find -lboost_filesystem
177</span><span class='line'>/usr/bin/ld: cannot find -lboost_program_options
178</span><span class='line'>/usr/bin/ld: cannot find -lboost_thread
179</span><span class='line'>/usr/bin/ld: cannot find -lgthread-2.0
180</span></code></pre></td></tr></table></div></figure>
181
182
183
184
185<figure class='code'><figcaption><span>Solution - libbost</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
186<span class='line-number'>2</span>
187<span class='line-number'>3</span>
188<span class='line-number'>4</span>
189<span class='line-number'>5</span>
190</pre></td><td class='code'><pre><code class='bash'><span class='line'>sudo apt-get install libboost-system-dev
191</span><span class='line'>sudo apt-get install libboost-filesystem-dev
192</span><span class='line'>sudo apt-get install libboost-program-options-dev
193</span><span class='line'>sudo apt-get install libboost-thread-dev
194</span><span class='line'>sudo apt-get install libglibmm-2.4-dev
195</span></code></pre></td></tr></table></div></figure>
196
197
198<p>Resources used:
199<a
200href="http://www.bluishcoder.co.nz/2011/05/12/namecoin-a-dns-alternative-based-on-bitcoin.html">Bluish Coder</a></p>
201</div>
202
203<div class="meta">
204
205</div>
206</article>
207
208 <div class="share">
209 <div class="addthis_toolbox addthis_default_style ">
210
211
212 <a class="addthis_button_tweet"></a>
213
214
215 <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
216
217 <a class="addthis_counter addthis_pill_style"></a>
218 </div>
219 <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid="></script>
220</div>
221
222
223
224 </div>
225 <footer id="footer">
226 <div style="display:inline">
227 Copyright © 2013
228
229 bryfry
230. Powered by <a href="http://octopress.org">Octopress</a> |
231 Theme adapted from <a href="http://github.com/panks/fabric">fabric</a> by <a href="http://panks.me">Pankaj Kumar</a>
232</div>
233
234
235 </footer>
236 <script src="/javascripts/fabric.js"></script>
237<script src="/javascripts/jquery.fancybox.pack.js"></script>
238<script type="text/javascript">
239(function($){
240 $('.fancybox').fancybox();
241})(jQuery);
242</script> <!-- Delete or comment this line to disable Fancybox -->
243
244
245<script type="text/javascript">
246 var disqus_shortname = 'bryfry';
247
248
249 var disqus_script = 'count.js';
250
251 (function () {
252 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
253 dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
254 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
255 }());
256</script>
257
258
259
260 <script type="text/javascript">
261 var _gaq = _gaq || [];
262 _gaq.push(['_setAccount', 'UA-31317111-1']);
263 _gaq.push(['_trackPageview']);
264
265 (function() {
266 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
267 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
268 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
269 })();
270 </script>
271
272
273
274
275
276<!-- end toload -->
277</div>
278</div>
279<script src="/javascripts/jquery.ui.totop.js" type="text/javascript"></script>
280<script type="text/javascript">
281/*<![CDATA[*/
282;(function($){$().UItoTop({easingType:'easeOutCirc'});})(jQuery);
283/*]]>*/
284</script><!-- remove it to remove the scroll to top button -->
285</body>
286</html>