19 votes

Cannot find -lgfortran

What I did, I check on ubuntu if the versions of g++, gcc and gfortran are the same or not. I guess it is better if you have all the three of same version. # first check the versions: gcc --version g++...
Manoj Kumar's user avatar
11 votes
Accepted

How to Install fortran on Ubuntu?

For Fortran alone, you can use sudo apt-get install gfortran But even if it takes more space, it is useful to have sudo apt install build-essential This installs several other capabilities, ...
sancho.s ReinstateMonicaCellio's user avatar
7 votes

Bash: ./filename : Cannot execute binary file

For Googlers: 32-bit or 64-bit? Check withfile yourbinary Permission to execute? Do chmod +x yourbinary Path correct? Do ./yourbinary
dz902's user avatar
  • 171
5 votes
Accepted

How to install openmpi modules in Ubuntu 18.04?

The missing libraries are provided by the libblacs-mpi-dev package. The solution is to install the package, either via a GUI software manager or via the command line sudo apt install libblacs-mpi-...
steeldriver's user avatar
5 votes

How can I use Fortran compiler?

If you have the code below in the text file hello.f90 Program Hello Print *, "Hello World!" End Program Hello To compile the code, start the terminal and type: gfortran -o hello hello.f90 To run ...
Harris's user avatar
  • 2,598
4 votes

No include file for fortran library

You have to install necessary NetCDF development package for fortran by sudo apt-add-repository universe sudo apt-get install libnetcdff-dev and then retry building your application.
N0rbert's user avatar
  • 99.8k
3 votes

bash: ./install.sh: Permission denied installing intel fortran 2011

Right click on the something.sh file and click to properties Then click on permissions and change all access to "read and write" Then click on "allow executing file as program" (if not selected!) ...
SAGAR MAHAJAN's user avatar
3 votes
Accepted

Overcoming "undefined symbol: _gfortran_runtime_error_at" during R package, "glmnet" installation in WSL2 Focal

So I did modify FLIBS path in Makevars as suggested by steeldriver FLIBS=-L/usr/lib/gcc/x86_64-linux-gnu/9 -lgfortran -lm and glmnet installed without a hitch. Interestingly, it still uses clang++ ...
akh22's user avatar
  • 191
3 votes
Accepted

gfortran and g77

g77 is the original GNU Fortran compiler - it is now deprecated in favor of gfortran. For a discussion of some of the differences and their implications see Where has g77 gone to? g95 is The other ...
steeldriver's user avatar
2 votes

What is the best Fortran 77 IDE?

