Tuesday 9 September 2014

Seismic Unix Installation in Ubuntu

Download the installation file from CWP websiteclick here to download.

After downloading the file, extract the file, you will get a folder called "src"

Now, Make a Directory, where you want to install Seismic Unix...in my case, i am creating "cwp" directory in home directory:
mkdir cwp
Now move the "src" folder in "cwp" directory:  copy "src" and paste it in "cwp".
mv src /cwp/              if src is in your home directory
Go to src/cwp directory:
cd cwp/src
Then type the following command one by one in terminal: Make sure you are in "src" directory.
echo "export CWPROOT=~/cwp" >> ~/.bashrc
echo "export PATH=$PATH:~/cwp/bin" >> ~/.bashrc
source ~/.bashrc
make install 
sudo apt-get install libx11-dev
sudo apt-get install libxt-dev
make xtinstall  
 Now Seismic Unix is installed in your system if you don't get any error up to now. To check it, run this:
suplane | suximage title="My first test" &
 For any query, please, write a comment..........thank you!

53 comments:

  1. Thank you. It installed successfully. Please how do I create a shortcut to this terminal on the desktop. Thanks.

    ReplyDelete
    Replies
    1. Seismic Unix(SU) is a terminal base program, we can't create Desktop shortcut.

      To use SU, Using terminal, go to the directory,where you kept your seismic data file,then use SU command according to your objective.

      Delete
    2. After installation completed, I could not test it. I received suplane: command not found
      suximage: command not found.
      please what do you advice?

      Delete
    3. That means your installation didn't complete successfully. Do the installation again from beginig, take screen shot after every command you run and mail me..

      Delete
    4. Hi, i have the same problem.. and i try it many times... did you solve it yet?

      Delete
    5. send me the screen shot after you ran the each command...very soon i will edit my post and will add screen shot too..:)

      Delete
  2. Thanks for the reply. It works now. Please do I need to install additional libraries to this?

    ReplyDelete
  3. Showing error after $ source ~/.bashrc

    on interning $ make install

    showing
    /home/arabind/cwp/src/Makefile.config: No such file or directory
    make: *** No rule to make target `/home/arabind/cwp/src/Makefile.config'. Stop.

    on ls Makefile.config is showing the src directory


    ReplyDelete
    Replies
    1. can you send me the screen shot of all the step you did?

      Delete
  4. What should I do if I have an older SU version already install? Many thanks.

    ReplyDelete
    Replies
    1. you can install new version without removing the old version. why keep old version, if you have installed new version?

      Delete
  5. Very interesting article. I make reference to my blog

    ReplyDelete
  6. Hello Ranjeet, Nice to see you on this blog...i am also facing problem.

    ReplyDelete
  7. hi, I'm Gianfranco and I've problems with SU installation.
    some commands answer error and I don't understand what means.

    ReplyDelete
    Replies
    1. Can you be more specific about command? which command gives error?

      Delete
    2. This comment has been removed by the author.

      Delete
  8. Hi Ranjeet,

    Thanks for you have already post this step.
    But I have problem when install this program, I hope you can help me for solved it.

    bash: export: '/home/seismik/cwp/bin': not valid identifier

    ReplyDelete
    Replies
    1. After which command, you are getting error?

      Delete
  9. Hi Ranjeet,

    i get an error while installing 'make mglinstal' on SU, whats wrong with it?

    collect2: error: ld returned 1 exit status
    Makefile:21: recipe for target '/home/EULER/seismicunix/bin/trip' failed
    make[3]: *** [/home/EULER/seismicunix/bin/trip] Error 1
    make[3]: Leaving directory '/home/EULER/seismicunix/src/Mesa/main'
    Makefile:26: recipe for target 'remake' failed
    make[2]: *** [remake] Error 2
    make[2]: Leaving directory '/home/EULER/seismicunix/src/Mesa/main'
    Makefile:11: recipe for target 'remake' failed
    make[1]: *** [remake] Error 2
    make[1]: Leaving directory '/home/EULER/seismicunix/src/Mesa'
    Makefile:152: recipe for target 'mglremake' failed
    make: *** [mglremake] Error 2

    ReplyDelete
    Replies
    1. Do the followings:
      1. sudo apt-get install freeglut3-dev
      2. make mglinstall

      Delete
    2. i am using cygwin, there is no command sudo. are there the other solutins?

      Delete
  10. hi Ranjeet,
    this code's work on mac os?

    ReplyDelete
    Replies
    1. yes, you try, if any error comes, tell me.

      Delete
  11. This tutorial is awesome. I think that I got the right stuff. But, instead of running "suplane | suximage" anywhere, I had to go to the bin folder and run "./suplane | ./suximage".

    ReplyDelete
  12. What must be the output of "suplane | suximage". I don't know if the image is right.

    ReplyDelete
  13. thanks for the info! If i woulf like to install others installers like "make finstall", etc etc, what should i have to do?

    ReplyDelete
    Replies
    1. You can do that in two steps:
      1. First, install a Fortran compiler:
      sudo apt-get install gfortran
      2. Now,run this: make finstall

      If you get any error, write here.

      Delete
  14. Ranjeet
    I got this
    make install

    By answering you agree to abide by the terms and conditions of
    the above LEGAL STATEMENT ?[y/n]y
    touch: cannot touch 'LICENSE_43R1_ACCEPTED': Permission denied
    Makefile:66: recipe for target 'LICENSE_43R1_ACCEPTED' failed
    make: *** [LICENSE_43R1_ACCEPTED] Error 1

    How to solve this? I f I go with sudo that does not solve the problem.

    ReplyDelete
  15. Ranjeet
    I got this
    make install

    By answering you agree to abide by the terms and conditions of
    the above LEGAL STATEMENT ?[y/n]y
    touch: cannot touch 'LICENSE_43R1_ACCEPTED': Permission denied
    Makefile:66: recipe for target 'LICENSE_43R1_ACCEPTED' failed
    make: *** [LICENSE_43R1_ACCEPTED] Error 1

    How to solve this? I f I go with sudo that does not solve the problem.

    ReplyDelete
  16. Ranjeet
    I got this with make install
    By answering you agree to abide by the terms and conditions of
    the above LEGAL STATEMENT ?[y/n]y
    touch: cannot touch 'LICENSE_43R1_ACCEPTED': Permission denied
    Makefile:66: recipe for target 'LICENSE_43R1_ACCEPTED' failed
    make: *** [LICENSE_43R1_ACCEPTED] Error 1

    Why?Going with sudo does not solve the problem.

    ReplyDelete
  17. when after installing i am writing this
    sudo apt-get install libx11-dev

    sudo apt-get install libxt-dev

    make xtinstall
    then i am getting error - E: Syntax error /etc/apt/apt.conf:4: Extra junk at end of file

    ReplyDelete
    Replies
    1. problem is due to proxy error. follow this:
      https://ubuntu4questions.wordpress.com/2015/01/09/how-to-solve-extra-junk-at-end-of-file-when-using-apt/

      Delete
  18. This comment has been removed by the author.

    ReplyDelete
  19. Installed Successfully Thank you Sir
    It wouldn't be possible without you help.

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete
  21. Thanks for providing this informative information you may also refer.
    http://www.s4techno.com/blog/2016/07/11/aix-user-administration-2/

    ReplyDelete
  22. thank you for the installation guide....
    SU works fine :D

    ReplyDelete
  23. excellent apport is simple and accurate thank you!

    ReplyDelete
  24. mmmmmmm@mmmmmmm-PC ~
    $ suplane | suxwigb &
    -bash: suplane: command not found
    [1] 400

    ReplyDelete
    Replies
    1. Please, export installation path to bashrc file or try again all the installation steps from the beginning.

      Run the followings:
      echo "export CWPROOT=~/cwp" >> ~/.bashrc
      echo "export PATH=$PATH:~/cwp/bin" >> ~/.bashrc
      source ~/.bashrc

      Delete
  25. Hello Ranjeet. Thanks for this useful blog.

    I am pretty new at Ubuntu and I am having troubles installing SU. How can I edit the SU configuration file to my system needs? I keep getting this error:

    brian@Brian-PC:/home/cwp/src$ make install
    Makefile:32: /home/brian/cwp/src/Makefile.config: No such file or directory
    make: *** No rule to make target '/home/brian/cwp/src/Makefile.config'. Stop.

    I have seen some post stating we have to edit the 'Makefile.config' file but I am not sure how to do it. I will be greatly thankful if you could help me with this.

    Thanks in advance!

    ReplyDelete
  26. Hello Ranjeet. Thanks for this useful blog.
    i inistaled correctly. and i wanted practice, to run it . plz help me how to run and practice with it. example ? or test ?
    how is it work ? :(

    ReplyDelete
  27. Hello sir,
    I would like to thanks for this blog.Because this blog is helpful to su installation process. Now I need a one help from you, am the new user in su software so I don't know how to create a geometry setting for seismic data. So, please help me how to create seismic data geometry setting program and give some example program.

    ReplyDelete
  28. I'm not sure if you still active in this blog, but I just wanna to say thank you, so THANK YOU! I couldn't find something that works for me, untill I used your steps, thank you so much

    ReplyDelete
  29. "make xtinstall" doesn't run to my Ubuntu 20.04.3 LTS. Than what to do next?

    ReplyDelete
  30. Hello Ranjeet,

    I have a problem with the instalation. After I make install, thats the result:

    /usr/include/features.h:194:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
    194 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
    | ^~~~~~~
    In file included from fgettr.c:90:
    /home/laboratorio3/cwp/include/su_xdr.h:10:10: fatal error: rpc/types.h: No such file or directory
    10 | #include
    | ^~~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [/home/laboratorio3/cwp/src/Rules/suffix.rules:4: /home/laboratorio3/cwp/lib/libsu.a(fgettr.o)] Error 1
    make[2]: Leaving directory '/home/laboratorio3/cwp/src/su/lib'
    make[1]: *** [Makefile:7: INSTALL] Error 2
    make[1]: Leaving directory '/home/laboratorio3/cwp/src/su'
    make: *** [Makefile:92: sustuff] Error 2


    What can I do?

    Best Regards


    ReplyDelete