User Tools

Site Tools


sudoc:su_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sudoc:su_installation [2019/07/30 20:47] seisunixsudoc:su_installation [2023/03/23 22:05] (current) – [Installing SU on specific platforms] seisunix
Line 5: Line 5:
  
 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, you will need to also add an X-windows server.Finally, users may configure their windows as dual-boot platforms, enjoying either a completely linux or a completely Microsoft environment. 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, you will need to also add an X-windows server.Finally, users may configure their windows as dual-boot platforms, enjoying either a completely linux or a completely Microsoft environment.
 +
 +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.
  
 Everything that follows in this discussion is executed on the "Unix command line". To do anything further requires that you  Everything that follows in this discussion is executed on the "Unix command line". To do anything further requires that you 
Line 63: Line 65:
 Note that the first dollar sign merely represents the command line prompt, which may be different on your system. The object  $SHELL is read as "value of" the variable SHELL. Here SHELL is an environment variable, that has the value of /bin/sh, /bin/bash, /bin/ksh, /bin/zsh, /bin/csh, /bin/tcsh and it is customary to write environment variables all in capital letters. Note that the first dollar sign merely represents the command line prompt, which may be different on your system. The object  $SHELL is read as "value of" the variable SHELL. Here SHELL is an environment variable, that has the value of /bin/sh, /bin/bash, /bin/ksh, /bin/zsh, /bin/csh, /bin/tcsh and it is customary to write environment variables all in capital letters.
  
-=== Shell environment:  /bin/bash ===+=== Shell environment:  /bin/bash  (the Bourne Again Shell) ===
  
 The most common shell environment these days is /bin/bash and the configuration files in your home directory are .bash and .bash_profle  These files must be edited so that the environment variable CWPROOT and that $CWPROOT/bin are on the users' path. The most common shell environment these days is /bin/bash and the configuration files in your home directory are .bash and .bash_profle  These files must be edited so that the environment variable CWPROOT and that $CWPROOT/bin are on the users' path.
Line 95: Line 97:
  
  
-=== Shell environments: /bin/ksh  /bin/zsh /bin/sh ===+=== Shell environments: /bin/ksh (Korn Shell) and /bin/sh (Bourne Shell) ===
  
 The configuration file for these environments is called  .profile  however the syntax is  The configuration file for these environments is called  .profile  however the syntax is 
-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:  /bin/csh and /bin/tcsh ===+=== Shell environment: /bin/zsh  (Z-shell) === 
 + 
 +This is an important environment, because MacOSX Catalina and later releases make this the 
 +default shell for new installations. 
 + 
 +The configuration file for these Z-shell  is called  .zshrc  however the syntax is  
 +the same, so add the same lines to the bottom of    .zshrc 
 + 
 + 
 + 
 +=== Shell environments:  /bin/csh (C-shell) and /bin/tcsh (T-shell) ===
  
 The C-Shell is a totally different environment. These are less commonly used environments, today. The C-Shell is a totally different environment. These are less commonly used environments, today.
Line 212: Line 226:
  
 None of these is essential for running most of SU. 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 /opt/cwp/44R19
 +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=/opt/cwp/44R19
 +export PATH=$PATH:/opt/cwp/44R19
 +eof
 +
 +# Check CWPROOT is set.
 +
 +. ~/.bashrc
 +
 +cd $CWPROOT
 +
 +# grab and unpack SU
 +
 +cp ~/Downloads/cwp_su_all_44R19.tgz .
 +
 +tar -xzvf cwp_su_all_44R19.tgz
 +
 +# set the make config to Linux_x86_64.
 +
 +cd src
 +
 +cp configs/Makefile.config_Linux_x86_64 Makefile.config
 +
 +# 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 '-std=legacy' to the FFLAGS line of the Makefile.config (line 97 for me)
 +
 +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/Sfio/src/lib/sfio/Stdio_b/Sfstdio.c
 +        printf("/* Linux7.2 requires __FILE in wchar.h - we fake it here */\n");
 +        printf("#include        \"FEATURE/sfio\"\n");
 +        printf("#if _typ___FILE\n");
 +        printf("typedef FILE    *__FILE;\n");
 +        printf("#endif\n\n");
 +
 +
 +# remove lines 5 to 10 of  src/Sfio/src/lib/sfio/Stdio_s/stdio_s.h
 + #include        "FEATURE/sfio"
 +
 + #if _typ___FILE /* Redhat7.3 requires __FILE in wchar.h */
 + typedef struct _sfio_s  *__FILE;
 + #endif
 +make sfinstall
sudoc/su_installation.1564519647.txt.gz · Last modified: 2019/07/30 20:47 by seisunix