forked from mtholder/ncl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
70 lines (56 loc) · 2.77 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
Copyright (c) 2004 by Paul O. Lewis
================================================================================
Building from svn checkout
================================================================================
In the instructions, the $ represents your shell's prompt (you don't type the in
the $ part of the command -- note that if you are using a different shell you
may see a % instead of $. That is fine, the instructions should still work).
$ sh bootstrap.sh
$ cd ..
$ mkdir build
$ cd build
$ ../v2.1/configure
$ make
$ make check
$ make install
$ make installcheck
================================================================================
Building from svn checkout
================================================================================
After you unpack the archive follow the instructions above (in the
"Building from svn checkout" section), except that you can skip the first step.
================================================================================
Installing to a non-standard location
================================================================================
Note that if you are anticipating keeping up-to-date with the
repository or have multiple NCL builds that you test against, then
you may want to install in a non-standard location.
For instance invoking:
$ ../v2.1/configure --prefix=`pwd`/installed
will make the install products go inside an installed subdirectory
of your build directory. This is paricularly helpful if you
build several different variants (you can have builddebug and buildrelease
directories built from the same source tree).
If you do install to a non-standard location, then you may have to add the path
to the installed library (the argument to prefix plus the subdirectory lib/ncl)
to your LD_LIBRARY_PATH environmental variable. Note that on Mac (and possibly
other BSD OS versions) you have to set the DYLD_LIBRARY_PATH variable rather
than LD_LIBRARY_PATH.
If you use bash you can do this by adding something like this to your
~/.bash_profile file:
##############################################################################
if test -z $LD_LIBRARY_PATH
then
ÊÊÊLD_LIBRARY_PATH="/abs/path/to/your/install/prefix/lib/ncl"
else
ÊÊÊLD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/abs/path/to/your/install/prefix/lib/ncl"
fi
export LD_LIBRARY_PATH
##############################################################################
where you substitute the path that you passed as a --prefix to configure for the
string "/abs/path/to/your/install/prefix" above.
================================================================================
bjam builds
================================================================================
NCL also includes a Jamroot file for users who have projects that are built
with the bjam tool.