LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-22-2002, 10:20 AM   #1
bob10a
LQ Newbie
 
Registered: Jan 2002
Posts: 24

Rep: Reputation: 15
Fortran Compiler


Hello,
I am looking for a free fortran compilerfor my linux (RH7.2). Could you please send me some guideline about how to install it.

Thanks in advance.
 
Old 02-22-2002, 12:20 PM   #2
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
Redhat comes with fortran compilers. Type "f77" to use it. If you didn't install it upon installation search for the rpm on the disk (disk #2 probably).

Jon
 
Old 02-22-2002, 02:07 PM   #3
bob10a
LQ Newbie
 
Registered: Jan 2002
Posts: 24

Original Poster
Rep: Reputation: 15
Yeah. It is there. What should I do to install it?.

Thanks.
 
Old 02-22-2002, 02:20 PM   #4
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
If it's on the cd then just change directory to the rpm folder on the cdrom and then type "rpm -i filename.rpm" filename.rpm is the name of the f77 file.

Hope this helps. let me know.
 
Old 02-22-2002, 03:48 PM   #5
bob10a
LQ Newbie
 
Registered: Jan 2002
Posts: 24

Original Poster
Rep: Reputation: 15
I tried that but it is asking to install other files. I did that but some files taht i nedd are missing, so it did not work.
 
Old 02-22-2002, 03:56 PM   #6
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
what files did it ask you to install? After you installed these files did you re-install the f77 rpm file? What errors are you getting when you try to execute f77 after you installed everything it asked for?
 
Old 02-22-2002, 06:27 PM   #7
bob10a
LQ Newbie
 
Registered: Jan 2002
Posts: 24

Original Poster
Rep: Reputation: 15
Hello,

This time I accessed the cd through the "explorer utility". Running the autorun it allows me to see the packages and everything (that's cool). I checked the files I was trying to install and they are just support for c++. I could not find f77 or g77 compiler at all. So I am back to the first post.//Thanks for your help.
 
Old 02-22-2002, 06:55 PM   #8
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
ok. go here to download the required files:

ftp://ftp.ilog.fr/pub/Mirrors/gcc/gcc-3.0.4/

to unpack the files and install do the following:
1. For tar.gz files type:
"gzip -d filename.tar.gz" then
"tar -xvf filename.tar"
2. Then type:
"./configure" then,
"make" then,
"make install" <-as root

This should do it. Knowing tar files; however, you will probably get some sort of install problem. Report any and we'll see if we can work it out.
 
Old 02-26-2002, 11:32 AM   #9
bob10a
LQ Newbie
 
Registered: Jan 2002
Posts: 24

Original Poster
Rep: Reputation: 15
Hello,

What I did was the following (as a root:
i) download gcc-g77-3.04.tar.gz
ii) uncompressed the files and then untar
iii) doing this i got a directory structure like this
gcc-3.0.4
/ \
gcc libf2c
| |
f files (here is configure file)
|
files
I tried the ./configure in the respective directory and it tells me it can not find install-sh or install.sh in ../..
I tried to look for install.sh and I did not find it.

I have one question?. Do I have to put this files in a particular location?. How can I solve the installation problem.

Thanks in advance.
 
Old 02-26-2002, 02:00 PM   #10
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
What you'll probably have to do is download the full gcc package (18mb). It has the install scripts in it. I don't know why g77 doesn't have the scripts.

gcc-3.0.4.tar.gz

see if that works.

Jon
 
Old 02-27-2002, 05:39 PM   #11
bob10a
LQ Newbie
 
Registered: Jan 2002
Posts: 24

Original Poster
Rep: Reputation: 15
Jon,

I downloaded the respective file, uncompressed and untar. The main directory is gcc-3.0.4

First questions: where should I put this directory (/usr/ or /home/ or where?).

i) I went into /gcc-3.0.4/gcc/ and run configure. This is what I got:

loading cache ./config.cache
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

ii) Then I went to /gcc-3.0.4/ and run configure here, this was what i got:

[root@localhost gcc-3.0.4]# ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /root/gcc-3.0.4 using "mt-frag"
./configure: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

I just one fortran. I appreciate if you could walk me through.
 
Old 07-18-2003, 01:55 AM   #12
buddy_epson
LQ Newbie
 
Registered: Jun 2003
Distribution: RH
Posts: 8

Rep: Reputation: 0
fortran compilers other than f77?

I'm interested in a free fortran compiler for linux other than f77. It seems that (running redhat9) f77 under linux has serious precision errors. The same code compiled under my SunOS/Unix f77 compiler does not have these problems. Anybody know of any free/cheap fortran compilers for linux that are "good" ? I've heard that the Portland Group's fortran compiler is awesome, but it's 500$ !!

Bud
 
Old 07-18-2003, 04:39 AM   #13
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
I would sugest you go with the intel fortran 90 compiler. It's not open source, but for non-comercial perposes it's free of charge.
A gnu f90 compiler is on it's way, though the last time I checked it was still in it's infancy stage. So it will be a while before you can expect an gnu fortran 90/95 compiler.
 
Old 07-18-2003, 09:26 PM   #14
buddy_epson
LQ Newbie
 
Registered: Jun 2003
Distribution: RH
Posts: 8

Rep: Reputation: 0
Intel fortran 90 compiler eh? I think part of my problem is that the code I'm running has some old standards in it which aren't handled correctly by the newer compilers. I didn't write the code, and I'm not proficient in fortran 77 to rewrite it. I wonder if these newer compilers (which are likely optimized to run fortran 90 standard) will have the same problems that my linux f77 has...
Also, I've looked at the intel fortran compiler (just d/l'ed a demo) and it's 700$ if you want it to work for longer than 30 days....
 
Old 07-19-2003, 04:34 AM   #15
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
Quote:
Also, I've looked at the intel fortran compiler (just d/l'ed a demo) and it's 700$ if you want it to work for longer than 30 days....
that's not true. Go to there site again and look closer. I know because I recently got the compiler from them my self. Go to :

http://www.intel.com/software/products/global/eval.htm

and click on "non-commercial unsuported version" in the fortran compiler for linux section.
I think fortran 77 code will compile fine with the new compilers. If it doesn't, you can uninstall it and install g77 instead.
You can get g77 at :

http://linux.tucows.com/preview/8001.html

Last edited by qanopus; 07-19-2003 at 04:47 AM.
 
  


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
suse 10.0 x86-64 fortran compiler pkuer SUSE / openSUSE 2 11-16-2005 09:30 AM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM
Intel Fortran Compiler under KDevelop Ralph Kahel Linux - Software 1 07-21-2005 02:57 PM
fortran compiler and guide? spacetrooper Programming 4 03-23-2005 06:48 PM
Fortran Compiler in SuSE? Krater47 Linux - Software 4 09-09-2004 12:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:15 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