-
Notifications
You must be signed in to change notification settings - Fork 8
/
INSTALL
executable file
·141 lines (89 loc) · 2.87 KB
/
INSTALL
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
127
128
129
130
131
132
133
134
135
136
137
138
139
* QUICK INSTRUCTIONS:
The configure script is a convenience wrapper. For a Perl build of biolib:
./configure
make
make test
make install
For a Ruby build:
./configure --with-ruby
make
make test
make install
For a Perl build:
./configure --with-perl
make
make test
make install
** Using CMake directly
The following makes the default libraries:
cmake .
make
make test
** Using Rake (with Ruby)
To install BioLib with Ruby support one can simply execute rake:
rake build
rake test
rake install
For installations specific to Perl, Python etc. see below.
* INSTALL biolib
Install or build the following tools on your system
gcc > 3.3.x (usually default on Linux)
cmake >= 2.6 (2008 distributions - needed for SWIG support)
swig >= 1.3.36 (2009 distributions)
python >= 2.4 (if you want Python support)
ruby >= 1.8.6 (if you want Ruby support)
perl >= 5.8.8 (if you want Perl support)
So for Debian you can do:
apt-get install g++ cmake swig r-base zlib1g-dev python ruby perl
see also ./doc/DEPENDENCIES.txt for more information on runtime libraries.
cmake 2.6 is available in Debian testing and etch-backports.
To build all Bio* biolib modules use:
./install.sh
which executes, essentially:
cmake .
make
make test
su -c make install
Now see if you can run the following:
ruby src/mappings/swig/ruby/test/test_example.rb
or,
ruby -I ./src/mappings/swig/ruby/example/ src/mappings/swig/ruby/test/test_example.rb
To change the default installation path use, for example:
cmake -DCMAKE_INSTALL_PREFIX=/opt/biolib .
make
make install
which puts the shared libraries in /opt/biolib/lib.
To have your programs find the shared libraries you may have to add '/usr/lib'
to ld.so.conf or add it the LD_LIBRARY_PATH.
The language specific libraries get copied into the language directories,
as modules.
** RUBY
To build BioLib RUBY libraries:
cmake -DBUILD_RUBY:BOOLEAN=TRUE .
make
ctest
su -c make install
** PYTHON
To build BioLib PYTHON libraries:
cmake -DBUILD_PYTHON:BOOLEAN=TRUE .
make
ctest
** PERL
To build BioLib PERL libraries:
cmake -DBUILD_PERL:BOOLEAN=TRUE .
make
ctest
** Build specific libraries only
Some libraries may have dependencies that are not relevant to your needs. For
example you may want to install the Staden for Perl only you can pass parameters:
sh scripts/cleanup.sh
cmake -DSTADEN_LIB:BOOLEAN=TRUE -DBUILD_PERL:BOOLEAN=TRUE .
make
su -c make install
** APIDOC
To build the API documentation (low-level 'C')
cmake -DBUILD_DOCS:BOOLEAN=TRUE .
make apidoc
** TROUBLE SHOOTING
When switching between build parameters make sure to remove the CMakeCache.txt
file in all directories. This can be achieved with sh ./scripts/cleanup.sh.