FORTRAN Compiler


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FORTRAN Compiler
# 8  
Old 02-27-2014
As a user not root, I often had to build from source, as the packagers did not allow relocation under my home dir or even execution not by root. The script 'configure' has options to suport this.
This User Gave Thanks to DGPickett For This Post:
# 9  
Old 02-27-2014
Quote:
Originally Posted by DGPickett
As a user not root, I often had to build from source, as the packagers did not allow relocation under my home dir or even execution not by root. The script 'configure' has options to suport this.
Doing so generally requires a compiler...
This User Gave Thanks to Corona688 For This Post:
# 10  
Old 02-27-2014
Hi.

I use 3 Fortran compilers:
Code:
gfortran GNU Fortran (Debian 4.3.2-1.1) 4.3.2
ifort (IFORT) 11.1 20090827
G95 (GCC 4.0.3 (g95 0.92!) Jun 24 2009)

on
Code:
OS, ker|rel, machine: Linux, 2.6.26-2-amd64, x86_64
Distribution        : Debian 5.0.8 (lenny, workstation)

I installed all as binary. The first is the usual gfortran; I have not tried to install that in other than the system. I usually install the GNU compilers on most systems that I use. The second is the Intel Fortran compiler; this must be licensed, but a personal, non-commercial license has been available. The third has been a very good, free compiler. I installed ifort and g95 as binary, and NOT in the system, although it required a few soft links to get them running as though they were on the system. I generally do not install software into the system, unless it is through the package managers. The latter two above were installed in an area controllable by me (/opt), so I think installing somplaceinto one's home directory structure could be done.

I don't recall using the "outside" compilers with large libraries, like IMSL or NAG, and my guess is that you might need to compile such items with the appropriate compiler, but I don't know for certain.

If I had to suggest a starting place in your situation, I'd say look at g95.

You might be able to get some additional ideas at The Fortran Company | For Fortran Enthusiasts by Fortran Enthusiasts

Good luck ... cheers, drl

Intel

The G95 Project
# 11  
Old 02-28-2014
Doing a source build requires a C or C++ compiler, depending on the Fortran distribution you chooose. Porting g++ requires a C compiler. Most UNIX systems have one.

Some binary distributions are in more flexible tar form, and do not need root, just unppack them in a subdir of your home dir.

There is a fortran to JAVA, and JAVA apps can be run even without windows local admin (but JAVA language install has to be done by admin empowered user).
This User Gave Thanks to DGPickett For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

FORTRAN p-norm

What would be an accurate and efficient computation of the p-norm in Fortran? Integer :: p Real :: sum, pn Do i = 1, Size (a) sum = sum + ((Abs a(i)) ** p) End Do pn = sum ** (1.0/ Real(p)) (0 Replies)
Discussion started by: kristinu
0 Replies

2. Linux

Fortran Compiler cannot create executables

Hello everyone, I am trying to re-install quantum espresso-4.3 on the University's LINUX interface (because of a recent crash and I lost most of my files). when I " ./configure ", It is giving an error stating that : checking building system type... x86_64-unknown-linux-gnu checking... (7 Replies)
Discussion started by: Physicslad78
7 Replies

3. UNIX for Dummies Questions & Answers

cc compiler and gcc compiler

hi, can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also can we install sun cc compiler in AIX environment and vice versa. and more ..is linux support cc compiler regards Ajay (3 Replies)
Discussion started by: ajaysahoo
3 Replies

4. Programming

Fortran 77 and gfortran

Hi! I have a program in fortran77. This program was compiled with pgf90, but now, I need compiled it with gfortran. I show a bit of code. program hello PARAMETER(a=100) integer a write(*,*)'value ', a end program hello What's the problem? Thanks (2 Replies)
Discussion started by: kekaes
2 Replies

5. Programming

learning fortran

Can anyone recommend a very good Fortran online course for unix. It should also cover Fortran X11 programming if possible. I understand this learning cannot be rushed but a course that addresses useful topics sooner is best. If it isn't free, that's okay. (1 Reply)
Discussion started by: gav2251
1 Replies

6. Programming

How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?

To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first? The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies

7. UNIX for Dummies Questions & Answers

xl C/C++ compiler to GCC compiler

Hi, we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier). As a part of this i need to change the CFLAGS. The xl c/c++ complier CFLAGS is CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \ -qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies

8. Linux

Fortran 90 compiler

Hi everybody: Could anybody help me where could I download Fortran 90 complier? Thanks in advance. :) (2 Replies)
Discussion started by: tonet
2 Replies
Login or Register to Ask a Question