As of the date of this web page, February 17, 2024, there are no
inherent difficulties in compiling and running the Computer
Programs in Seismology codes. However as Linux migrates to using
the Wayland graphics compositor, I had some concern about X11
support. However. I was able to get everything running on Fedora
which uses XWayland.
The instructions below show how to install the compilers and
useful software to be able to compile Computer Programs in
Seismology and to have a functioning system for research.
Of the distributions below, the author uses Linux Mint, and thus
the instructions are current. I have tested the distributions
below by installing them using VirtualBox/
In order to improved the experience of installing Computer
Programs in Seismology (CPS), installation was performed on these
latest LINUX versions on February 16, 2024.
Mint 21.3 |
Ubuntu 23.10 |
Fedora 39-1.5 |
Necessary for compilation:sudo apt-get insall libx11-devOptional for a functional research platform: These permit viewing PostScript and converting PostScript images from CPS to PNG for incorporation into web pages and presentations sudo apt-get install gvFor research one may desire GMT sudo apt-get install gmt The synaptic packae manager was installed. |
sudo apt-get install libx11-dev sudo apt-get install gv sudo apt-get install gmt (this loads gmt-gshhg-high geography. You may wish to install the synaptic pckage manager for greater control on selections sudo apt-get install synaptic |
sudo yum update sudo yum install gv sudo yum install GMT (this loads gshhg-gmt-nc4 geography. |
Compile
|
||
sudo apt-get install make sudo apt-get install gcc sudo apt-get install gfortran sudo apt-get install xorg-dev sudo apt-get install libncurses5-dev sudo apt-get install gawk
The following programs are useful:
sudo apt-get install gv sudo apt-get install ImageMagick
ImageMagick is useful tool for converting Encapsulated
PostScript to other graphics files. This is useful when creating
documents using Microsoft Work or LibreOffice and presentations
using MS PowerPoint or LibreOffice Impress. As software is further
developed, there are often slight differences that must be
accounted for to be useful.
First beware of ImageMagick 7.1.1-8. See the discussion given in
the section on MacOS.
Also note that there may be permission problems in creating PNG
files from EPS files using ImageMagick. To be able do this,follow
these instructions:
As superuser, edit /etc/ImageMagick-6/policy.xml e.g., sudo vi /etc/ImageMagick-6/policy.xml or sudo xed /etc/ImageMagick-6/policy.xml Change the lines <policy domain="coder" rights="none" pattern="PS" /> <policy domain="coder" rights="none" pattern="EPS" /> <policy domain="coder" rights="none" pattern="PDF" /> <policy domain="coder" rights="none" pattern="XPS" /> to this: <policy domain="coder" rights="read|write" pattern="PS" /> <policy domain="coder" rights="read|write" pattern="EPS" /> <policy domain="coder" rights="read|write" pattern="PDF" /> <policy domain="coder" rights="read|write" pattern="XPS" />