source: TRACY3/trunk/tracy_3_10_install @ 8

Last change on this file since 8 was 3, checked in by zhangj, 12 years ago

Initiale import

File size: 1.9 KB
Line 
1*======================================
2*   compile numberical receipes
3*======================================
4
5(1) install the package "xutils-dev"
6
7   sudo apt-get install xutils-dev
8
9(2) at the path "recipes_c-ansi/", make the objects
10        make
11(3) make dependences of the objects
12     makedepend
13
14After finish the above steps,
15the objects files should be generated in the path "recipes",
16and a static library "librecipes_c_gcc.a"
17should be generated in the path "lib".
18 
19*==================================================
20*  Compile the tracy source code and
21*  link with the objects from numberical receipe       
22*==================================================
23(1) set the enviroments for tracy III. For example,
24     for ubuntu 11.10/12.04 LST in MacBook Pro. 8.2, add the
25     following lines in ~/.bashrc:
26     
27     for ubuntu 11.10:
28     export LIBPATH=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/
29   
30     for ubuntu 12.04
31     export LIBPATH=/usr/lib/gcc/x86_64-linux-gnu/4.6.3/
32
33
34     export LD_LIBRARY_PATH=$LIBPATH:/usr/local/lib:/usr/lib
35     CODEDIR=$HOME/codes
36     export NUM_REC=$CODEDIR/nrecipes/recipes_c-ansi
37     export TRACY_LIB=$CODEDIR/tracyIII_3_10/tracy
38
39(2)What is necessary:
401/ gcc
412/ g++
423/ gfortran
434/ autoconf
445/ libtool
456/ libgls0-dev (lib + development library with header such as gls_sf.h; GNU Scientific Library(GSL) -- development package)
46
47so install the above 6 packages first!!!!!!!!!!
48   
49
50(2) run the script to generate makefile, compile the objects,
51    link, and then generate the execute file "soltracy" at the
52    path "tracy/tool".
53     
54     chmod +x make_for_gcc.sh
55     ./make_for_gcc.sh
56
57(3) Finally, a execute file "soltracy" is generated in the path "tracy/tools"
58
59 (4) make a symbolic link to the "soltracy", so tracy can be called
60    any path in the computer, using the command "soltracy3".
61
62    sudo ln -s  /home/jfz/codes/tracyIII_3_10/tracy/tools/soltracy  /usr/local/bin/soltracy3
63
Note: See TracBrowser for help on using the repository browser.