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

learn more… | top users | synonyms

0
votes
1answer
9k views

gfortran in ubuntu 12.10

I hope my message will get read soon and somebody will give me a solution. I use fortran to do simulation and gfortran is the compiler I use. Recently I migrated from Ubuntu 10.10 to 12.10. After ...
0
votes
0answers
9 views

Fortran file execution error: Wrong ELF class: ELFCLASS64

I was trying run whplot.out an executed Fortran file, but I am getting this error: ./whplot.out: error while loading shared libraries: libpgplot.so.5: wrong ELF class: ELFCLASS64 Kindly tell me ...
0
votes
1answer
30 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
4answers
56k 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 ./...
0
votes
1answer
251 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
78 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
32 views

Install intel fortran from dmg file

I'm trying to install Intel Fortran on my Ubuntu (14.04) I downloaded the (students) m_fcompxe_2016.2.049.dmg file and mounted it, but in the installation description it says I have to go to Packages ...
0
votes
0answers
22 views

ifort for ubuntu

I would like to use intel fortran (ifort) on my ubuntu 14.04, I installed Intel® Parallel Studio XE Cluster Edition for Linux* but ifort is still not available. Is there somethinge else I need to ...
21
votes
4answers
117k views

Bash: ./filename : Cannot execute binary file

I couldn't execute a fortran compiled code in ubuntu 11.10 32 bit. Error message is bash: ./filename : Cannot execute binary file. I've installed the gcc and gfortran libraries too. Could anyone ...
0
votes
0answers
31 views

error with compiling a fortran code

Sorry for disturbance, but I am facing errors in compiling a Fortran code. the following lines describes the traces resulting from the command gfortran crop1.f the version I have is GNU Fortran (...
0
votes
0answers
13 views

Error in installing EXPO crystllography software

I tried to compile EXPO from tar ball on Lubuntu, the ./configure command worked fine. However make install shows errors gfortran -O2 -cpp -fno-second-underscore -c -o expo-counts.otest -f 'counts....
0
votes
0answers
31 views

Appropriate Fortran flags to compile on Ubuntu?

I am trying to compile a program written in Fortran with the instruction to: "set Fortran compiler flags for your system" in the Makefile. If it might help, here is a snippit of the Makefile: #------...
0
votes
0answers
20 views

netCDF: error ./configure: There is no file or directory

I'm trying to install the ntcdf package to run in Fortran, a ubuntu 14.01 environment. However when I install the "netcdf-c" I get an error when I run "./configure". @ Necromancer necromancer-...
0
votes
0answers
41 views

Problem with WRF installation

I am trying to install WRF package,I have already installed all libraries, but when I run the Library tests I get errors. In first test : $ gfortran -I/Build_WRF/LIBRARIES/netcdf/include -c ...
0
votes
0answers
73 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
80 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
120 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?
0
votes
0answers
22 views

I can't compile with lfc

I installed the Lahey Fortran compiler in my ubuntu 14.10 and i tried to compile some source code, but i got this error : /usr/bin/ld: cannot find -lelf ben-mhamed@benmhamed:~$ ls -l $(type -p lfc) -...
0
votes
0answers
17 views

Fortran without indents?

I'm little confused - I want to learn how to Fortran and I use wiki tutorial: https://en.wikibooks.org/wiki/Fortran/Hello_world . Here we got a mention, that 'Fixed format source code needs 6 spaces ...
0
votes
0answers
37 views

f77 undefined reference to getgid_

I'm trying to compile a program that came with a Makefile. The makefile uses f77 and it seems that the programs call several f95 intrinsics. When I try to compile I get: plotkit.a(userid.o): In ...
3
votes
3answers
4k 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 ...
0
votes
1answer
117 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 ...
0
votes
0answers
98 views

error while compiling mpi application

I am trying to run a fortran code that supposed to be running on a different machine using mpif90 linked with ifort compiler. When I type in the command: mpif90 -g -O3 -pg main.f I get errors as the ...
1
vote
1answer
55 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
0answers
88 views

compilation problem using ifort in geany

I've changed my build/compile commands on Geany to use Intel's Fortran: ifort -c "%f" ifort "%f" -o "%e" When I try compiling, I get the following error: ifort "file.f90" -o "file" (in directory: ....
2
votes
1answer
7k views

how to install g95 in ubuntu 12.04

I need the detail information about how to install g95 in ubuntu 12.04 step by step. I have followed the g95 manual but it still did not work.
5
votes
1answer
7k 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
1k 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
549 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 ...
1
vote
1answer
9k views

How to determine which version of gfortran is installed?

I have the gfortran, but I have been told that gfortran versions 4.2 and older lacked some f90 functionality. How do I determine which version is already installed? Also, can I install the latest ...
0
votes
1answer
2k 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
679 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 ...
2
votes
2answers
186 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
117 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: ...
0
votes
1answer
401 views

gfortran compiler 4.4 and 4.8 [closed]

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 ...
1
vote
1answer
10k 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?
3
votes
1answer
9k views

Really need g77 on Ubuntu 12.04, can't install

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
2answers
46 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
1k 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 ...
0
votes
1answer
897 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 ...
-3
votes
3answers
862 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 ...
14
votes
2answers
54k views

How do I install a Fortran 77 compiler?

I have just installed 12.04 LTS on my laptop and I'm kinda new in this. I am required to write some program in Fortran 77 and I need a Fortran 77 compiler. I have tried installing g77 as described in ...
1
vote
2answers
2k views

What is the best Fortran 77 IDE?

I use Ubuntu 12.04. I need to do some coding with Fortran 77. I have'nt found any IDE for Fortran 77. What is the solution?
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 ...
4
votes
1answer
4k views

How do I install g77?

I am using Ubuntu 12.04 LTS (32bit-i386) in my desktop PC. I need g77 compiler for some specific applications. The app can only be installed after having g77 compiler. This specific app is designed ...
0
votes
1answer
2k 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 ...
0
votes
2answers
2k views

Undefined reference when using gfortran to compile fortran 77 code

I have an old fortran 77 code, which compiles well on Sun workstation. However, there are errors when I try to compile it using gfortran on Ubuntu (64 bits): $ gfortran -Wall -g -Jobj/Debug/ -...
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 ...
2
votes
1answer
2k 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?
3
votes
0answers
32 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 ...