forked from dknoester/ealib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.txt
127 lines (91 loc) · 3.44 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
** These instructions are current as of 7/22/2014 **
There are Three different sets of instructions for installing Boost here: HPCC (quick way), HPCC (self-built), and OS X (xcode version 5.1.1, OS X 10.9.4).
**After** you've installed Boost, get a copy of the latest EALib and Avida4 sample project:
git clone https://github.com/dknoester/ealib.git ealib
git clone https://github.com/dknoester/avida4.git avida4
To make sure everything's working:
cd ealib
bjam
cd ../avida4
bjam
A sample run (from avida4/):
./bin/clang-darwin-4.2.1/debug/link-static/avida-logic9 -c ./etc/logic9.cfg --verbose
========
MSU HPCC (QUICK WAY):
========
Put these:
export BOOST_BUILD_PATH=/mnt/home/dk/share/boost-build
export PATH=$PATH:/mnt/home/dk/bin
... in your ~/.bashrc (or other shell startup script). That should do it.
========
MSU HPCC (ROLL YOUR OWN, AT YOUR OWN RISK, INSTALLS IN YOUR HOME DIR):
========
Make sure that your path includes ${HOME}/bin, e.g., put this:
export PATH=$PATH:${HOME}/bin
... in your ~/.bashrc (or other shell startup script).
Download boost (current rls == 1.55):
wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz
tar -xzf boost_1_55_0.tar.gz
cd boost_1_55_0
Build bjam:
cd tools/build/v2
./bootstrap.sh
./b2 install --prefix=${HOME}
Site config:
vi ~/share/boost-build/site-config.jam
>>>
using gcc : : : <compileflags>-ftemplate-depth-255 ;
import os ;
local HOME = [ os.environ HOME ] ;
local INC = $(HOME)/include ;
local LIB = $(HOME)/lib ;
local SYS = /usr/lib64 ;
import boost ;
using boost : 1.55 :
<include>$(INC)
<library>$(LIB)
<layout>system
;
boost.use-project 1.55 ;
project site-config : requirements <include>$(INC) ;
lib z : : <link>shared <name>z <search>$(SYS) ;
>>>
Copy boost.jam:
cp contrib/boost.jam ~/share/boost-build/
Set the boost build root; add this:
export BOOST_BUILD_PATH=$HOME/share/boost-build
... to your ~/.bashrc (or other shell startup script).
Build boost:
(back in boost_1_55_0/)
./bootstrap.sh --prefix=${HOME}
./b2
./b2 install
That should be it...
========
OS X
========
These instructions install Boost to /usr/local. Make sure that /usr/local/bin is on your path. If you don't install Boost there, you'll have trouble with XCode. Also, these instructions do not install all of Boost; some libraries are left out due to trouble with the latest clang.
Download boost: (current rls == 1.56):
tar -xzf boost_<<FILENAME>>.tar.gz
cd boost_<<DIR NAME>>
Build bjam:
cd tools/build
./bootstrap.sh --with-toolset=clang
sudo ./b2 install --toolset=clang
Copy boost.jam:
sudo cp src/contrib/boost.jam /usr/local/share/boost-build/src/tools
Put this in your ~/.bashrc:
export BOOST_BUILD_PATH=/usr/local/share/boost-build
Build boost:
(back in boost_<<DIRNAME>>)
./bootstrap.sh --with-toolset=clang --with-libraries=filesystem,iostreams,program_options,regex,serialization,system,test,timer --without-icu
./b2
STOP. Look at the "Performing configuration checks" output. Make sure that zlib is "yes." If not, go install it (e.g., from MacPorts: zlib 1.2.8_0). Delete the bin.v2 directory and go back to the bootstrap step above. Then...
sudo ./b2 install
Site config:
Copy the below into /usr/local/share/boost-build/site-config.jam:
using clang ;
import boost ;
boost.use-project ;
project site-config ;
lib z ;