I use Ubuntu 14.04. I think that even gedit recognises syntax of fortran77. I do not know if it is best but I use Geany (available on ubuntu software centre). And then gfortran (probably default in ...
weatherman's user avatar
2 votes

Bash: ./filename : Cannot execute binary file

Another possible source of this error: trying to run a Linux binary executable on a Mac, or vice versa. For instance, trying to run the true binary from my Mac on an Ubuntu box that I SCPed it to: $ ...
Mark Amery's user avatar
2 votes

f77: Command not found Ubuntu 16

You can install the GNU Fortran compiler using: sudo apt-get install gfortran ..or install the f2c (Fortran to C) translator using: sudo apt-get install fort77 The best option is most probably to ...
Colin Ian King's user avatar
2 votes
Accepted

How can I install g77 on Ubuntu 19.04?

Package g77 is not available in any currently supported version of Ubuntu, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available ...
karel's user avatar
  • 115k
2 votes

How do I install the Fortran 9x compiler?

Install gfortran. From man gfortran -std=std Specify the standard to which the program is expected to conform, which may be one of f95, f2003, f2008, gnu, or legacy. The default ...
sudodus's user avatar
  • 46.3k
1 vote

Why is the installed libquadmath0 a 32 bit elf?

Well, I'm glad this is fixed, but feel kind of dumb. Terrance solve the problem. I reinstalled the library with sudo apt install --reinstall libquadmath0 And now, we successfully compile and it links ...
Rolfe Power's user avatar
1 vote
Accepted

Installing PGI Fortran on Ubuntu 20.04

You need to use NVHPC (https://developer.nvidia.com/nvidia-hpc-sdk-downloads), which is the next generation of compilers substituting the old PGI ones.
afernandezody's user avatar
1 vote

"Initializing oneAPI environment" upon opening terminal

Turns out the line below in .bashrc source /opt/intel/oneapi/setvars.sh initializes the oneAPI environment. When I deleted this command line, the problem solved and oneAPI continue to operate ...
Utku Kaftancioglu's user avatar
1 vote

How to Install fortran on Ubuntu?

First, update the deb repositories using sudo apt-get update sudo apt-get upgrade Then type sudo apt-get install gfortran This will install everything needed for programming in FORTRAN.
Tejas Shetty's user avatar
1 vote

Intel Fortran compiler

The Intel Fortran Compiler is available on 30 day trial as a part of their Parallel Studio XE at https://software.intel.com/en-us/fortran-compilers/choose-download. Students and teachers can qualify ...
K7AAY's user avatar
  • 17.2k
1 vote

Installing gfortran and mpich for a new Ubuntu user

If you install Ubuntu 16.04, it should be this simple to install mpich3.2 and gfortran 4.5 with GCC 5.3: Open a terminal Run the following command: sudo apt-get install gfortran mpich gcc-5
Tobias's user avatar
  • 1,608
1 vote

`libgfortran.so.3: cannot open shared object file: No such file or directory` but the file is present

I was able to correct the problem with First locate matlab's libgfortran file, for me it was in <YOUR MATLAB PATH>/MATLAB/sys/os/glnxa64/libgfortran.so.3.0.0 make a link of this file in same ...
Yanarof Foranay's user avatar
1 vote

`libgfortran.so.3: cannot open shared object file: No such file or directory` but the file is present

I am facing the exact problem that you're facing and I was able to overcome the problem by just copying a preexisting install of libfortran3. The link is "https://www.dropbox.com/s/...
Ramakrishna93's user avatar
1 vote
Accepted

Cannot install open-coarrays-bin for gfortran on ubuntu 20.04

Normal native method of installation is possible by using different package names: sudo apt-get install libcaf-openmpi-3 libcaf-mpich-3 The mentioned open-coarrays-bin package is available only for ...
N0rbert's user avatar
  • 99.8k
1 vote

Problem in installing library from github

The command make FC=gfortran all builds the libraries in a local lib/ directory: $ ls lib/ libslatec.a libslatec-dbvp.a libslatec-sbvp.a libslatec.so libslatec.so.4 libslatec.so.4.1.1 If you ...
steeldriver's user avatar
1 vote

Repurposing unused desktop as server for data processing

As a server, yes - easily. Simply install Ubuntu Server, set up your router's port forwarding (if needed), install your SSH keys, and get familiar with controlling the machine via ssh. Advice: ALWAYS ...
user535733's user avatar
  • 62.1k
1 vote
Accepted

mpif.h not found error [install openmpi]

To include a C-style header file in a Fortran program, you need to use a C-style pre-processor directive #include <mpif.h> rather than a native Fortran include statement, and then tell ...
steeldriver's user avatar
1 vote

How to Install fortran on Ubuntu?

This is not a direct answer to your question. However, for small test programs and exercises, you can also use one of the many online Fortran compilers. I specifically like the online gfortran ...
Scientist's user avatar
  • 111
1 vote

Need the gnu g77 Fortran compiler on Ubuntu 16.04 - Having issues

I've written a blog post about installing g77 on Ubuntu >=14.04. But the main details are: Add the Ubuntu 8.04 repo's. Do this by editing the sources.list: sudo -H gedit /etc/apt/sources.list Then ...
Sean Elvidge's user avatar
1 vote

How do I install a Fortran 77 compiler?

You may also try f77, from Intel. There is a free license if you are a student, an educator of an open source contributor (there are also other profiles that fit Intel's requirements for free software ...
rvbarreto's user avatar
  • 389

Only top scored, non community-wiki answers of a minimum length are eligible