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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-22-2002, 10:20 AM
|
#1
|
LQ Newbie
Registered: Jan 2002
Posts: 24
Rep:
|
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.
|
|
|
02-22-2002, 12:20 PM
|
#2
|
Member
Registered: Mar 2001
Location: FL
Posts: 257
Rep:
|
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
|
|
|
02-22-2002, 02:07 PM
|
#3
|
LQ Newbie
Registered: Jan 2002
Posts: 24
Original Poster
Rep:
|
Yeah. It is there. What should I do to install it?.
Thanks.
|
|
|
02-22-2002, 02:20 PM
|
#4
|
Member
Registered: Mar 2001
Location: FL
Posts: 257
Rep:
|
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.
|
|
|
02-22-2002, 03:48 PM
|
#5
|
LQ Newbie
Registered: Jan 2002
Posts: 24
Original Poster
Rep:
|
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.
|
|
|
02-22-2002, 03:56 PM
|
#6
|
Member
Registered: Mar 2001
Location: FL
Posts: 257
Rep:
|
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?
|
|
|
02-22-2002, 06:27 PM
|
#7
|
LQ Newbie
Registered: Jan 2002
Posts: 24
Original Poster
Rep:
|
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.
|
|
|
02-22-2002, 06:55 PM
|
#8
|
Member
Registered: Mar 2001
Location: FL
Posts: 257
Rep:
|
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.
|
|
|
02-26-2002, 11:32 AM
|
#9
|
LQ Newbie
Registered: Jan 2002
Posts: 24
Original Poster
Rep:
|
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.
|
|
|
02-26-2002, 02:00 PM
|
#10
|
Member
Registered: Mar 2001
Location: FL
Posts: 257
Rep:
|
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
|
|
|
02-27-2002, 05:39 PM
|
#11
|
LQ Newbie
Registered: Jan 2002
Posts: 24
Original Poster
Rep:
|
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.
|
|
|
07-18-2003, 01:55 AM
|
#12
|
LQ Newbie
Registered: Jun 2003
Distribution: RH
Posts: 8
Rep:
|
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
|
|
|
07-18-2003, 04:39 AM
|
#13
|
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358
Rep:
|
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.
|
|
|
07-18-2003, 09:26 PM
|
#14
|
LQ Newbie
Registered: Jun 2003
Distribution: RH
Posts: 8
Rep:
|
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....
|
|
|
07-19-2003, 04:34 AM
|
#15
|
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|