LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-08-2010, 01:08 AM   #1
dipica
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Rep: Reputation: 0
compiling a fortron code


hi...

please giv eme the command to compile n execute a fortron program on a linux machine
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-08-2010, 01:11 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Huh?

man -k fortran
 
Old 04-08-2010, 02:27 AM   #3
dipica
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
what?????
 
Old 04-08-2010, 03:15 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,619

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
http://www.linuxquestions.org/linux/rules.html
SMS language, chatspeak : not appreciated.
http://www.linuxquestions.org/linux/...Ask_a_Question

As told by @ Tinkster, the first command is 'man -k fortran'
And then e.g.: 'man gfortran'

Also please use Google , keyword = .. compile fortran ..
http://www.google.com/search?hl=en&s...=&oq=&gs_rfai=
To read about using fortran compilers.
.....
 
Old 04-08-2010, 03:57 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
If the topic is how to compile fortran code in the Linux environment, the question could be rephrased as "What free fortran compilers are available for Linux?". Answer given by knudfl: gfortran (GNU fortran) is available in almost all linux distributions nowadays. Other chances: g95, ifort (Intel Fortran). The latter requires a license which is free only for personal use.

If the topic is how to compile fortran code in general, I strongly suggest to read a good fortran manual, since fortran programming is not something you can improvise. One of the first topics in all guides is "how to compile and run a simple piece of code".

Quote:
Originally Posted by dipica View Post
what?????
Sorry but this is rude! Tinkster provided a useful advice: look at the manual pages related to fortran on your system (at least to discover what fortran compilers you have at hand). It looks like you have not so much experience in Linux to understand what the "man" command is. Ok, no problem. But please, put some words together in a question if you wish more chances to receive a valuable help.
 
3 members found this post helpful.
Old 04-08-2010, 06:01 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
How about something like:
Code:
gfortran foo.f
./a.out
Evo2.
 
Old 04-08-2010, 06:25 AM   #7
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 553

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by dipica View Post
hi...

please giv eme the command to compile n execute a fortron program on a linux machine
If you don't know how to compile and execute fortran sourcecode then it might be worth asking yourself "Should I be trying to do this?".
If you have some code and just need to run it, then do you actually know what the code is doing and how? I would imagine not, else you wouldn't be asking questions like this. It's not a good idea to just compile any old code and run it!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Noob Compiling C/C++ code richard64 Ubuntu 5 11-13-2009 06:07 AM
help compiling this C++ code hedpe Programming 2 11-30-2006 11:45 PM
compiling C code vose Programming 29 10-08-2004 07:28 AM
Compiling C code with libraries OldGuru Programming 4 09-18-2004 07:06 PM
compiling code ripmaster Linux - Software 2 03-06-2004 09:07 PM


All times are GMT -5. The time now is 01:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration