source: TRACY3/branches/tracy3-3.10.1b/README @ 32

Last change on this file since 32 was 16, checked in by zhangj, 11 years ago

Remove the instruction file tracy_3_10_install to install Tracy3 in ubuntu 12.04, and merge the file contents in the file README

File size: 3.4 KB
Line 
1##########################################################################
2April 11th, 2011
3LNLS
4Laurent S. Nadolski
5
6##########################################################################
7Numerical recipes
81/ xutils-dev for makedepend
92/ makedepend in the src file of nrecipes directory
10
11##########################################################################
12Installation of Tracy3
13
14What is necessary:
151/ gcc
162/ g++
173/ autoconf
184/ libtool
195/ libgls0-dev lib + development library with header such as gls_sf.h
20
21##########################################################################
22Modify .bashrc to get environment variables
23cf set_var.sh or set_var4LNLS.sh
24Set the path to fit your computer architecture
25
26##########################################################################
27For compilation of TracyIII
28In root directory of TracyIII, run the command:
29./make_for_gcc.sh opt
30
31or run the command to trigger the debug mode:
32./make_for_gcc.sh debug
33
34
35 
36
37An executable file is generated in directory TracyIII/tracy/tracy/bin:
38soltracy
39
40this file can be put in your path to run the code from anywhere
41
42#########################################################################
43Example to test the code:
44executable 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
71After finish the above steps,
72the objects files should be generated in the path "recipes",
73and a static library "librecipes_c_gcc.a"
74should 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:
971/ gcc
982/ g++
993/ gfortran
1004/ autoconf
1015/ libtool
1026/ libgls0-dev (lib + development library with header such as gls_sf.h; GNU Scientific Library(GSL) -- development package)
103
104so 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
Note: See TracBrowser for help on using the repository browser.