Questions tagged [fortran]

Questions about the old programming language fortran and using such things as fortran compilers on Ubuntu.

Filter by
Sorted by
Tagged with
3 votes
1 answer
227 views

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

I've been trying to install a R package, glmnet and having a installation issue. Here is an error output after I fired install.packages("glmnet") ; /usr/bin/clang++ -std=gnu++14 -shared -L/...
user avatar
  • 191
0 votes
1 answer
117 views

Installing PGI Fortran on Ubuntu 20.04

I need to install PGI Fortran on Ubuntu 20.04. The online PGI documentation to do that seems outdated and I am also having a hard time following it as I am new to Ubuntu. Please see if it can still be ...
user avatar
  • 103
2 votes
2 answers
224 views

configure: error: Could not link to netcdf C library (SURFEX installation fail)

I want to install and run SURFEX on Ubuntu 18.04, so I'm following the steps explained here. when I run the make command in the src directory (compiling the master version of the code), after a while ...
user avatar
0 votes
1 answer
263 views

"Initializing oneAPI environment" upon opening terminal

I'm using Ubuntu 20.04. After I have installed oneAPI Base Toolkit and HPC toolkit, every time I open the terminal this oneAPI environment initialization massage appears. :: initializing oneAPI ...
user avatar
0 votes
0 answers
852 views

Not enough slots available in the system with OpenMPI

I am launching a code using openmpi, that I have compiled simply doing mpif90 bin.f90 -llapack -lblas -o bin.x If I do mpirun -np 4 bin.x I get "There are not enough slots available in the ...
user avatar
  • 1
2 votes
1 answer
203 views

No include file for fortran library

I need to build a Fortran program that uses (among others) the library netcdf, which I downloaded using apt-get (my computer is on Ubuntu 20.04). Installing the library worked, the share object files ...
user avatar
0 votes
0 answers
96 views

How to determine the c preprocessor flag for the CPPFLAGS?

I received a sets of Fortran code from my collaborator. In the makefile, there is a line as follows. CPPFLAGS = $(DEF_FLAGS) -DINTEL Because when I used the make command in my terminal to compile the ...
user avatar
  • 101
1 vote
0 answers
476 views

libblas.so, may conflict with libgfortran.so.5

I use Ubuntu inside Windows 10. I have a gfortran 4.8.5 and installed gfortran 9 by sudo apt-get install gfortran-9 followed https://fortran-lang.org/learn/os_setup/install_gfortran When I type ...
user avatar
  • 111
1 vote
1 answer
637 views

Install old version of Gfortran on Ubuntu 20.04

How to install Gfortran 4.5 on Ubuntu 20.04?
user avatar
1 vote
0 answers
47 views

MPIRUN thread detection failed after upgrade

I have used MPI Fortran with UBUNTU for a long time. My DELL PC has 8 nodes and 16 threads. mpirun worked with -n 16 well and gave good results. However after an upgrade (?) it stopped doing this. Now ...
user avatar
0 votes
1 answer
519 views

How to run a Fortran Executable file, which generally runs in Ubuntu Terminal, within a Python-3 script?

I have a Fortran Executable file named chuck in the folder /home/debajyoti/chuckDir/. The program chuck do is like, it takes an input file inputfile.txt and an output file outputfile.txt and ...
user avatar
  • 890
0 votes
2 answers
2k views

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

