Skip to content

"gsl" does not seem to find installed GSL

4 messages · Marius Hofert, Roy Mendelssohn - NOAA Federal, Kjell Konis

#
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:
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
#
On Wed, Oct 21, 2015 at 7:02 PM, Marius Hofert wrote:
I just tried to install "gsl" on the other machine again... and it
also failed. I must have installed it under OS X 10.10 then (before
the upgrade). Is this a known issue? (how can it be solved?)
#
Just a guess but in the the config step it says:
and the version on cran is 1.9.  I am not certain why you want to install from source, but either way,  Simon has more recent versions on his web pages, the src at:

http://r.research.att.com/src/

and the libs at:

http://r.research.att.com/libs/


HTH,

-Roy
**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new address and phone***
110 Shaffer Road
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn at noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
#
Hi Marius,

I have had this same problem several times. My workaround is to

1. download the source package 
2. uncompress/unarchive the package
3. delete the 2 configure scripts
4. in src, rename Makevars.in Makevars
5. edit Makevars, replace @GSL_CFLAGS@ with the output of 'gsl-config ?cflags? and replace @GSL_LIBS@ with the output of ?gsl-config ?libs'
6. R CMD INSTALL the gsl directory

Hope that works,
Kjell