{"id":3236,"date":"2014-02-03T15:08:23","date_gmt":"2014-02-03T15:08:23","guid":{"rendered":"http:\/\/www.gubatron.com\/blog\/?p=3236"},"modified":"2014-07-03T20:38:57","modified_gmt":"2014-07-03T20:38:57","slug":"how-to-actually-build-bitcoin-on-mac-osx-10-9-1","status":"publish","type":"post","link":"https:\/\/www.gubatron.com\/blog\/how-to-actually-build-bitcoin-on-mac-osx-10-9-1\/","title":{"rendered":"How to actually build bitcoin on Mac OSX 10.9.1"},"content":{"rendered":"<p>First of all, if you have Macports, do yourself a favor and get <a href=\"http:\/\/guide.macports.org\/chunked\/installing.macports.uninstalling.html\" target=\"_blank\">rid of it<\/a>.<\/p>\n<p>Then make sure you have <a href=\"http:\/\/brew.sh\/\" target=\"_blank\">Homebrew<\/a> installed and all the packages installed by it up to date.<\/p>\n<p><strong>1. Let&#8217;s install all the dependencies for Bitcoin hacking.<\/strong><\/p>\n<p><code>brew install autoconf automake berkeley-db4 boost miniupnpc openssl pkg-config protobuf qt libtool<\/code><\/p>\n<p>2. Make sure you have the right OpenSSL version installed. Type the following on your terminal:<\/p>\n<p><code>openssl version<\/code><\/p>\n<p>you should see &#8220;OpenSSL 1.0.1f 6 Jan 2014.&#8221;<\/p>\n<p>if you see an older version, do<\/p>\n<p><code>brew update<br \/>\nbrew upgrade<\/code><\/p>\n<p>OpenSSL should be upgraded, you may or may not have to issue a &#8220;<code>brew link openssl<\/code>&#8221; or even a &#8220;<code>brew link --overwrite openssl<\/code>&#8221; if it&#8217;s giving you trouble.<\/p>\n<p>3. Now, let&#8217;s configure, and make. I strongly suggest you add the boost library path when configuring, otherwise you may get nasty &#8220;<code>Undefined symbols for architecture x86_64<\/code>&#8221; compilation errors. During the time I wrote this, homebrew had installed boost 1.55 in my system, and the boost lib path was <code>\/usr\/local\/Cellar\/boost\/1.55.0\/lib<\/code> so I invoked the following:<\/p>\n<p><code>.\/configure --with-boost-libdir=\/usr\/local\/Cellar\/boost\/1.55.0\/lib<\/code><\/p>\n<p>After that I just issued a<\/p>\n<p><code>make<\/code><\/p>\n<p>And I was done.<\/p>\n<p>If you want to hack the bitcoin-qt client like me, head to <code>src\/qt\/<\/code>, there should be a <code>bitcoin-qt<\/code> executable there now.<\/p>\n<p>Enjoy<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First of all, if you have Macports, do yourself a favor and get rid of it. Then make sure you have Homebrew installed and all the packages installed by it up to date. 1. Let&#8217;s install all the dependencies for Bitcoin hacking. brew install autoconf automake berkeley-db4 boost miniupnpc openssl pkg-config protobuf qt libtool 2. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1361,15],"tags":[1258,1388,232,239,1371,1389,1211,635,1390,750],"class_list":["post-3236","post","type-post","status-publish","format-standard","hentry","category-bitcoin-2","category-code","tag-bitcoin","tag-bitcoin-qt","tag-building","tag-c","tag-compiling","tag-crypto","tag-hacking","tag-macosx","tag-opensource","tag-osx"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Unzf-Qc","jetpack-related-posts":[{"id":3215,"url":"https:\/\/www.gubatron.com\/blog\/building-cgminer-from-source-on-osx\/","url_meta":{"origin":3236,"position":0},"title":"building cgminer from source on OSX","author":"gubatron","date":"January 19, 2014","format":false,"excerpt":"so you cloned the cgminer repo from github to build on your OSX machine and you get this bullshit error $ .\/autogen.sh readlink: illegal option -- f usage: readlink [-n] [file ...] usage: dirname path touch: \/ltmain.sh: Permission denied Use of chdir('') or chdir(undef) as chdir() is deprecated at \/usr\/local\/bin\/autoreconf\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3241,"url":"https:\/\/www.gubatron.com\/blog\/setting-up-eclipse-as-your-ide-for-bitcoin-c-development-on-macosx\/","url_meta":{"origin":3236,"position":1},"title":"Setting up Eclipse as your IDE for Bitcoin C++ development on MacOSX.","author":"gubatron","date":"February 9, 2014","format":false,"excerpt":"If you are a Java developer used to the productivity levels achieved by working with eclipse's code navigation, code completion and refactoring tools, it's worth your time staying in eclipse for any sort of C++ development. This post refers specifically to getting your eclipse environment to work with a particular\u2026","rel":"","context":"In &quot;BitCoin&quot;","block_context":{"text":"BitCoin","link":"https:\/\/www.gubatron.com\/blog\/category\/bitcoin-2\/"},"img":{"alt_text":"Screen Shot 2014-02-09 at 1.09.39 PM","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/02\/Screen-Shot-2014-02-09-at-1.09.39-PM.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/02\/Screen-Shot-2014-02-09-at-1.09.39-PM.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2014\/02\/Screen-Shot-2014-02-09-at-1.09.39-PM.png?resize=525%2C300 1.5x"},"classes":[]},{"id":485,"url":"https:\/\/www.gubatron.com\/blog\/como-instalar-subversion-140-en-ubuntu\/","url_meta":{"origin":3236,"position":2},"title":"Como instalar Subversion 1.4.0 en Ubuntu","author":"gubatron","date":"March 23, 2007","format":false,"excerpt":"Desde hace unos dias estaba trabajando con una extension de eclipse para sincronizar codigo en un repositorio de subversion, y despues de utilizar la bendita extension (o quizas fue que actualizaron el servidor subversion...) me empezo a salir este maldito error cuando intentaba utilizar subversion desde la linea de comandos:\u2026","rel":"","context":"In &quot;Geeklife&quot;","block_context":{"text":"Geeklife","link":"https:\/\/www.gubatron.com\/blog\/category\/geeklife\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2767,"url":"https:\/\/www.gubatron.com\/blog\/ubuntu-packages-for-a-kick-ass-web-server\/","url_meta":{"origin":3236,"position":3},"title":"ubuntu packages for a kick ass web server","author":"gubatron","date":"September 7, 2012","format":false,"excerpt":"Copy and paste the following list on a file, say \"packages.txt\". To install all just do: sudo apt-get install $(cat packages.txt) accountsservice acpid adduser ant ant-optional apache2-utils apparmor apport apport-symptoms apt apt-transport-https apt-utils apt-xapian-index aptitude at base-files base-passwd bash bash-completion bc bind9-host bsdmainutils bsdutils busybox-initramfs busybox-static byobu bzip2 ca-certificates ca-certificates-java\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3679,"url":"https:\/\/www.gubatron.com\/blog\/monero-development-installing-dependencies-on-mac\/","url_meta":{"origin":3236,"position":4},"title":"[Monero-Development] Installing dependencies on Mac","author":"gubatron","date":"March 12, 2017","format":false,"excerpt":"March 12th 2017. In order to build Monero on MacOSX with cmake, I had to install the following dependencies via homebrew brew install libunwind-headers --force brew link libunwind-headers --force brew install miniupnpc brew install ldns brew link ldns --force brew install expat brew link expat --force brew install doxygen","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3195,"url":"https:\/\/www.gubatron.com\/blog\/how-to-import-a-backed-up-wallet-in-bitcoin-qt\/","url_meta":{"origin":3236,"position":5},"title":"How to import a backed up wallet in Bitcoin-Qt","author":"gubatron","date":"November 20, 2013","format":false,"excerpt":"The Bitcoin-Qt client has an export feature, but not an import feature, importing a wallet is a bit of a manual process and it can be quite scary for the non-computer saavy since you need to do this kind of stuff because you got a new computer or your old\u2026","rel":"","context":"In &quot;BitCoin&quot;","block_context":{"text":"BitCoin","link":"https:\/\/www.gubatron.com\/blog\/category\/bitcoin-2\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/comments?post=3236"}],"version-history":[{"count":3,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3236\/revisions"}],"predecessor-version":[{"id":3306,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/3236\/revisions\/3306"}],"wp:attachment":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/media?parent=3236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/categories?post=3236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/tags?post=3236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}