I want to evaluate the PARDISO (https://www.pardiso-project.org/) solver. I use MATLAB 2020b on Ubuntu 20.04 LTS for testing it. When I download the corresponding files and want to run a test, I get ...
user avatar
0 votes
0 answers
600 views

Error installing libgfortran3 on Ubuntu 20.04

I'm working on a project where I have to compile the code from another author. He uses very old packages so I'm traying to recreate the enviroment on conda, but I cannot find any good repo for Ubuntu ...
user avatar
0 votes
1 answer
122 views

makedepf90: program for automatic creation of Makefile-style dependency lists for Fortran source code

I assumed it is only a couple of seconds installing this program, but it confuses me honestly. this program is for the automatic creation of Makefile-style dependency lists for Fortran source code. I ...
user avatar
1 vote
1 answer
482 views

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

I have been trying to install opencoarrays from here, using the commands: sudo apt-get update -y sudo apt-get install -y open-coarrays-bin It seems that every other Ubuntu version, this works fine. ...
user avatar
1 vote
1 answer
66 views

How do I install ygraph for fortran?

So I have just started using Ubuntu and need to use fortran for a project I am working on. I’ve been told to install ygraph, but when I try to by using $ sudo apt-get update $ sudo apt-get install ...
user avatar
0 votes
2 answers
747 views

Problem with blas and lapack in makefile

I am running and dual boot with a USB of the latest Ubuntu version. I am trying to run code and compile a make file and need lapack and blas to compile it. I am having trouble getting the code to find ...
user avatar
1 vote
2 answers
2k views

How to install gfortran-4.6 or gcc-4.6 on ubuntu 20.04

I have recently upgraded my work computer to ubuntu 20.04 and I have code that specifically requires gfortran-4.6 to run. How can I install gfortran-4.6 either alongside the newest gfrotran or as ...
user avatar
  • 11
0 votes
1 answer
790 views

Why can't I run this executable file (.exe) in Octave?

I have a source code written in Fortran 90: sourcecode.f90 It needs Lapack libraries for compilation so, I compile the source code with this command: gfortran -o executable.exe sourcecode.f90 -...
user avatar
  • 11
0 votes
1 answer
200 views

Problem in installing library from github

Generally, while installing libraries like lapack, blas, I just run the makefile and then they get automatically installed. To link them with my gfortran compiler, gfortran -llapack or gfortran -lblas ...
user avatar
1 vote
1 answer
25 views

Repurposing unused desktop as server for data processing

I have two computers. One is a 2010 MacBook (the white polycarbonate one!). It's a very capable laptop, since I installed an SSD and upgraded the RAM. It does everything I need on a daily basis, but ...
user avatar
2 votes
1 answer
2k views

mpif.h not found error [install openmpi]

I was trying to install openpi on ubuntu. I have an Ubuntu 18.04.4 LTS (64 bit) desktop. I installed openmpi using sudo apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi2 libopenmpi-...
user avatar
2 votes
3 answers
11k views

How to Install fortran on Ubuntu? [duplicate]

So, I am just starting out to learn Fortran programming. I am a complete newcomer to programming. I have little experience with Ubuntu. What are the recommended ways to install Fortran on Ubuntu?
user avatar
0 votes
1 answer
2k views

Intel Fortran compiler

I want to install a second compiler for fortran in my Ubuntu 18.04 LTS distribution, but I do not have any idea. Currently I have gfortran compiler. What is the best way to install an Intel Fortran ...
user avatar
2 votes
1 answer
2k views

how to solve this error? (collect2: fatal error: cannot find 'ld')

I'm a beginner and I need your help. I use Ubuntu18.04 and want to install Orient package for molecular calculation. https://gitlab.com/anthonyjs/orient I get this error when compiling it with ...
user avatar
  • 23
1 vote
1 answer
2k views

Fortran error: Cannot allocate memory

I am having some trouble with a code I have parallelized. The code is written in Fortran90, and I parallelized it using mpi. I won't post the code because its more than 10 thousand lines long. ...
user avatar
  • 13
0 votes
0 answers
891 views

Error: Expected a right parenthesis in expression at (1) after `make` command

I am compiling a software following this tutorial (called PRESTO), but when I type ./configure, I receive the following message: $ make && sudo make install Making all in src make[1]: enter ...
user avatar
  • 280
0 votes
0 answers
890 views

configure: error: linking to Fortran libraries from C fails

I am following this tutorial to install the mentioned software (called PRESTO), but when I type ./configure, I receive the following message: checking how to get verbose linking output from /home/...
user avatar
  • 280
0 votes
1 answer
223 views

How can I share a PATH?

I used the following commands to install g77 compiler on Ubuntu 19.04: sudo gedit /etc/apt/sources.list Then to the bottom of that file I added: deb [trusted=yes] old-releases.ubuntu.com/ubuntu ...
user avatar
5 votes
1 answer
5k views

How can I install g77 on Ubuntu 19.04?

I just downloaded Ubuntu 19.04. I want to install a program that needs the g77 compiler to run. I followed the instructions explained in Install G77 on Ubuntu >=14.04, but when typing the command ...
user avatar
1 vote
1 answer
945 views

gfortran 7.4 upgradation in Ubuntu 18.04

I am using gfortran 7.3 in Ubuntu 18.04. Now one of the software codes (FLUKA-CERN) requires gfortran 7.4 to run. How to upgrade gfortran 7.4 or higher version 8.2 in Ubuntu 18.04.
user avatar
2 votes
0 answers
765 views

Is PGI compiler supported for Ubuntu 18.04.1 LTS?

I need to do some parallel computation with OpenACC on my GeForce GTX 1080Ti GPU. Currently, my program is being compiled in serial with GCC Fortran compiler (gfortran). I want to know if it is ...
user avatar
1 vote
2 answers
1k views

How do I install the Fortran 9x compiler? [duplicate]

I want to install a program called OSIRIS but, I need to get the Fortran 9x compiler. I was wondering how do I install it? I am using a Ubuntu 16
user avatar
5 votes
1 answer
18k views

How to install openmpi modules in Ubuntu 18.04?

Several modules of openmpi are missing in the repository of Ubuntu 18.04. I need to compile a program with fortran and ended up with the errors: /usr/bin/x86_64-linux-gnu-ld: cannot find -lblacs-...
user avatar
  • 1,447
0 votes
0 answers
198 views

System Environment Test

I am trying to compile WRF on Ubuntu 16,while checking system environment tests(Fortran and C Test),I have successfully did TEST #1. But when I tried to do TEST 2:I got following error: [gopi65@wise1 ...
user avatar
0 votes
0 answers
72 views

Which graphics packages to download using Ubuntu command line for FORTRAN simulations?

I've been told to convert some FORTRAN code to C or Python. I don't have previous experience with FORTRAN. So I understand the concept of the given code: subroutine photo(dp,dw,gc,dc,white,blue,...
user avatar
1 vote
1 answer
6k views

Install older version of gfortran

I am using Ubuntu 16.04.2 LTS and want to install gfortran version 5.3. When I use either of the inputs below gfortran 5.4 is installed, which is not compatible with the program I am trying to run. ...
user avatar
  • 21
0 votes
0 answers
975 views

Fortran: gfortran gives error "cannot execute binary file: Exec format error"

I am trying a simple command gfortran --version and I get this error: marcus@aurelius:~$ gfortran -v -bash: /usr/local/bin/gfortran: cannot execute binary file: Exec format error I seem to get the ...
user avatar
  • 111
2 votes
1 answer
31k views

How can I use Fortran compiler? [closed]

I'm new to Ubuntu and don't know anything about using the command line.
user avatar
2 votes
1 answer
6k views

f77: Command not found Ubuntu 16

I am using Ubuntu 16 to run an old code written in Fortran. I get this error when running the "make" command (I have a "makefile"): "f77: Command not found" I have tried installing others such as ...
user avatar
  • 21
1 vote
0 answers
439 views

Problems compiling with openmpi after upgrade to v 1.10

I have been using openmpi to develop fortran90 parallel applications for a while. I usually install the default version of openmpi for developers from the repositories and it works out of the box. I ...
user avatar
1 vote
1 answer
7k views

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

I'm looking for some instructions on how to get the gnu g77 Fortran compiler for the latest LTS version of Ubuntu. I have searched online and all I can find is basically various sites all suggesting ...
user avatar
  • 11
0 votes
1 answer
2k views

How do I kill a runing fortran code from inside a shell script that access the same code?

I have to use a FORTRAN code which has a "menu style" interface. I access the code typing a command on the terminal which opens the main menu. From that point and beyond I type a number and enter it ...
user avatar
1 vote
1 answer
4k views

gfortran and g77

I'm compiling WRF on my personal machine to play around, I've done it successfully on another computer of mine. Then I did a fresh install of Ubuntu Gnome 16.04. This time I want to know why I'm doing ...
user avatar
  • 157
0 votes
1 answer
2k views

Installing gfortran and mpich for a new Ubuntu user

I am a long-term Mac user who is considering switching to Ubuntu. I am not a system guru. I program in fortran and mpi for cfd applications on high-performance computers. I am considering ...
user avatar
-1 votes
1 answer
1k views

Fortran compiler .exe [closed]

I want to extract Fortran source code from an .exe file. How do I do this? For ex. I write a program and i just have a exe file of it this porgram calculate amount of velocity In other program i ...
user avatar
-2 votes
1 answer
2k views

gfortran: no input files

When I was trying to run gfortran in a terminal, I got the error below: $ gfortran gfortran: fatal error: no input files compilation terminated. Why is this happening? What am I doing wrong?
user avatar
  • 13
6 votes
1 answer
9k views

/usr/bin/ld: cannot find -lgfortran (matlab)

I try to use mex some toolbox using matlab. But I got these errors: /usr/bin/ld: cannot find -lgfortran I used Ubuntu 14.04. I installed gfortran. Could any one help ? this is the output of : ...
user avatar
  • 740
2 votes
2 answers
5k views

Run FORTRAN *.exe from Ubuntu terminal

I am trying to run a FORTRAN program in Ubuntu. Code has been compiled and the result is that I have the following 2 files: sfsptest2.exe yyVx6634XC.INP These files are located in: /home/user_test/...
user avatar
  • 723
0 votes
1 answer
941 views

g77 with Ubuntu 14.04 LTS

I am working with a government program that was written in Fortran 77, and requires g77 to configure and compile the source code. I understand that g77 has been phased out, and replaced with newer ...
user avatar