LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2009, 02:24 AM   #1
saray
LQ Newbie
 
Registered: May 2009
Posts: 17

Rep: Reputation: 0
fortran programming in linux


Hi,

I have open suse 11.0 installed and I am abit new to working with linux. But my main job is to statrt programming with fortran in linux and I have no idea about it.

I'd be grateful to know how to start.

Regards,
 
Old 08-03-2009, 02:34 AM   #2
Johnnie J
Member
 
Registered: Mar 2008
Posts: 54

Rep: Reputation: 16
More specifically, what do need to do? Do you need a compiler? Google - linux fortran - many links.
 
Old 08-03-2009, 02:41 AM   #3
vasmakk
Member
 
Registered: Jan 2009
Distribution: Debian Lenny, Ubuntu 9.04
Posts: 87

Rep: Reputation: 16
Quote:
Originally Posted by saray View Post
Hi,

I have open suse 11.0 installed and I am abit new to working with linux. But my main job is to statrt programming with fortran in linux and I have no idea about it.

I'd be grateful to know how to start.

Regards,
Hi saray!

gfortran is the GNU Fortran compiler you are looking for ...
In Debian based systems, you can Installed it by using
#apt-get install gfortran
I'm not sure about openSUSE but I think you can use APT with this distro also, and this command may work.
In case the above command doesn't work, use the YaST installation environment. The one used by openSUSE to install software... See more in YaST documentation.

After you have Installed gfortran you can write a Fortran program using your favourite Text Editor, and compile it with gfortran

Regards!
Vas

Last edited by vasmakk; 08-03-2009 at 02:43 AM.
 
Old 08-03-2009, 02:58 AM   #4
saray
LQ Newbie
 
Registered: May 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the very useful reply on gfortran. I have it installed and I have compiled some codes with it.

Another question related to the first one is that, the commands of fortran programming are just the same as what we have in windows?
 
Old 08-03-2009, 04:24 AM   #5
allez
Member
 
Registered: Jul 2008
Location: Russia/Siberia/Krasnoyarsk
Distribution: SuSE, CentOS, FreeBSD
Posts: 77

Rep: Reputation: 21
Quote:
Originally Posted by saray View Post
Another question related to the first one is that, the commands of fortran programming are just the same as what we have in windows?
Yes. Fortran's syntax depends only on specific Fortran standard, not operating system.

Last edited by allez; 08-03-2009 at 04:25 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
g77 in gcc 4.1.0 not found only gfortran fortran 95 compiler! I need fortran 77. TheBrick Linux - Software 3 07-04-2007 06:39 AM
One fortran programming problems. ArthurHuang Programming 1 03-26-2006 09:56 PM
Gnu Fortran versus Intel Fortran tomatoefish Linux - Software 3 02-20-2006 01:31 PM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration