[R-SIG-Mac] "gsl" does not seem to find installed GSL

Marius Hofert marius.hofert at uwaterloo.ca
Thu Oct 22 01:02:25 CEST 2015


Hi,

I installed gsl (gsl-1.16.tar.gz) via ./configure, make, make check
and sudo make install. gsl-config --version shows:

$ gsl-config --version
1.16

I then wanted to install the R package "gsl" from source:

> install.packages("gsl", type="source")
Installing package into '/usr/local/R/library'
(as 'lib' is unspecified)
trying URL 'http://cran.r-project.org/src/contrib/gsl_1.9-10.tar.gz'
Content type 'application/x-gzip' length 342803 bytes (334 KB)
==================================================
downloaded 334 KB

* installing *source* package 'gsl' ...
** package 'gsl' successfully unpacked and MD5 sums checked
checking for gsl-config... /usr/local/bin/gsl-config
checking if GSL version >= 1.12... checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
configure: error: Need GSL version >= 1.12
ERROR: configuration failed for package 'gsl'

What fails? I did the exact same thing an another MacBook Pro a couple
of months ago and it worked there (also under OS X 10.11)... this is
strange.

I found https://stackoverflow.com/questions/24781125/installing-r-gsl-package-on-mac#_=_
which goes further back but addresses more or less the same problem. I
don't understand the answer there: Do I have to set the flags CFLAGS
and LDFLAGS when configuring gsl?

Cheers,
Marius



More information about the R-SIG-Mac mailing list