Wednesday, February 8, 2012

How to install Seismic Unix on mac OS X

Seismic Unix is a open source seismic processing package supported by Central for Wave Phenomena (CWP) at the Colorado School of Mines. Seismic Unix (SU) package (latest 43R1) can be downloaded from  Seismic Unix Home page

Here is step-by-step installation process in mac OS environment.

1. Download tar file in the path-----Users/You/cwpsu. It is better not to download in root

2. Uncompress or Untar the file using

                tar -xvf cwp_su_all_43R1.tar

3. In home folder, check for .bash_profile and set CWPROOT environment after editing it as

                export CWPROOT=Users/You/cwpsu

                PATH=$PATH:/Users/You/cwpsu/bin: .

                export PATH

4. Insert command - source .bash_profile

               You can check environment by
               echo $CWPROOT

5. In cwpsu/src, edit Makefile.config or you can copy from cwpsu/src/configs as

              cp configs/Makefile.config_Darwin_i386    

$CWPROOT/src/Makefile.config

6. Install by entering command - make install

Install 'command line tool' if not installed previously.
Open Xcode, go to preferences, Downloads ---- Install 'Command line tools'


7. Type command - make xtinstall

8. Check by typing command - suplane | suximage &

For help and tutorials see SU Wiki Guide

Enjoy Seismic Unix !!

Note: 
In 'Makefile.config_Darwin_i386' in folder 'Src/Config', spelling should be corrected. 'T' in the -DCWP_LITTLE_ENDIAN is missing.

LINEHDRFLAG =
XDRFLAG = -DSUXDR
ENDIANFLAG = -DCWP_LITTLE_ENDIAN
LARGE_FILE_FLAG =

CWP_FLAGS = $(LARGE_FILE_FLAG) $(ENDIANFLAG) $(XDRFLAG) $(LINEHDRFLAG)

7 comments:

  1. "check for .bash_profile " what does this means? If this file does not exist what to do then? Do I need to create it? Please reply ASAP. Thanks! :-)

    ReplyDelete
    Replies
    1. Yes, you should create new '.bash_profile' if there is no such file. In mac system, '.bash_profile' (or '.profile') may be hidden.

      Delete
  2. I am trying to install SU on my mac OS X 10.6.8. After following these instructions, at stage 6, I see none of these "install", "xtinstall" files to make. Any idea where things might have gone wrong?

    ReplyDelete
    Replies
    1. Copy 'Makefile.config_Darwin_i386' inside 'CWPROOT/src' folder. Rename 'Makefile.config_Darwin_i386' as 'Makefile.config'. Remove old one. Correct on line: ENDIANFLAG = -DCWP_LITLE_ENDIAN --- ENDIANFLAG = -DCWP_LITTLE_ENDIAN

      I'm not sure which install file you are saying.

      Delete
  3. The instruction says that I need to compile SU after modifying the make file using steps 6 and 7 but I do not have these files (install and xtinstall) to make. Are they hidden? Could this be because SU was not copied correctly?
    Thanks

    ReplyDelete
    Replies
    1. May be you should install 'command line tool'
      Open Xcode, go to preferences, Downloads ---- Install 'Command line tools', if not installed before

      Delete
  4. I install su install on os 10.8.4:the make install is ok; but when make xtinstall there are some error:X11/Xlib.h: No such file or directory(I use the Makefile.config_Darwin_i386 and change the "ENDIANFLAG = -DCWP_LITTLE_ENDIAN").what should I do next?

    ReplyDelete