HOWTO: Compiling Bitcoin v0.3 on FreeBSD (7.2,7.3,8.0)
Step 1:
Install the following from the ports tree:
x11-toolkits/gtk20
devel/boost-all
devel/gmake
databases/db48
Step 2:
Install wxWidgets 2.9 from source. The ports version won’t work.
You can get 2.9 here: http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.9.0.tar.bz2
Step 3:
Apply the attached patch to the “makefile.unix” file.
cd ~/bitcoin-0.3/src/
patch < makefile.unix.patch.txt
Step 4:
Tweak any compiler options in makefile.unix. (See the CFLAGS line). The default options are the options I use on my machines. They are: “-O3 -march=nocona -fstack-protector”. Be sure to set your ‘march’ at the very least.
Step 5:
Build with:
gmake -f makefile.unix bitcoind
And enjoy! 😊
$ cat ~/.bitcoin/debug.log |grep “Bitcoin version”
Bitcoin version 0.3.0 beta, OS version FreeBSD 8.0-RELEASE-p3 amd64
$
And what about performance? It’s insanely great on FreeBSD. Especially with the ULE scheduler.
CPU: Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (2666.38-MHz K8-class CPU)
hashmeter 4 CPUs 2585 khash/s
😄
