instalar seismic unix

2
Installing Seismic Unix This page discusses the installation of Seismic Unix version 38 on a 32 bit Debian Linux machine » Ubuntu Linux . This procedure should be similar for other Linux machines, but other platforms such as Solaris or OS X might vary considerably. For further information, you should try the SU homepage » http :// www . cwp . mines . edu / cwpcodes / . First step, download the SU package from the CWP website » http :// www . cwp . mines . edu / cwpcodes / . Second step, unpack the archive in an appropriate spot. Note that you do not have to be root to compile this software. Wget is used as an example of how to download the program, certainly the url for the file will change in the future. mkdir /home/chris/source/seismic_unix38 cd /home/chris/source/seismic_unix38 wget »ftp://ftp.cwp.mines.edu/pub/cwpcodes/cwp.su.all.38.tar.gz tar -zxvf cwp.su.all.38.tar.gz Before compiling the software, we have to have several dependencies installed. These are easily installed with apt-get or the Synaptic front-end GUI. C and Fortran compiler, the obvious choice being gcc / g77, but the Intel compiler may also work. X windows, xlibs and xlibs developmental packages. Lesstif and Lesstif developmental packages (or Motif) for optional motif programs Mesa (xlibmesa-glu) / OpenGl (libglut3) for optional OpenGl programs. The next step is to configure the parameters for compiling. The following example Makefile.config was used for compiling SU on Ubuntu (Debian) and is quite a bit different than the default config » upload / Makefile . config . This belongs in the src subdirectory. Type the following, this path should be where the source code was unpacked. export CWPROOT=/home/chris/source/seismic_unix38 We are now ready to compile the various programs in SU. cd src make install (to install the basic set of codes) make xtinstall (to install the X-toolkit applications) make finstall (to install the Fortran codes) make mglinstall (to install the Mesa/ Open GL items)

Upload: yesid-goyes

Post on 18-Apr-2015

75 views

Category:

Documents


0 download

DESCRIPTION

Uploaded from Google Docs

TRANSCRIPT

Page 1: INSTALAR SEISMIC UNIX

Installing Seismic UnixThis page discusses the installation of Seismic Unix version 38 on a 32 bit Debian Linux machine » Ubuntu Linux . This procedure should be similar for other Linux machines, but other platforms such as Solaris or OS X might vary considerably. For further information, you should try the SU homepage » http :// www . cwp . mines . edu / cwpcodes / .

● First step, download the SU package from the CWP website » http :// www . cwp . mines . edu / cwpcodes / .

● Second step, unpack the archive in an appropriate spot. Note that you do not have to be root to compile this software. Wget is used as an example of how to download the program, certainly the url for the file will change in the future.

mkdir /home/chris/source/seismic_unix38cd /home/chris/source/seismic_unix38wget »ftp://ftp.cwp.mines.edu/pub/cwpcodes/cwp.su.all.38.tar.gztar -zxvf cwp.su.all.38.tar.gz

● Before compiling the software, we have to have several dependencies installed. These are easily installed with apt-get or the Synaptic front-end GUI.

○ C and Fortran compiler, the obvious choice being gcc / g77, but the Intel compiler may also work.

○ X windows, xlibs and xlibs developmental packages.○ Lesstif and Lesstif developmental packages (or Motif) for optional motif programs○ Mesa (xlibmesa-glu) / OpenGl (libglut3) for optional OpenGl programs.

● The next step is to configure the parameters for compiling. The following example Makefile.config was used for compiling SU on Ubuntu (Debian) and is quite a bit different than the default config » upload / Makefile . config . This belongs in the src subdirectory.

● Type the following, this path should be where the source code was unpacked.export CWPROOT=/home/chris/source/seismic_unix38

● We are now ready to compile the various programs in SU.cd srcmake install (to install the basic set of codes)make xtinstall (to install the X-toolkit applications)make finstall (to install the Fortran codes)make mglinstall (to install the Mesa/ Open GL items)make utils (to install libcwputils) (nonessential)make xminstall (to install the Motif application)(nonessential)

● These programs should now be compiled in $CWPROOT/bin. This directory can be added to your PATH with the following lines added to your ~/.bashrc file. This will make these SU programs available from any directory. This is the method to use if you do not have root access to your machine.

export CWPROOT=/home/chris/source/seismic_unix38export PATH=$PATH:/home/chris/source/seismic_unix38/bin

OR● If these programs are to be installed system wide (recommended), then compile them in

a location such as /usr/local/seismic_unix and add these lines to /etc/profile:export CWPROOT=/usr/local/seismic_unixexport PATH=$PATH:/usr/local/seismic_unix/bin

● Seismic Unix comes with extensive examples in $CWPROOT/src/demos, these can be used to test the installation.