forked from yuanyuxin0077/FD-RTM-FWI-2018.01.31backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Software_Install.txt
214 lines (151 loc) · 6.51 KB
/
Software_Install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
********************************************************
*** Receive Function and Installing *****
********************************************************
------------------------------------------------------------------------
1.sac/sac2000
install in: /opt/sac
####################change the install position#########################
install in: /usr/local/sac
procedures:vi .bashrc
export PATH=/usr/local/sac/bin:$PATH
export SACAUX=/usr/local/sac/aux
Esc + :wq
source .bashrc #save the .bashrc
########################################################################
---------------------------------------------------------------------
2.GMT
install in: apt-get install GMT
-------------------------------------------------------------------------
3.pssac2
copy the 'pssac2' to '/opt' (#'recf' is the name of the source document)
------------------------------------------------------------------------
4.Installing the source code of the 'recf'
input the following command:
$cd recFunc/RForward/
$cd Subs
$make (modified the 'Makefile' is needed,
because 'sac' install in 'usr')
$cd ../Decon
$make (same with up)
$cd ../RespKennett
$make (same with up)
$cd ../Utilities
$make (same with up) -----this procedure isn't complete yet.
------------------------------------------------------------------------
5.Creat the document '/opt'
$cd ~
$mkdir bin
------------------------------------------------------------------------
6.lupei.o
$cd ~
$cp -a /home/rongtao/Desktop/software/recf/lupeiStack bin
get in the 'bin' you just built ($cd---)
$gcc -o lupei.o lupeiStack.c -lm
copy the 'lupei.o' to 'bin' ,so that other shell can use it.
----------------------------------------------------------------------------
7.ttimes and evt2sac
copy these two to 'bin','ttimes' doesn't need configure,'evt2sac' need.
$cd evt2sac
$make
------------------------------------------------------------------------
3.rdseed
insrall in: /usr/local/rdseed
procedure:make clean + vi Makefile +
change the "#" between 32 and 64 +
vi .bashrc +
export PATH=/usr/local/rdseed +
Esc + :wq
--------------------------------------------------------------------
4.Madagascar (wrong install,so make installing again,see in the following part)
sudo apt-get install freeglut3-dev g++ gfortran libgd2-xpm-dev libglew1.5-dev
there are some problems about installing (suggested packages:
libxcb-doc
.....
sudo apt-get install libjpeg62-dev libx11-dev
sudo apt-get install libxaw7-dev libnetpbm10-dev swig python-dev python-scipy python-numpy
sudo apt-get install libtiff4-dev scons units libblas-dev
sudo apt-get install libcairo2-dev libavcodec-dev libplplot-dev
there are some problem too.
cp -a /Desktop/madagascar /usr
cd madagascar
scons (problem?)
scons install
vi .bashrc +
---------------------------------------------------------------------------------------
5.Madagascar(try installing again,follow the 'INSTALL.txt')
(c complier and Python interpreter have not ready yet)
cd /usr/madagascar
./configure --prefix=/usr/madagascar/install
./configure --prefix=/usr/madagascar/install \API fortran-90
make ...Done
make install
source /usr/madagascar/install/share/madagascar/etc/env.sh
#source /usr/madagascar/install/share/madagascar/etc/env.csh
install is Done,the following code is try to test the installing successfully or not.
(sfin
sfattr
sfspike
sfbandpass
sfwiggle)
-----------------------------------------------------------------------------------------------
6.Seismic Unix
sometimes when i use the Madagascar smoothly,and consider the SU is necessary or not...
2015/10/30
installing the sesmic unix today,
修改~/.bashrc
export CWPROOT=/home/rongtao/su
export PATH=$PATH:/home/rongtao/su/bin
make install
make xtinstall
make finstall
make mglinstall
There still some thing wrong!
------------------------------------------------------------------------------
7.mpich2
installing in '/home/mpi/mpich/src'
procedure:
./configure -prefix=/home/mpi/mpich2
sudo make
sudo make install
modify the '~/.bashrc'
+export MPI_ROOT=/home/mpi/mpich2
+export PATH=$MPI_ROOT/bin:$PATH
+export MANPATH=$MPI_ROOT/man:$MANPATH
(then you can configure your own code)
mpicc -o hello hello.c
mpirun -np 4 ./hello
How to run the hello?
cd $HOME
touch .mpd.conf
chmod 600 .mpd.conf
(then )
mpdboot
cd ~
touch .mpd.conf
chmod 600 .mpd.conf
(then )
mpirun -np 4 ./hello
(come from internet: http://www.cnblogs.com/liyanwei/archive/2010/04/26/1721142.html )
*******************there a code you can learn**************************
#include "mpi.h"
#include <stdio.h>
#include <math.h>
int main (int argc, char **argv)
{
int myid, numprocs;
int namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init (&argc, &argv);
MPI_Comm_rank (MPI_COMM_WORLD, &myid);
MPI_Comm_size (MPI_COMM_WORLD, &numprocs);
MPI_Get_processor_name (processor_name, &namelen);
fprintf (stderr, "Hello World! Process %d of %d on %s\n", myid, numprocs, processor_name);
MPI_Finalize ();
return 0;
}
**************************End of the code********************************
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
8.俄罗斯方块
直接运行yetris