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
0
votes
0answers
39 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 ...
0
votes
0answers
180 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 ...
1
vote
1answer
281 views

Install old version of Gfortran on Ubuntu 20.04

How to install Gfortran 4.5 on Ubuntu 20.04?
1
vote
0answers
33 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 ...
0
votes
1answer
120 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 ...
0
votes
0answers
24 views

F77, F77_OPTIONS, INCLUDE_DIRS, LD_OPTIONS_NETCDF

I have just installed Ubuntu 18.04 LTS on my laptop and I'm new to this. I am required to run my Model which is called IBIS, so I have to install g77 or f77. I could not install these compilers. ...
0
votes
0answers
32 views

How can I determine F77_OPTIONS in fort77 in Ubuntu 18.04?

I have just installed Ubuntu 18.04 LTS on my laptop and I'm new to this. I am required to run my Model which is called IBIS, so I have to install g77 or f77. I could not install these compilers. ...
0
votes
2answers
750 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 ...
0
votes
0answers
45 views

Change gfortran version to version 4

due to compatibility reasons I want to change the gfortran version to version 4 or 5. I've installed libgfortran4 and libgfortran5 via apt-get install. I also have version 7-9 installed and defined ...
0
votes
0answers
444 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 ...
0
votes
1answer
54 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 ...
1
vote
1answer
243 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. ...
0
votes
0answers
29 views

Fortran Compiler, X64 Linux

I want to install a fortran compiler on Kubutu for X64 Linux. Is seems to be more complicated than simply downloading an executable binary and library files. Is there a simple way?
1
vote
1answer
51 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 ...
0
votes
0answers
722 views

Ifort (Intel Fortran Compiler) for Linux Installtion

I want to install Intel Fortran Compiler for linux on my Ubuntu 18.04. The default software package downloaded from official website includes many components and takes up 18.1G...Considering my pc has ...
0
votes
2answers
345 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 ...
0
votes
0answers
42 views

/usr/bin/ld: cannot find -lmat for matlab-fortran interface fintrf.h

I try to compile a matlab "fintrf.h" based fortran code with gfortran. Here is the compiling commands: gfortran -mcmodel=medium -Ofast $1.F90 -I/mnt/f/MATLAB/extern/include/ -L/mnt/f/MATLAB/...
1
vote
2answers
951 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 ...
0
votes
1answer
421 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 -...
0
votes
1answer
146 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 ...
1
vote
1answer
20 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 ...
1
vote
1answer
931 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-...
1
vote
3answers
4k 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?
0
votes
1answer
1k 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 ...
2
votes
1answer
1k 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 ...
1
vote
1answer
1k 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. ...
0
votes
0answers
607 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 ...
0
votes
0answers
555 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/...
0
votes
1answer
161 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 ...
5
votes
1answer
3k 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 ...
1
vote
1answer
835 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.
2
votes
0answers
631 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 ...
1
vote
2answers
692 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
5
votes
1answer
16k 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-...
0
votes
0answers
139 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 ...
0
votes
0answers
68 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,...
1
vote
1answer
5k 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. ...
0
votes
0answers
866 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 ...
1
vote
1answer
27k views

How can I use Fortran compiler? [closed]

I'm new to Ubuntu and don't know anything about using the command line.
2
votes
1answer
5k 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 ...
1
vote
0answers
412 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 ...
1
vote
1answer
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 ...
0
votes
1answer
1k 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 ...
1
vote
1answer
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 ...
0
votes
1answer
1k 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 ...
0
votes
0answers
823 views

Fortran/gfortran on pi

I try to install Fortran/gfortran on my pi and I say yes to it being installed, it then comes up with WARNING: The following packages cannot be authenticated: libgfortran-4.9.dev ...
-1
votes
1answer
938 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 ...
-2
votes
1answer
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?
5
votes
1answer
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 : ...
2
votes
2answers
4k 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/...