Skip to content
Prev 1810 / 398506 Next

problems compiling R packages with Linux

Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote

 > On our Red-Hat 5.2 systems, with egcs-g77 installed, I have to set
 > 
 > SHLIBLDFLAGS=-shared
 > 
 > in config.site. It looks to me as is that is your problem too. This
 > is not inconsistency, just a failure to guess right. I never trust
 > configure scripts, so do check over these things (they are in the
 > file Makeconf) and override in config.site any I don't agree with.

Thank you very much! Now it works! 

I won't trust 'configure' any more ;-)   Couldn't you put this hint as
a footnote in file "INSTALL" or "PLATFORMS"? BTW, my distribution is
"DLD (Deutsche Linux Distribution)" v. 5.4, if you want to put that
in that list ...

For other beginners:

    - untar source package (e.g.: tar -vzxf R-0.63.1.tgz)
    - go to untar'ed directory
    - edit file config.site, change      

          #SHLIBLDFLAGS= 
      to
          SHLIBLDFLAGS=-shared

    - run ./configure 
    - run make
    - run make install

Thanks (for the information on compilers, too!),
Ulf