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
1answer
53 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
77 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
19 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
130 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 ...
1
vote
3answers
157 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
0answers
12 views

Installing fftw2.1.5 for GADGET2 code

I’m new to Ubuntu and am trying to get the GADGET2 SPH simulation code to simulate a galaxy merging as per this tutorial. My question is, where is the nearest location to username@~/Documents: In ...
0
votes
1answer
275 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
357 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
472 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
314 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
226 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
0answers
36 views

Compiler F77 on Ubuntu [duplicate]

I have to install the F77 compiler on Ubuntu 18.04 but I do not know if I have already a fortran compiler. How I can get this information? Thanks
0
votes
1answer
91 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 ...
4
votes
1answer
1k 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 ...
0
votes
0answers
259 views

Segmentation fault core dump in Fortran executable file ubuntu

I am running executable fortran file on Ubuntu but after few seconds, execution terminates with error segmentation fault core dumped. This file works in my colleague PC but not on mine . I don't have ...
1
vote
1answer
645 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
447 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
309 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
0
votes
0answers
294 views

fort77 isn't working

I let my system run an upgrade last night (yes I know I probably shouldn't have) and this morning all my Fortran programs compiled with fort77 won't work. I seem to be able to compile programs (output ...
5
votes
1answer
13k 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
93 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
67 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
3k 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
744 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
21k views

How can I use Fortran compiler? [closed]

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

install gfortran [duplicate]

I have a problem. I want to install gfortran but when I do sudo apt-get install gfortran in my terminal, it tells me: Err http://fr.archive.ubuntu.com/ubuntu/ saucy-updates/main libgfortran-4.8-dev ...
1
vote
1answer
6k 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
756 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
801 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
1k 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/...
0
votes
1answer
920 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 ...
0
votes
1answer
3k views

Export: command not found

I have just upgraded my ubuntu. After booting ubuntu 14.04 LTS I get this message: /etc/profile :line 33 Export command not found. This relates to the FORTRAN compiler. Can anyone help me? I attach ...
1
vote
0answers
3k views

Undefined references to `_gfortran_runtime_error_at'

I use a model is written Fortran90 under Ubuntu 14.04. The gfortran 95 compiler (gfortran 4:4.8.2-1ubuntu6) and the gcc 4:4.8.2-1ubuntu6 is installed by Ubuntu Software Center. The installed gcc has ...
0
votes
1answer
268 views

I am trying to compile WRF, while checking System Environment Tests am getting error as shown below

I have Created a new, clean directory called Build_WRF, and another one called TESTS (placed Fortran and C Tests Tar File inside TESTS). SUCESSFULLY completed 3 TEST. In the 4th TEST -- Fortran ...
2
votes
2answers
347 views

Install program with different run name

I recently installed gfortran with apt-get install gfortran, but it turned out to be the latest version 4.9, which is not compatible with software that demanded gfortran in the first place. So I ...
0
votes
1answer
325 views

compile a fortran code in an other server

I am a beginner in Linux. I have a Fortran code that I can run it in my own server,but when the same package is copied to an other server,it is not work. in my server i type this in terminal program: ...
3
votes
1answer
1k views

gfortran compiler 4.4 in Ubuntu 14.04

We have an old program from 1970 that is verified to work with gfortran-4.4. Is there any way to make it work with Ubuntu 14.04 recommended gfortran 4.8? Are there any major differences and what flags ...
0
votes
2answers
50 views

Migrating program files and projects from windows7 to Ubuntu

Is it possible to import program files projects (C/C++ and fortran) files application software already saved or installed from windows7 system and its desktop to Ubuntu 14.04 without any damage?
1
vote
1answer
2k views

How to get gfortran to work with i386? I have “undefined reference” errors. How to get a compatible libf2c?

I have Ubuntu 14.04 on a 64-bit machine. I would like to run gfortran -m32 for my f77 fortran code that also uses i386 CERN libraries. I downloaded Ubuntu packages cernlib, lib32gfortran-4.8-dev, and ...
1
vote
1answer
14k views

ubuntu /usr/bin/ld: cannot find -lgcc_s

I am compiling a fortran program by using g77 on Ubuntu 14.04, I got the following error: ubuntu /usr/bin/ld: cannot find -lgcc_s Didn't you ever have experience with such problem?
0
votes
1answer
2k views

collect2 error while compiling fortran code

I have installed necdf-4 successfully. I am getting collect2: error: ld returned 1 exit status error when I compile a fortran code that writes netcdf files. I use gfortran compiler. I am sure the ...
0
votes
3answers
2k views

How to increase cpu usage [closed]

For my Thesis I want to write fortran program. I have a K53-Sm ASUS laptop with core i7 and 8Gig ram. When I run my program my CPU usage is 13%. How can I increase my CPU usage to 100% on Ubuntu 13.04 ...
1
vote
1answer
101 views

Is there a way to install a package available in Ubuntu Karmic on Ubuntu Precise Pangolin?

I want to install gfortran-4.4.1 on Ubuntu 12.04 (Precise Pangolin). But the only versions available in repositories are 4.4.7, 4.5 and 4.6. However gfortran-4.4.1 can be easily installed via apt-get ...