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 10-23-2012, 03:59 AM   #1
Ullysse
LQ Newbie
 
Registered: Oct 2012
Distribution: Scientific Linux 6.3 Carbon
Posts: 10

Rep: Reputation: Disabled
install an "old" gcc compiler with a newer version


Hello,

I need to install a gcc version which supports/has g77 : fortran 77 gnu compiler. I checked the latest available .rpm compatible (I assume: Red Hat Linux 9) with my distro (Cern Scientific Linux 6.3 carbon - derived from Red Hat Linux Entreprise 6 - server). That would be the:

gcc-g77-3.2.2-5.i386 "release"

(http://fr2.rpmfind.net/linux/rpm2htm...stem=red&arch=)


Specifics:
----------
hardware: Dell xps 15z
proc: Intel Core i7
precision: x86-64


Problems:
--------
1-gcc 4.4.6 is already installed and running (it supports gfortran only <<<)

2-Inevitable failure when trying to install the old gcc-g77: running into
dependencies:

quote:
gcc = 3.2.2-5 is needed by gcc-g77-3.2.2-5.i386
libf2c = 3.2.2-5 is needed by gcc-g77-3.2.2-5.i386


This means in concrete that I will have to install the gcc3.3.3-5 version
in the same house as gcc4.4.6 without conflicts.

My question: what would be the cleanest way to do so?
I understand I will probably have to install the new (older) stuff in another .dir, link to it ect..I do not have the sufficient background / knowledge to do so on the other hand.

Looking forward for suggestions.

Thanks
 
Old 10-23-2012, 05:50 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,315

Rep: Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576Reputation: 3576
You can have as many versions of gcc as you want, installed at the same time.
They all have unique file names / locations.

g77 : # yum provides */g77
# yum provides */f77

# yum install compat-gcc-34-g77
.... That's compat-gcc-34-g77-3.4.6-19.el6.i686.rpm
http://ftp.scientificlinux.org/linux...6/os/Packages/


.

Last edited by knudfl; 10-23-2012 at 05:56 AM.
 
1 members found this post helpful.
Old 10-24-2012, 01:15 AM   #3
Ullysse
LQ Newbie
 
Registered: Oct 2012
Distribution: Scientific Linux 6.3 Carbon
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thanks much for the feedback.

Installed. Here is a minor inconvience when compiling tt.f with g77.

#g77 tt.f -o tt

creates the "tt" executable. Yet, usually to execute, all I have to type is:

#tt

In the present situation:
#bash: tt: command not found

Checking g77 is there:
#g77 -v
(ok)
#apropos fortran | less
ctags (1p) - create a tags file (DEVELOPMENT, FORTRAN)
fort77 (1p) - FORTRAN compiler (FORTRAN)
gfortran (1) - GNU Fortran compiler

shows only the gcc-f95 stuff.

In order to execute test, I have to do:
#./tt
the gcc-f95 ./ gfortran way

Is there a way to force the system to recognize g77/f77?

The reason I ask is that 70% of the software I need to install (build via make..)
is "outdated" and compiles with g77..Some are already failing.

Thank you again.
 
  


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.1 hangs after "update if newer version available" with YAST stargazer33 SUSE / openSUSE 4 07-02-2007 02:16 PM
How to install GCC? error "no acceptable compiler found" rohan208 Red Hat 3 04-19-2006 06:53 AM
recording function in kaffeine - more of a "disfunction" in newer version? ungua Linux - Software 0 10-22-2005 07:05 AM
GCC/glibc odyssee: Or "how do I upgrade my compiler environment?" BedriddenTech Slackware 5 09-01-2003 10:17 AM

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

All times are GMT -5. The time now is 05:26 AM.

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