Skip to content

Problems installing R-2.8.0 on Suse linux 10.1

2 messages · William Hudspeth, Brian Ripley

#
Hello, I am trying to install R on Suse linux 10.1. To get configure to
run correctly, I had to set FPICFLAGS=fPIC.


R is now configured for i686-pc-linux-gnu

  Source directory:          .
  Installation directory:    /usr/local

  C compiler:                gcc -std=gnu99  -g -O2
  Fortran 77 compiler:       g77  -g

  C++ compiler:              g++  -g -O2
  Fortran 90/95 compiler:    g77 -g
  Obj-C compiler:

  Interfaces supported:      X11
  External libraries:        readline
  Additional capabilities:   PNG, JPEG, TIFF, iconv, MBCS, NLS
  Options enabled:           shared BLAS, R profiling, Java

  Recommended packages:      yes


When I then run make, I get:

make[3]: Entering directory `/usr/local/src/R-2.8.0/src/extra/blas'
make[4]: Entering directory `/usr/local/src/R-2.8.0/src/extra/blas'
g77  fPIC  -g -c blas.f -o blas.o
g77: cannot specify -o with -c or -S and multiple compilations
make[4]: *** [blas.o] Error 1
make[4]: Leaving directory `/usr/local/src/R-2.8.0/src/extra/blas'
make[3]: *** [R] Error 2
make[3]: Leaving directory `/usr/local/src/R-2.8.0/src/extra/blas'
make[2]: *** [R] Error 1
make[2]: Leaving directory `/usr/local/src/R-2.8.0/src/extra'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/usr/local/src/R-2.8.0/src'
make: *** [R] Error 1


Help would be appreciated,

William
#
On Thu, 30 Oct 2008, William Hudspeth wrote:

            
FPICFLAGS=-fPIC would have been correct (or -fpic).  It is odd that 
FFLAGS has been set to -g and not '-g -O2': did you change that?  And also 
odd that FC has been set to g77, which is not a Fortran 90/95 compiler.

Your problem was a direct result of your incorrect setting.  However, I am 
rather surprised that any change was needed, as R's configure correctly 
finds FPICFLAGS on many Linux systems, and I am sure has in the past on 
Suse 10.1.