RobinHankin / gsl

an R wrapper for the Gnu Scientific Library
15 stars 9 forks source link

Compilation - GSL-2.6 works- #10

Closed chris-english closed 1 year ago

chris-english commented 4 years ago

without gsl-2.6 (i.e. gsl-2.4) hangs on undefined symbol and won't load from temporary build dir:

so linking against gsl-2.4 yields

** testing if installed package can be loaded from temporary location Error: package or namespace load failed for ‘gsl’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/usr/local/lib/R/site-library/00LOCK-gsl/00new/gsl/libs/gsl.so': /usr/local/lib/R/site-library/00LOCK-gsl/00new/gsl/libs/gsl.so: undefined symbol: gsl_sf_legendre_deriv2_array_e Error: loading failed Execution halted ERROR: loading failed

Linking against any prior to 2.4 yields errors previously listed.

In linux:

check what you have:

$ sudo locate gsl-config /usr/bin/gsl-config /usr/local/bin/gsl-config

so I have two

/usr/bin/gsl-config --version 2.4 /usr/local/bin/gsl-config --version 2.6

RStudio is going to build against /usr/local/bin/gsl-config (/usr/local options) so I get past the undefined symbols for legendre, loads, and all is fine.

Very easy build from source, ./configure make make install