<p>Depending on your version, here are a few resources.</p>

<p>For 10.04 there is a good guide <a href="http://lickthesalt.com/2010/08/19/compiling-bitcoin-on-ubuntu-10-04-lucid/" rel="nofollow noreferrer">here</a> and an additional resource <a href="https://bitcoin.stackexchange.com/questions/416/how-do-i-build-bitcoin-from-source-in-linux">here</a>.</p>

<p>For 11.04 this question may be a <a href="https://bitcoin.stackexchange.com/questions/522/how-to-build-bitcoin-from-source-on-ubuntu-11-04-natty-narwhal/533#533">duplicate</a>.</p>

CC BY-SA 3.0
2011-09-04T18:59:05.083Z
I am running 11.04, but this is not a duplicate of that question. Thank you for the 10.04 resources though - maybe I will find something in there
Alex Waters
CC BY-SA 3.0
2011-09-04T18:45:53.563Z
2011-09-04T18:45:53.563Z
2017-04-13T12:47:33.610Z
David Perry
<p>The first two lines are just warnings that can be ignored. But the error is a <a href="https://github.com/bitcoin/bitcoin/pull/456" rel="nofollow">known issue</a> caused by Bitcoin's use of a deprecated API that was removed in your version of Boost. The <a href="https://github.com/NyuSan/bitcoin/commit/90c29c7a8a0a67df3122879303ed5e9abe17948f" rel="nofollow">fix</a> is to modify <code>src/ui.cpp</code> around line 1809 as follows:</p>

<pre><code>  {
     if (!fAutoStart)
     {
-        unlink(GetAutostartFilePath().native_file_string().c_str());
+        unlink(GetAutostartFilePath().c_str());
     }
     else
     {
</code></pre>

<p>(Remove the line marked with a <strong>-</strong> and replace it with the line marked with a <strong>+</strong>.)</p>

CC BY-SA 3.0
2011-09-05T12:46:32.087Z
Thank you David for your pinpoint accuracy and help. Your time is valued, and your contributions to the community are appreciated!
Alex Waters
CC BY-SA 3.0
2011-09-04T21:04:17.897Z
2011-09-04T21:04:17.897Z
David Schwartz
<p>Building 0.4.0rc1 in Ububtu via make -f makefile.unix returns the following errors/warnings:</p>

<pre><code>ui.cpp: In member function 'virtual void CMainFrame::OnIconize(wxIconizeEvent&amp;)':
ui.cpp:488:25 warning: 'bool wxIconizeEvent::Iconized() const' is deprecated (declared at /usr/local/include/wx-2.9/wx/event.h:2150)
ui.cpp:456:43 warning: 'bool wxIconizeEvent::Iconized() const' is deprecated (declared at /usr/local/include/wx-2.9/wx/event.h:2150)
ui.cpp: in function 'void SetStartOnSytstemStartup(bool)':
ui.cpp:1808:39: error: 'class boost::filesystem3::path' has no member named 'native_file_string'
make: *** [obj/ui.o] Error 1
</code></pre>

<p>Does anyone know how I could fix this? I'm guessing it's an issue with my libraries...</p>

<ubuntu>
Why am I getting this make error w/ 0.4.0rc1 on Ubuntu
Alex Waters
# Why am I getting this make error w/ 0.4.0rc1 on Ubuntu

(Asked by: username_0 on 2011-09-04)

Building 0.4.0rc1 in Ububtu via make -f makefile.unix returns the following errors/warnings:
ui.cpp: In member function 'virtual void CMainFrame::OnIconize(wxIconizeEvent&)':
ui.cpp:488:25 warning: 'bool wxIconizeEvent::Iconized() const' is deprecated (declared at /usr/local/include/wx-2.9/wx/event.h:2150)
ui.cpp:456:43 warning: 'bool wxIconizeEvent::Iconized() const' is deprecated (declared at /usr/local/include/wx-2.9/wx/event.h:2150)
ui.cpp: in function 'void SetStartOnSytstemStartup(bool)':
ui.cpp:1808:39: error: 'class boost::filesystem3::path' has no member named 'native_file_string'
make: *** [obj/ui.o] Error 1

Does anyone know how I could fix this? I'm guessing it's an issue with my libraries...

**Tags:** ubuntu


---

## 2 answers

### Answer by username_2 on 2011-09-04. Score: 6 | Accepted answer

The first two lines are just warnings that can be ignored. But the error is a known issue caused by Bitcoin's use of a deprecated API that was removed in your version of Boost. The fix is to modify src/ui.cpp around line 1809 as follows:
  {
     if (!fAutoStart)
     {
-        unlink(GetAutostartFilePath().native_file_string().c_str());
+        unlink(GetAutostartFilePath().c_str());
     }
     else
     {

(Remove the line marked with a - and replace it with the line marked with a +.)

> **Comments:**
> **username_0**: Thank you David for your pinpoint accuracy and help. Your time is valued, and your contributions to the community are appreciated!  

---

### Answer by username_1 on 2011-09-04. Score: 0

Depending on your version, here are a few resources.

For 10.04 there is a good guide [here](http://lickthesalt.com/2010/08/19/compiling-bitcoin-on-ubuntu-10-04-lucid/) and an additional resource [here](https://bitcoin.stackexchange.com/questions/416/how-do-i-build-bitcoin-from-source-in-linux).

For 11.04 this question may be a [duplicate](https://bitcoin.stackexchange.com/questions/522/how-to-build-bitcoin-from-source-on-ubuntu-11-04-natty-narwhal/533#533).

> **Comments:**
> **username_0**: I am running 11.04, but this is not a duplicate of that question. Thank you for the 10.04 resources though - maybe I will find something in there  

---

