1 | ########################################################################## |
---|
2 | April 11th, 2011 |
---|
3 | LNLS |
---|
4 | Laurent S. Nadolski |
---|
5 | |
---|
6 | ########################################################################## |
---|
7 | Numerical recipes |
---|
8 | 1/ xutils-dev for makedepend |
---|
9 | 2/ makedepend in the src file of nrecipes directory |
---|
10 | |
---|
11 | ########################################################################## |
---|
12 | Installation of Tracy3 |
---|
13 | |
---|
14 | What is necessary: |
---|
15 | 1/ gcc |
---|
16 | 2/ g++ |
---|
17 | 3/ autoconf |
---|
18 | 4/ libtool |
---|
19 | 5/ libgls0-dev lib + development library with header such as gls_sf.h |
---|
20 | |
---|
21 | ########################################################################## |
---|
22 | Modify .bashrc to get environment variables |
---|
23 | cf set_var.sh or set_var4LNLS.sh |
---|
24 | Set the path to fit your computer architecture |
---|
25 | |
---|
26 | ########################################################################## |
---|
27 | For compilation of TracyIII |
---|
28 | In root directory of TracyIII, run the command: |
---|
29 | ./make_for_gcc.sh opt |
---|
30 | |
---|
31 | or run the command to trigger the debug mode: |
---|
32 | ./make_for_gcc.sh debug |
---|
33 | |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | An executable file is generated in directory TracyIII/tracy/tracy/bin: |
---|
38 | soltracy |
---|
39 | |
---|
40 | this file can be put in your path to run the code from anywhere |
---|
41 | |
---|
42 | ######################################################################### |
---|
43 | Example to test the code: |
---|
44 | executable is soltracy located in $TRACY_LIB/tools |
---|
45 | |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | #################################################### |
---|
51 | #################################################### |
---|
52 | # Instruction to install Tracy3 in ubuntu 12.04 |
---|
53 | # |
---|
54 | # Jianfeng Zhang @ LAL, 2012/04 |
---|
55 | ################################################## |
---|
56 | ################################################### |
---|
57 | |
---|
58 | *====================================== |
---|
59 | * compile numberical receipes |
---|
60 | *====================================== |
---|
61 | |
---|
62 | (1) install the package "xutils-dev" |
---|
63 | |
---|
64 | sudo apt-get install xutils-dev |
---|
65 | |
---|
66 | (2) at the path "recipes_c-ansi/", make the objects |
---|
67 | make |
---|
68 | (3) make dependences of the objects |
---|
69 | makedepend |
---|
70 | |
---|
71 | After finish the above steps, |
---|
72 | the objects files should be generated in the path "recipes", |
---|
73 | and a static library "librecipes_c_gcc.a" |
---|
74 | should be generated in the path "lib". |
---|
75 | |
---|
76 | *================================================== |
---|
77 | * Compile the tracy source code and |
---|
78 | * link with the objects from numberical receipe |
---|
79 | *================================================== |
---|
80 | (1) set the enviroments for tracy III. For example, |
---|
81 | for ubuntu 11.10/12.04 LST in MacBook Pro. 8.2, add the |
---|
82 | following lines in ~/.bashrc: |
---|
83 | |
---|
84 | for ubuntu 11.10: |
---|
85 | export LIBPATH=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/ |
---|
86 | |
---|
87 | for ubuntu 12.04 |
---|
88 | export LIBPATH=/usr/lib/gcc/x86_64-linux-gnu/4.6.3/ |
---|
89 | |
---|
90 | |
---|
91 | export LD_LIBRARY_PATH=$LIBPATH:/usr/local/lib:/usr/lib |
---|
92 | CODEDIR=$HOME/codes |
---|
93 | export NUM_REC=$CODEDIR/nrecipes/recipes_c-ansi |
---|
94 | export TRACY_LIB=$CODEDIR/tracyIII_3_10/tracy |
---|
95 | |
---|
96 | (2)What is necessary: |
---|
97 | 1/ gcc |
---|
98 | 2/ g++ |
---|
99 | 3/ gfortran |
---|
100 | 4/ autoconf |
---|
101 | 5/ libtool |
---|
102 | 6/ libgls0-dev (lib + development library with header such as gls_sf.h; GNU Scientific Library(GSL) -- development package) |
---|
103 | |
---|
104 | so install the above 6 packages first!!!!!!!!!! |
---|
105 | |
---|
106 | |
---|
107 | (2) run the script to generate makefile, compile the objects, |
---|
108 | link, and then generate the execute file "soltracy" at the |
---|
109 | path "tracy/tool". |
---|
110 | |
---|
111 | chmod +x make_for_gcc.sh |
---|
112 | ./make_for_gcc.sh |
---|
113 | |
---|
114 | (3) Finally, a execute file "soltracy" is generated in the path "tracy/tools" |
---|
115 | |
---|
116 | (4) make a symbolic link to the "soltracy", so tracy can be called |
---|
117 | any path in the computer, using the command "soltracy3". |
---|
118 | |
---|
119 | sudo ln -s /home/jfz/codes/tracyIII_3_10/tracy/tools/soltracy /usr/local/bin/soltracy3 |
---|
120 | |
---|