I have R-0.62.3 and RedHat 5.0 with fort77. At the office R is running but when I install a package, eg. 'akima' I get a message make: f77: Command not found 'R INSTALL library' does not accept fort77, but R installation checks f77/g77/fort77. Is there an easy way to edit some file and replace f77/g77 with fort77? At home I have the same R and Linux versions, but when installing R a fatal error occurs after /lib/libmath.a -ISM -lICE -L/usr/X11R6/lib -lX11 -ldl -lm /usr/bin/fort77: Illegal option: -export-dynamics make[3]: *** [R.binary] Error 255 make[3]: Leaving directory '/usr/local/R-0.62.3/src/main' make[2]: *** [build] Error 2 make[2]: Leaving directory '/usr/local/R-0.62.3/src' make[1]: *** [R] Error 2 make[1]: Leaving directory '/usr/local/R-0.62.3' make: *** [all] Error2 What's wrong? Hannu Kahra -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On 07-Oct-98 Hannu Kahra wrote:>I have R-0.62.3 and RedHat 5.0 with fort77. > >At the office R is running but when I install a package, eg. 'akima' >I get a message > make: f77: Command not found >'R INSTALL library' does not accept fort77, but R installation checks >f77/g77/fort77. Is there an easy way to edit some file and replace >f77/g77 with fort77?The fortran compiler to use is defined in the file $RHOME/etc/Makeconf (Type "R RHOME" to find the R home directory). If you change the line FC=f77 to FC=fort77 this should work. The value of FC is set when you compile R, so you should only get this problem if you have copied your R installation from another machine, or you have installed the R RPM.>At home I have the same R and Linux versions, but when installing R a >fatal error occurs after > /lib/libmath.a -ISM -lICE -L/usr/X11R6/lib -lX11 -ldl -lm > /usr/bin/fort77: Illegal option: -export-dynamics > make[3]: *** [R.binary] Error 255 > make[3]: Leaving directory '/usr/local/R-0.62.3/src/main' > make[2]: *** [build] Error 2 > make[2]: Leaving directory '/usr/local/R-0.62.3/src' > make[1]: *** [R] Error 2 > make[1]: Leaving directory '/usr/local/R-0.62.3' > make: *** [all] Error2 >What's wrong?Fort77 isn't really a fortran compiler, but a perl script which acts as a frontend to f2c. In principle it should recognize the -export-dynamics option and pass it onto gcc, but it doesn't. If you remove fort77 ("rpm -e fort77") and rerun configure, R compiles quite happily with f2c. So, the configure script probably shouldn't look for fort77. It was never really needed (mea culpa) and now that it doesn't work at all, should probably be taken out. Martyn>Hannu Kahra-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I had the same problems, by default the rpm egcs-f77 (or something to this effect, I did a search on f77 in all RPM files) does not get installed so it used fort77 and died with the error you mentioned. Install the f77 RPM and the build should go painless(it did for me). Hope this helps. Brian On Wed, 7 Oct 1998, Hannu Kahra wrote:> I have R-0.62.3 and RedHat 5.0 with fort77. > > At the office R is running but when I install a package, eg. 'akima' > I get a message > make: f77: Command not found > 'R INSTALL library' does not accept fort77, but R installation checks > f77/g77/fort77. Is there an easy way to edit some file and replace > f77/g77 with fort77? > > At home I have the same R and Linux versions, but when installing R a > fatal error occurs after > /lib/libmath.a -ISM -lICE -L/usr/X11R6/lib -lX11 -ldl -lm > /usr/bin/fort77: Illegal option: -export-dynamics > make[3]: *** [R.binary] Error 255 > make[3]: Leaving directory '/usr/local/R-0.62.3/src/main' > make[2]: *** [build] Error 2 > make[2]: Leaving directory '/usr/local/R-0.62.3/src' > make[1]: *** [R] Error 2 > make[1]: Leaving directory '/usr/local/R-0.62.3' > make: *** [all] Error2 > What's wrong? > > Hannu Kahra > > > > > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >------------------------------------------------------------------------ In the world of PC's. Ken Griffy Jr. is still the best thing in NW Wash. Brian Schneider brians at vcn.com www.liberty.ddns.org ________________________________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._