Tag Archives: fortran

Ubuntu 20.04 installing gfortran-6/ libgfortran.so .3

When I try to run the do command under GAMIT on Ubuntu 20.04, it shows:

root@DESKTOP-LF0EAC9:/etc/apt# doy
doy: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory

among libgfortran.so . 3 depending on gfortran-6, try to install gfortran-6:

root@DESKTOP:/etc/apt# apt install gfortran-6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gfortran-6

The problem here is that Ubuntu 20.04 does not support G + ± 6. Add the following source to/etc/apt/ sources.list For the method of adding source, see the link

deb http://gb.archive.ubuntu.com/ubuntu/ bionic main universe

function

sudo apt-get update

Install GCC + + – 6

apt-get install g++-6

Setting the default version of GCC

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 6

Install gfortran-6

 apt install gfortran-6

Install successfully, run doy

root@DESKTOP-LF0EAC9:/etc/apt# doy 2020 001
Date 2020/01/01  0:00 hrs, DOY   1 JD  2458849.5000 MJD  58849.0000
GPS Week  2086 Day of week  3, GPS Seconds 259200 Day of Week Wed
Decimal Year 2020.000000000 GRACE Seconds 631108800.0

Run successfully

Detailed steps for installing Visual Studio 2010 + Intel parallel studio Xe 2013 and configuring mpich2

Pre-installation Instructions
Before installation, it is necessary to determine whether your VS and IVF version matches, as shown in the figure below. Also, the MPICH version is very important, this article USES the 32-bit, if the installation of 64-bit cannot be configured, it will be mentioned later.

Install Visual Studio 2010

    download Visual studio 2010 unzip and double-click setup.exe “Next” until finished, select exit;

Install Intel Parallel Studio XE 2013

    close VS(otherwise cannot load ivf template) unzip w_fcompxe_novsshell_2013.2.149.zip double-click the installation file, open it, select license configuration, and select lic under the installation file; When it comes to Options, look at the Installation Summary list for instructions added to VS, which is the part with the red coil. If so, it means that after IVF you will be able to use Fortran in VS.
    starts the installation to check whether the FORTRAN module has been successfully added, as shown in the figure below

Install and configure MPICH2

    double-click and install mpich2-1.4.1p1-win-ia32.msi(the installation file provided in the network disk linked in this paper requires mpich of version 32, and the hosts of “Get setting” of the 64-bit version cannot be changed to green when wmpiconfig. Exe is used); After installation, strictly follow the configuration file (win7_vS2010_mpich2.pdf) given;