sudoc:su_installation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sudoc:su_installation [2019/07/29 23:46] – [Setting your CWPROOT path] seisunix | sudoc:su_installation [2023/03/23 22:05] (current) – [Installing SU on specific platforms] seisunix | ||
---|---|---|---|
Line 2: | Line 2: | ||
- | Remember that the U in SU stands for " | + | Remember that the U in SU stands for " |
- | In more recent releases of Microsoft Windows, there is a "bash shell" environment available, which is a version of Ubuntu Linux. An older solution to the Windows versus Unix question is a system called Cygwin, which comes in 32 bit and 64 bit systems. Finally, users may configure their windows as dual-boot platforms. | + | In more recent releases of Microsoft Windows, there is a "bash shell" environment available, which is a version of Ubuntu Linux. An older solution to the Windows versus Unix question is a system called Cygwin, which comes in 32 bit and 64 bit systems. For Microsoft Windows installations, |
- | Everything that follows is on the "Unix command line". To do anything further requires that you | + | More recently in Ubuntu 20.04 and later, the Linux environment for Window is called the Windows Linux Subsystem (WSL) and is an effective environment for installing Linux operating systems. Yet another tool is the Hyper-V virtual machine environment. |
- | open your systems " | + | |
+ | Everything that follows | ||
+ | open your systems " | ||
===== Preliminaries ===== | ===== Preliminaries ===== | ||
Line 40: | Line 42: | ||
You can download the latest release of SU [[https:// | You can download the latest release of SU [[https:// | ||
- | Move the current distribution that has a name like | + | Move the current distribution that has a name like |
Please move the tar archive to the directory you have created. In my example, regular user " | Please move the tar archive to the directory you have created. In my example, regular user " | ||
Line 61: | Line 63: | ||
$ echo $SHELL | $ echo $SHELL | ||
- | Note that the first dollar sign merely represents the command line prompt, which may be different on your system. The object | + | Note that the first dollar sign merely represents the command line prompt, which may be different on your system. The object |
- | === Shell environment: | + | === Shell environment: |
The most common shell environment these days is /bin/bash and the configuration files in your home directory are .bash and .bash_profle | The most common shell environment these days is /bin/bash and the configuration files in your home directory are .bash and .bash_profle | ||
Line 95: | Line 97: | ||
- | === Shell environments: | + | === Shell environments: |
The configuration file for these environments is called | The configuration file for these environments is called | ||
- | the same, so add the same lines to the bottom of .profile | + | the same, so add the same lines to the bottom of .profile. . |
+ | Caveat: on most modern systems /bin/sh is merely a link to the /bin/bash shell, | ||
+ | so the configuration file will be .bashrc and .bash_rc. | ||
- | === Shell environments: | + | === Shell environment: |
+ | |||
+ | This is an important environment, | ||
+ | default shell for new installations. | ||
+ | |||
+ | The configuration file for these Z-shell | ||
+ | the same, so add the same lines to the bottom of .zshrc | ||
+ | |||
+ | |||
+ | |||
+ | === Shell environments: | ||
The C-Shell is a totally different environment. These are less commonly used environments, | The C-Shell is a totally different environment. These are less commonly used environments, | ||
Line 210: | Line 224: | ||
make sfinstall | make sfinstall | ||
+ | |||
+ | None of these is essential for running most of SU. | ||
+ | |||
+ | |||
+ | ==== Installing SU on specific platforms ==== | ||
+ | |||
+ | === Ubuntu 22.04 === | ||
+ | |||
+ | After you have installed Ubuntu 22.04, no matter what environment you are using for this, there are addition packages that must be installed. | ||
+ | |||
+ | $ sudo apt-get install xorg | ||
+ | |||
+ | $ sudo apt-get update | ||
+ | |||
+ | $ sudo apt-get install xorg | ||
+ | |||
+ | $ sudo apt-get install gcc | ||
+ | |||
+ | $ sudo apt-get install libx11-dev | ||
+ | |||
+ | $ sudo apt-get install libxt-dev | ||
+ | |||
+ | $ sudo apt-get install libxext-dev | ||
+ | |||
+ | $ sudo apt-get install make | ||
+ | |||
+ | $ sudo apt-get install libmotif-dev | ||
+ | |||
+ | $ sudo apt-get install libtirpc-dev | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | === Case study: Linux Mint notes contributed by a user, including comments on the sfinstall portion === | ||
+ | |||
+ | |||
+ | # setup base dir | ||
+ | sudo mkdir -p / | ||
+ | cd /opt/cwp | ||
+ | # Replace USER below with your username | ||
+ | sudo chown USER:USER 44R19 | ||
+ | |||
+ | # Add env vars to bashrc. | ||
+ | cat >> ~/.bashrc << eof | ||
+ | # Seismic Unix | ||
+ | export CWPROOT=/ | ||
+ | export PATH=$PATH:/ | ||
+ | eof | ||
+ | |||
+ | # Check CWPROOT is set. | ||
+ | |||
+ | . ~/.bashrc | ||
+ | |||
+ | cd $CWPROOT | ||
+ | |||
+ | # grab and unpack SU | ||
+ | |||
+ | cp ~/ | ||
+ | |||
+ | tar -xzvf cwp_su_all_44R19.tgz | ||
+ | |||
+ | # set the make config to Linux_x86_64. | ||
+ | |||
+ | cd src | ||
+ | |||
+ | cp configs/ | ||
+ | |||
+ | # Make the base seismic unix. | ||
+ | |||
+ | make install | ||
+ | |||
+ | # Install the required libraries for the X-toolkit windows. | ||
+ | |||
+ | sudo apt-get install libx11-dev libxt-dev | ||
+ | |||
+ | make xinstall | ||
+ | |||
+ | # Install the required libraries for the Fortran codes | ||
+ | |||
+ | sudo apt-get install gfortran | ||
+ | |||
+ | # add the string ' | ||
+ | |||
+ | make finstall | ||
+ | |||
+ | # Install Mesa/OpenGL items | ||
+ | |||
+ | sudo apt-get install libglu1-mesa-dev freeglut3-dev libxmu-dev libxmu-headers libxi-dev | ||
+ | |||
+ | make mglinstall | ||
+ | |||
+ | # Build Utils | ||
+ | make utils | ||
+ | |||
+ | # Install libraries and build motif based applications | ||
+ | sudo apt-get install aptibmotif-dev | ||
+ | make xminstall | ||
+ | |||
+ | |||
+ | # Edit code and build SFIO version of SEGDREAD | ||
+ | # remove lines 399 to 404 of src/ | ||
+ | printf("/ | ||
+ | printf("# | ||
+ | printf("# | ||
+ | printf(" | ||
+ | printf("# | ||
+ | |||
+ | |||
+ | # remove lines 5 to 10 of src/ | ||
+ | # | ||
+ | |||
+ | #if _typ___FILE /* Redhat7.3 requires __FILE in wchar.h */ | ||
+ | typedef struct _sfio_s | ||
+ | #endif | ||
+ | make sfinstall |
sudoc/su_installation.1564443977.txt.gz · Last modified: 2019/07/29 23:46 by seisunix