Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
g77 and f77 not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sanhitamj
n00b
n00b


Joined: 06 Apr 2007
Posts: 25

PostPosted: Sat May 19, 2007 1:43 pm    Post subject: g77 and f77 not found Reply with quote

Hello,

I have been using gentoo for last 2 years now and never had this problem. But now I have installed gentoo on this new machiene and it doesn't have either of g77 or f77.

I don't need them for programming, but some softwares need it.

Can someone please help me?

Thanks

Sanhita
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2591
Location: userland

PostPosted: Sat May 19, 2007 1:57 pm    Post subject: Reply with quote

Code:
USE=fortran emerge -1 gcc
Back to top
View user's profile Send private message
sanhitamj
n00b
n00b


Joined: 06 Apr 2007
Posts: 25

PostPosted: Sat May 19, 2007 4:31 pm    Post subject: Reply with quote

That does not work. I already have gfortran but I want g77 or f77 to install pgplot and difmap.

Thanks

Sanhita
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon May 21, 2007 6:50 pm    Post subject: Reply with quote

you are obviously using gcc-4.x , you can also emerge gcc-3.6.x , it's slotted so you can have both.

then use eselect compiler ... to swap over for those two builds. This should also swap gfortran to g77.

dont forget to eselect back again straight afterwards

8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Fri Nov 02, 2007 1:36 am    Post subject: Reply with quote

One might think that since gcc-3 has only g77, and gcc-4 only gfortran, one wouldn't need to switch profiles. Alas, each complier needs its own Fortran library in the default library path.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
thuk
n00b
n00b


Joined: 26 Oct 2005
Posts: 31
Location: Canberra, Australia

PostPosted: Fri Nov 02, 2007 2:51 am    Post subject: Reply with quote

Hi sanhitamj,

Are you attempting to install pgplot from source? pgplot is in
portage (sci-libs/pgplot) , and compiles fine with gcc4/gfortran.
You'd only need gcc3 if you needed to specifically output to the GIF,
PPM or XWD drivers.

difmap might still work with gcc4 with a little coaxing. I'm guessing
you have tried this already? If you aren't into attempting this, you
are just going to have to do what Gentree and Hypnos have suggested,
and install both gcc3 and gcc4, and compile pgplot with gcc3 (then
compile difmap against it). You can use eselect to switch between the
two versions of gcc.

Cheers,

thuk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum