I am trying to compile R on my Debian 2.0 machine. I have both gcc and egcc (required for g77). Since the configure script doesn't check for egcc I used CC=egcc (even used LDCMD=egcc) in the config.site file. Everything worked fine until the final binary where it tries to use gcc ....... egcc -g -I../include -c unique.c egcc -g -I../include -c util.c egcc -g -I../include -c version.c gcc -export-dynamic -o R.binary arithmetic.o array.o attrib.o bind.o builtin.o character.o coerce.o colors.o complex.o context.o cov.o cum.o ....... ld: cannot open -lf2c: No such file or directory and exits with the above error (it works if I go to the src/main directory and execute the above with egcc instead). How can I make the configure and make scripts to use egcc throughout? Venkat -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> ....... > ld: cannot open -lf2c: No such file or directorySomething similar happens to me when g77 is not found and I get f2c instead. You might check which fortran compiler is found (somewhere in the output from ./configure). I had to put a link f77 -> g77 somewhere near the beginning of my path. The libf2c shouldn't be needed if you are using g77. Paul Gilbert -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Venkat, Venkat> I am trying to compile R on my Debian 2.0 machine. [...] Venkat> How can I make the configure and make scripts to use egcc Venkat> throughout? Well, as Debian contains an R package (which is usually very up-to-date, thanks to Doug Bates), you can simply use the 'meta-makefile' debian/rules to build the package. As you already have an original R tarball, just get the matching Debian diff.gz file, ie 'r-base_0.62.2-1.diff.gz' (note that Debian renamed R to r-base for interbal consistency), apply this diff.gz to the tar.gz for 0.62.2, change into the directory and say $ debian/rules build which will do the work. Reading the Makefile debian/rules should be straightforward. Hope this helps, Dirk -- mailto:edd at debian.org According to the latest official figures, http://rosebud.ml.org/~edd 43% of all statistics are totally worthless. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._