alfredoq Posted October 7, 2008 Report Share Posted October 7, 2008 Hi everyone. I want to install F77 compiler in Mandriva 2008 Spring. I cant find the package g77 which is supposed to contain it. Is F77 installed by other package under Mandriva 2008.1, Thanks in advance for the support, best regards Alfredo Quote Link to comment Share on other sites More sharing options...
Greg2 Posted October 7, 2008 Report Share Posted October 7, 2008 I believe you want to install the gcc-gfortran and gcc4.3-gfortran packages from the repos with your gui software installer or urpmi. This will also install the depends they need. Quote Link to comment Share on other sites More sharing options...
alfredoq Posted October 7, 2008 Author Report Share Posted October 7, 2008 I have gcc-gfortran-4.2.3-6mnb1 and manbo-mandriva-files-gcc-gfortran-4.2.3-6mnb1 isntalled from my repository but after typing f77 it returns "bash: f77: command not found". The installed packages are the correcto ones? Thanks again Alfredo Quote Link to comment Share on other sites More sharing options...
Greg2 Posted October 7, 2008 Report Share Posted October 7, 2008 OK, I just checked the repos again and I think you're looking for the gcc3.3-g77 package and its depends. Sorry for the confusion, I don't use f77. :) Quote Link to comment Share on other sites More sharing options...
adamw Posted October 8, 2008 Report Share Posted October 8, 2008 The reason being, btw, that g77 / f77 was replaced by gfortran in gcc 4.0. In general you should try to build stuff with gfortran now, and only fall back on the old g77 if you can't. Quote Link to comment Share on other sites More sharing options...
Carcozep Posted November 30, 2008 Report Share Posted November 30, 2008 hi. i also installed gfortran form the package software and when i typed in the consile gfortran, it;s not working...Am i mstakening my bash command? :unsure: Quote Link to comment Share on other sites More sharing options...
neddie Posted November 30, 2008 Report Share Posted November 30, 2008 If you installed the gcc-gfortran package then you should have an executable called /usr/bin/gfortran. So if you type gfortran in the console, it should find the executable. And it should complain that you haven't given it any input files: $ gfortran gfortran: no input files If this doesn't work for you, then either you haven't got gfortran installed, or you didn't type the "gfortran" command exactly right. To check whether you have got gfortran installed, try this: rpm -qa | grep fortran This should list your packages containing the word fortran. If this looks ok, try this: ls /usr/bin/gf* This should give you a list of files in your /usr/bin directory which start with "gf". At least two of these should have something to do with fortran. If this looks ok, you can try this: gfortran --version And this should tell you the version of gfortran you're running. I assume you know what to do from here on! ;) Quote Link to comment Share on other sites More sharing options...
Carcozep Posted November 30, 2008 Report Share Posted November 30, 2008 seems like my problem wasn;t that complicated :) i had installed gfortran 4.3 while gcc was 4.2.3.....gcc was working but without gfortran. after uninstalling gfortran 4.3 and installing gfortran 4.2.3 it worked perfectly :) i mean, well, at least it says about the fortran compiler when i tell him ¨gfortran --version¨ :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.