I found this online and it worked (signature from the original poster):
- download the source package
- uncompress/unarchive the package
- delete the 2 configure scripts
- in src, rename Makevars.in Makevars
- edit Makevars, replace @GSL_CFLAGS@ with the output of 'gsl-config —cflags’ and replace @GSL_LIBS@ with the output of ‘gsl-config —libs'
- R CMD INSTALL the gsl directory
Hope that works,
Kjell
There are also instructions in the manual of the package (for version 2.1-7.1 they are on page 33). The 2 sets of instructions are very similar, but those from the manual alone didn't work for me.
This is how my Makevars file looks like
GSL_CFLAGS = -I/usr/local/include
GSL_LIBS = -L/usr/local/lib -lgsl -lgslcblas -lm
#combine to standard arguments for R
#PKG_CPPFLAGS = $(GSL_CFLAGS) -I.
#PKG_LIBS = $(GSL_LIBS)
PKG_LIBS=-L/usr/local/lib -lgsl -lgslcblas -lm
PKG_CPPFLAGS = -I/usr/local/include