-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gsl wants libgsl >= 1.16 but I have 2.4 #18
Comments
This was the most recent version of libgsl-dev available for Ubuntu 18.04
Dear GSL users in R,
I'm delighted to hear of your using gsl, and I happened across your report.
I took a peak at the tarball you pointed to and found that it had some surprising code to find gsl in its configure.ac - I'm not surprised that it did not return something useful to configure.
I quickly put together an autoconf+automake setup to find gsl in what might be the simplest way, using pkg-config. Here's the snippet in configure.ac which I hope can help you:
AC_PATH_TOOL(PKG_CONFIG, pkg-config)
AC_SUBST([GSL_CFLAGS])
AC_SUBST([GSL_LIBS])
PKG_CHECK_MODULES([GSL], [gsl >= 2.4])
CFLAGS="$GSL_CFLAGS $CFLAGS"
LIBS="$GSL_LIBS $LIBS"
On an ubuntu-18.04 system with libgsl-dev installed it gives this:
checking pkg-config is at least version 0.9.0... yes
checking for gsl... yes
and it links with the right libraries (pkg-config gsl --cflags does not need or set C flags).
And if I remove libgsl-dev then it reports the stuff below:
checking for pkg-config... /usr/bin/pkg-config
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gsl... no
configure: error: Package requirements (gsl >= 2.4) were not met:
No package 'gsl' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables gsl_CFLAGS
and gsl_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
|
Just ran into this and spent some time debugging. The requirement actually being checked for in
The error message when this check fails needs to be updated to reference the version actually being checked for rather than
|
The same problem. I have to use an older version of gsl (gsl_2.1-6.tar.gz ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script started on 2021-11-23 15:26:59+1300
% R
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
** package ‘gsl’ successfully unpacked and MD5 sums checked
checking for gsl-config... /usr/bin/gsl-config
checking if GSL version >= 2.1... checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
configure: error: Need GSL version >= 1.16
ERROR: configuration failed for package ‘gsl’
The downloaded source packages are in
‘/tmp/RtmpRIIADX/downloaded_packages’
Warning message:
In install.packages("gsl") :
installation of package ‘gsl’ had non-zero exit status
This was the most recent version of libgsl-dev available for Ubuntu 18.04
The text was updated successfully, but these errors were encountered: