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
-1 votes
0 answers
83 views

Call CUDA C function from Fortran: which Fortran compiler, libraries and compiler options do I have to use?

I want to call a CUDA C function in a separate file from a Fortran program from 2003. I want to use the nvcc command for compilation of the .cu file. Which compiler do I have to use, GNU Fortran or ...
John L.'s user avatar
  • 59
0 votes
0 answers
2k views

How to install libgfortran.so.4 on Xubuntu 22.04 LTS?

Calculix Crunchix FEA program does not run due to a missing library. the excutable was downloaded at http://www.dhondt.de/. Note that it was running on Xubuntu 20.04 LTS. The error is: ccx_2.20: error ...
Fabrice's user avatar
2 votes
1 answer
208 views

Fortran compilation error

Dear Experts I am trying to use fortran on ubuntu 22. I am getting compilation error yasir@yasir-X270:~/Downloads/bremge_orig$ gfortran bremge.F brebldt.F -L ./cern/2005/lib -lkernlib -lmathlib -o ...
Yasir Ali's user avatar
1 vote
1 answer
302 views

Why is the installed libquadmath0 a 32 bit elf?

I am trying to compile a Fortran program using gfortran. However, upon compilation, I get the following output: rpower@kaladin:~/Downloads/testfort$ gfortran program.f90 -o program /usr/bin/ld: ...
Rolfe Power's user avatar
0 votes
1 answer
1k views

Problem with MPI on ubuntu 22.04

I'm not sure what happened, I think MPI was working well when I first installed ubuntu 22.04. Then I saw I could install also ifortran (not sure if this has affected something), and also mkl. However, ...
Dedalo's user avatar
  • 13
0 votes
0 answers
2k views

error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory

I obtain an error: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory My OS: $ lsb_release -a No LSB modules are available. Distributor ...
Elena Greg's user avatar
3 votes
1 answer
883 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/...
akh22's user avatar
  • 191
0 votes
1 answer
1k 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 ...
DKS's user avatar
  • 103
2 votes
2 answers
966 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 ...
theWrongAlice's user avatar
0 votes
1 answer
951 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 ...
Utku Kaftancioglu's user avatar
0 votes
0 answers
2k 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 ...
Gippo's user avatar
  • 1
2 votes
1 answer
246 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 ...
MaximeMaurice's user avatar
0 votes
0 answers
248 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 ...
www's user avatar
  • 101
1 vote
0 answers
1k 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 ...
AlphaF20's user avatar
  • 111
1 vote
1 answer
1k views

Install old version of Gfortran on Ubuntu 20.04

How to install Gfortran 4.5 on Ubuntu 20.04?
sachin rawat's user avatar
1 vote
0 answers
58 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 ...
Alexei Zhidkov's user avatar
0 votes
1 answer
907 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 ...
Debajyoti's user avatar
  • 930
0 votes
2 answers
4k 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 ...
Steradiant's user avatar
0 votes
0 answers
783 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 ...
Iván Navarrete Jara's user avatar
0 votes
1 answer
221 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 ...
Kratos_GoS's user avatar
1 vote
1 answer
825 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. ...
Adrian Barbuio's user avatar
1 vote
1 answer
82 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 ...
Ria Dunn's user avatar
0 votes
2 answers
2k 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 ...
Maxx Schanback's user avatar
1 vote
2 answers
4k 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 ...
Ninja's user avatar
  • 11
0 votes
1 answer
1k 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 -...
skirthy's user avatar
  • 11
0 votes
1 answer
254 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 ...
user157588's user avatar
1 vote
1 answer
37 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 ...
coffee_pls's user avatar
2 votes
1 answer
4k 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-...
Tejas Shetty's user avatar
3 votes
3 answers
24k 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?
Tejas Shetty's user avatar
0 votes
1 answer
3k 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 ...
Jogabell's user avatar
2 votes
1 answer
3k 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 ...
Ken's user avatar
  • 23
1 vote
1 answer
3k 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. ...
Dedalo's user avatar
  • 13
0 votes
0 answers
1k 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 ...
Py-ser's user avatar
  • 697
0 votes
0 answers
2k 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/...
Py-ser's user avatar
  • 697
0 votes
1 answer
275 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 ...
Shaimaa Mostafa's user avatar
5 votes
1 answer
7k 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 ...
Shaimaa Mostafa's user avatar
1 vote
1 answer
1k 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.
SANDIPAN DAWN's user avatar
2 votes
0 answers
834 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 ...
Kristian Torres's 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
Ahmet Oğuz's user avatar
5 votes
1 answer
19k 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-...
Googlebot's user avatar
  • 1,787
0 votes
0 answers
206 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 ...
govind jha's user avatar
0 votes
0 answers
82 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
8k 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. ...
DWK's user avatar
  • 21
0 votes
0 answers
1k 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 ...
Cauchy's user avatar
  • 111
2 votes
1 answer
33k views

How can I use Fortran compiler? [closed]

I'm new to Ubuntu and don't know anything about using the command line.
user343875's user avatar
2 votes
1 answer
7k 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 ...
Ebrahim's user avatar
  • 21
1 vote
0 answers
469 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 ...
Rafael Perez-Torro's 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 ...
USI9080's 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 ...
Laio Marinheiro's user avatar
1 vote
1 answer
5k 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 ...
Padawan's user avatar
  • 167