source: TRACY3/trunk/README

Last change on this file was 27, checked in by zhangj, 10 years ago

Remove unnessary configuration files and arrange the logs.

File size: 4.2 KB
Line 
1##########################################################################
2Tracy Install instruction for ALBA
3
4Before 2011?  By L. Nadolski@SOLEIL????
5
6##########################################################################
7Tracy-3
8
9Author: Johan Bengtsson
10
11Requirements:
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
23To 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##########################################################################
47April 11th, 2011
48LNLS
49Laurent S. Nadolski
50
51##########################################################################
52Numerical recipes
531/ xutils-dev for makedepend
542/ makedepend in the src file of nrecipes directory
55
56##########################################################################
57Installation of Tracy3
58
59What is necessary:
601/ gcc
612/ g++
623/ autoconf
634/ libtool
645/ libgls0-dev lib + development library with header such as gls_sf.h
65
66##########################################################################
67Modify .bashrc to get environment variables
68cf set_var.sh or set_var4LNLS.sh
69Set the path to fit your computer architecture
70
71##########################################################################
72For compilation of TracyIII
73In root directory of TracyIII, run the command:
74./make_for_gcc.sh opt
75
76or run the command to trigger the debug mode:
77./make_for_gcc.sh debug
78
79
80 
81
82An executable file is generated in directory TracyIII/tracy/tracy/bin:
83soltracy
84
85this file can be put in your path to run the code from anywhere
86
87#########################################################################
88Example to test the code:
89executable 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
116After finish the above steps,
117the objects files should be generated in the path "recipes",
118and a static library "librecipes_c_gcc.a"
119should 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:
1421/ gcc
1432/ g++
1443/ gfortran
1454/ autoconf
1465/ libtool
1476/ libgls0-dev (lib + development library with header such as gls_sf.h; GNU Scientific Library(GSL) -- development package)
148
149so 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
Note: See TracBrowser for help on using the repository browser.