The basic steps for installing SU (Seismic Unix) on Ubuntu16.04 are ubuntu16.04seismic.

Source: Internet
Author: User
Tags gfortran

The basic steps for installing SU (Seismic Unix) on Ubuntu16.04 are ubuntu16.04seismic.

Seismic Unix (SU) is a source Seismic data processing software developed by the Wave Field Research Center (CWP) of the Colorado mining Institute, at present, many scholars use SU for seismic data processing and programming in Linux. I personally studied FWI and used SU programming for seismic exploration in Linux. I would like to share my experience in installing SU in Linux.

Operating System: 64-bit Ubuntu16.04.3; machine: workstation (DELL)

SU41R3: http://www.cwp.mines.edu/cwpcodes/

Basic installation steps:

(1) 8 software packages are pre-installed.
Enter the following command in the terminal in sequence:
Sudo apt-get install build-essential
Sudo apt-get install libx11-dev
Sudo apt-get install libxt-dev
Sudo apt-get install freeglut3

Sudo apt-get install freeglut3-dev

Sudo apt-get install libxmu-dev

Sudo apt-get install libxi-dev
Sudo apt-get install gfortran
(2) preparations.
① Add environment variables to the. bashrc file.
Export CWPROOT =/home/yourname/su
Export PATH = $ PATH:/home/yourname/su/bin
Note: Here/home/yourname/su is the directory where you download and decompress su. After saving and exiting, run the command: source. bashrc.

② My SU version is cwp_su_all_41R3. Copy the downloaded source file to/home/yourname/su. After decompression, a new folder "src" is displayed ".
Go to the folder, find the Makefile. config file, and modify it as follows:

A. Activate XDRFLAG = sentence (I .e. remove #).

B. Block the XDRFLAG =-DSUXDR-D_BSD_SOURCE sentence

C. Disable OPTF =-static-fno-automatic-fno-second-underscore.

D. Block FC = g77, FC = f77, FC = gfortran, activate and activate FC = ifort.

(3) Installation
Run the following commands in sequence on the terminal:
Make install
Make xtinstall
Make finstall
Make mglinstall
After installation, the bin, include, lib, and other folders will appear in the current directory.

(4) test. Test.
After the installation is complete, run suplane | suxwib &. The installation is successful.


The above is just a little personal experience, and I hope to help you.

View comments

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.