1 | ########################################################################## |
---|
2 | Tracy Install instruction for ALBA |
---|
3 | |
---|
4 | Before 2011? By L. Nadolski@SOLEIL???? |
---|
5 | |
---|
6 | ########################################################################## |
---|
7 | Tracy-3 |
---|
8 | |
---|
9 | Author: Johan Bengtsson |
---|
10 | |
---|
11 | Requirements: |
---|
12 | |
---|
13 | 1. GNU autoconf and automake environment. |
---|
14 | |
---|
15 | 2. GNU C++ compiler: gcc |
---|
16 | |
---|
17 | 3. Numerical Recipes in C (with support for "double"). |
---|
18 | Assumed directory structure: |
---|
19 | |
---|
20 | $NUM_REC/lib libnum_rec.a |
---|
21 | $NUM_REC/inc nrutil.h, nr.h |
---|
22 | |
---|
23 | To install: |
---|
24 | |
---|
25 | 1. Define the environment variable: |
---|
26 | |
---|
27 | $NUM_REC = <path to Numerical Recipes library> |
---|
28 | |
---|
29 | 2. tar -xvzf <tar ball name> |
---|
30 | |
---|
31 | 3. cd tracy-3.0 |
---|
32 | |
---|
33 | 4. ./bootstrap |
---|
34 | |
---|
35 | 5. ./configure |
---|
36 | |
---|
37 | 6. cd tracy/wrk |
---|
38 | |
---|
39 | 7. make |
---|
40 | |
---|
41 | 8. ./main lattice/ALBA |
---|
42 | |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | ########################################################################## |
---|
47 | April 11th, 2011 |
---|
48 | LNLS |
---|
49 | Laurent S. Nadolski |
---|
50 | |
---|
51 | ########################################################################## |
---|
52 | Numerical recipes |
---|
53 | 1/ xutils-dev for makedepend |
---|
54 | 2/ makedepend in the src file of nrecipes directory |
---|
55 | |
---|
56 | ########################################################################## |
---|
57 | Installation of Tracy3 |
---|
58 | |
---|
59 | What is necessary: |
---|
60 | 1/ gcc |
---|
61 | 2/ g++ |
---|
62 | 3/ autoconf |
---|
63 | 4/ libtool |
---|
64 | 5/ libgls0-dev lib + development library with header such as gls_sf.h |
---|
65 | |
---|
66 | ########################################################################## |
---|
67 | Modify .bashrc to get environment variables |
---|
68 | cf set_var.sh or set_var4LNLS.sh |
---|
69 | Set the path to fit your computer architecture |
---|
70 | |
---|
71 | ########################################################################## |
---|
72 | For compilation of TracyIII |
---|
73 | In root directory of TracyIII, run the command: |
---|
74 | ./make_for_gcc.sh opt |
---|
75 | |
---|
76 | or run the command to trigger the debug mode: |
---|
77 | ./make_for_gcc.sh debug |
---|
78 | |
---|
79 | |
---|
80 | |
---|
81 | |
---|
82 | An executable file is generated in directory TracyIII/tracy/tracy/bin: |
---|
83 | soltracy |
---|
84 | |
---|
85 | this file can be put in your path to run the code from anywhere |
---|
86 | |
---|
87 | ######################################################################### |
---|
88 | Example to test the code: |
---|
89 | executable is soltracy located in $TRACY_LIB/tools |
---|
90 | |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | |
---|
95 | #################################################### |
---|
96 | #################################################### |
---|
97 | # Instruction to install Tracy3 in ubuntu 12.04 |
---|
98 | # |
---|
99 | # Jianfeng Zhang @ LAL, 2012/04 |
---|
100 | ################################################## |
---|
101 | ################################################### |
---|
102 | |
---|
103 | *====================================== |
---|
104 | * compile numberical receipes |
---|
105 | *====================================== |
---|
106 | |
---|
107 | (1) install the package "xutils-dev" |
---|
108 | |
---|
109 | sudo apt-get install xutils-dev |
---|
110 | |
---|
111 | (2) at the path "recipes_c-ansi/", make the objects |
---|
112 | make |
---|
113 | (3) make dependences of the objects |
---|
114 | makedepend |
---|
115 | |
---|
116 | After finish the above steps, |
---|
117 | the objects files should be generated in the path "recipes", |
---|
118 | and a static library "librecipes_c_gcc.a" |
---|
119 | should be generated in the path "lib". |
---|
120 | |
---|
121 | *================================================== |
---|
122 | * Compile the tracy source code and |
---|
123 | * link with the objects from numberical receipe |
---|
124 | *================================================== |
---|
125 | (1) set the enviroments for tracy III. For example, |
---|
126 | for ubuntu 11.10/12.04 LST in MacBook Pro. 8.2, add the |
---|
127 | following lines in ~/.bashrc: |
---|
128 | |
---|
129 | for ubuntu 11.10: |
---|
130 | export LIBPATH=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/ |
---|
131 | |
---|
132 | for ubuntu 12.04 |
---|
133 | export LIBPATH=/usr/lib/gcc/x86_64-linux-gnu/4.6.3/ |
---|
134 | |
---|
135 | |
---|
136 | export LD_LIBRARY_PATH=$LIBPATH:/usr/local/lib:/usr/lib |
---|
137 | CODEDIR=$HOME/codes |
---|
138 | export NUM_REC=$CODEDIR/nrecipes/recipes_c-ansi |
---|
139 | export TRACY_LIB=$CODEDIR/tracyIII_3_10/tracy |
---|
140 | |
---|
141 | (2)What is necessary: |
---|
142 | 1/ gcc |
---|
143 | 2/ g++ |
---|
144 | 3/ gfortran |
---|
145 | 4/ autoconf |
---|
146 | 5/ libtool |
---|
147 | 6/ libgls0-dev (lib + development library with header such as gls_sf.h; GNU Scientific Library(GSL) -- development package) |
---|
148 | |
---|
149 | so install the above 6 packages first!!!!!!!!!! |
---|
150 | |
---|
151 | |
---|
152 | (2) run the script to generate makefile, compile the objects, |
---|
153 | link, and then generate the execute file "soltracy" at the |
---|
154 | path "tracy/tool". |
---|
155 | |
---|
156 | chmod +x make_for_gcc.sh |
---|
157 | ./make_for_gcc.sh |
---|
158 | |
---|
159 | (3) Finally, a execute file "soltracy" is generated in the path "tracy/tools" |
---|
160 | |
---|
161 | (4) make a symbolic link to the "soltracy", so tracy can be called |
---|
162 | any path in the computer, using the command "soltracy3". |
---|
163 | |
---|
164 | sudo ln -s /home/jfz/codes/tracyIII_3_10/tracy/tools/soltracy /usr/local/bin/soltracy3 |
---|
165 | |
---|