Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fortran]

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

0
votes
0answers
40 views

How do I view a Fortran program in Bash?

I have built the program from this paper and this link. Once I make the program, I am unable to see the run order of the files. Do any of you know how to view the run order of the parent program ...
1
vote
1answer
48 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.
1
vote
0answers
86 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 ...
0
votes
0answers
38 views

Unrecognized command line option with gfortran in BRAMS installation

I'm a new Ubuntu user. I'm trying to install BRAMS 5.3 with the instructions of the following link, but using the sudo make command for the BRAMS installation displays the following message: make[1]: ...
1
vote
2answers
74 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
70 views

Type mismatch in argument 'file_id' at (1); passed INTEGER(4) to INTEGER(8)

I am compiling the Fortran code in HPC server. I have loaded the following modules : PrgEnv-gnu/6.0.4, cray-mpich/7.6.0, cray-fftw/3.3.6.3, gcc/7.2.0, cray-hdf5/1.10.0.3 before compiling the code. ...
0
votes
0answers
71 views

H5PL.c:(.text+0x749): undefined reference to `dlsym'

I am compiling a code in Fortran. The “make” command gives me the following error: /home/TMA_CFDLab/174100022/software/hdf5-1.8.20/hdf5/lib//libhdf5.a(H5PL.o): In function H5PL_term_interface': H5PL....
0
votes
0answers
75 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 ...
1
vote
0answers
339 views

How can I check the FFTW library was correctly installed? [closed]

I downloaded fftw-3.3.7.tar.gz and extracted the files. After that I successfully ran: ./configure CC=gcc make sudo make install Now I want to compile and run a simple "Hello World" program written ...
2
votes
1answer
5k 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
42 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
94 views

Should I worry about conflicting versions of libgfortran?

I'm writing a fortran program, which uses netCDF. I have libnetcdff-dev (version 4.4.3-1) installed from aptitude (running xubuntu 16.04). To compile my program, I use gfortran 7.2.0 from ppa:ubuntu-...
0
votes
0answers
56 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
1k 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
49 views

problem in installing gfortran

While installing gfortran, a new window pop up and asks the path of directory where matlab is installed. When I tried to install Matlab using sudo apt-get install matlab, it says: Package matlab is ...
0
votes
0answers
485 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
10k 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
3k 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
219 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
30 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
4k 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
531 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
791 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
546 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
579 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
949 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
8k 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
3k 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
883 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
2k 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
225 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
334 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
227 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 ...
-2
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
89 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 ...
0
votes
1answer
2k views

Cannot execute just compiled binary file

And once again, typical question: "cannot run executable file". I Installed Virtual Box ver: 4.2.16 and on that Ubuntu. I compiled several fotran codes with command (maybe it should be noted that I ...
3
votes
1answer
11k views

Really need g77 on Ubuntu 12.04, can't install [duplicate]

I am running an extensive code that I requires g77 to compile. (yes I could probably debug for gfortran but it took me months just to get it working so I really really don't want to). I have tried ...
0
votes
1answer
3k views

Permission denied error when compiling fortran code in Netbeans 7.3.1 on ubuntu linux 12.04.2

So I read through a bunch of posting about similar issues, but none of them seemed to fix this problem. I am running netbeans 7.3.1 on ubuntu 12.04.2 x64. I wrote some fortran code and saved it to an ...
2
votes
2answers
3k views

installing g95 on ubuntu 12.04

I'm having trouble installing it. I have followed the steps on the link below but when I try to run g95 on terminal it says it doesn't exist. how to install g95 in ubuntu 12.04 this is what it looks ...
4
votes
4answers
131k views

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

I am trying to install Intel Fortran Composer 2011. When I try to command ./install.sh it gives an error: bash: ./install.sh: Permission denied I tried some ways to get pass this. Tried; sudo ./...
8
votes
4answers
13k views

Cannot find -lgfortran

I'm trying to install a package in R (package "ks"). It fails with error message: /usr/bin/ld: cannot find -lgfortran I've already installed the Ubuntu package build-essential: sudo apt-get install ...
3
votes
1answer
3k views

Fortran Syntax in Geany

I use Geany 1.22 in Ubuntu 12.04, but it isn't highlighting Fortran syntax. What is the solution?
4
votes
0answers
81 views

GNU Fortran 95 compiler GUI? [duplicate]

I am new to Ubuntu & Linux. I installed GNU Fortran 95 compiler.I use Ubuntu 12.04 LTS I want to run a code in fortran 90. Where do I go to run the code? Is there a GUI for that? I cant find ...