R-beta: R0.62.3 installation on RedHat 5.0

Martyn Plummer plummer at iarc.fr
Wed Oct 7 14:24:01 CEST 1998


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list