| 1 |
The gsl R package is a wrapper for the GSL C library (note capitalization). |
| 2 |
|
| 3 |
Installing gsl from source requires you to download and install GSL |
| 4 |
first. Ensure that you can compile and run a simple test program such |
| 5 |
as the example program near the start of the GSL Reference Manual. |
| 6 |
|
| 7 |
You will need at least GSL version 2.5: using earlier versions will |
| 8 |
give errors such as |
| 9 |
|
| 10 |
error: too few arguments to function 'gsl_sf_ellint_D_e' |
| 11 |
|
| 12 |
|
| 13 |
Some linux users report that is is possoble to go to the Ubuntu |
| 14 |
Software Center and install "GNU Scientific Library (GSL) -- |
| 15 |
development package", which has the name "libgsl0-dev". |
| 16 |
|
| 17 |
If the gsl R package builds successfully but will not load, make sure |
| 18 |
to inform your system linker/loader where to find the GSL libraries |
| 19 |
used to compile it. That step may be missed when using a manual GSL |
| 20 |
installation as opposed to one performed by a package manager. |
| 21 |
|
| 22 |
One common problem when installing from source is that the system |
| 23 |
cannot find "gsl-config". Typically, install.packages() reports |
| 24 |
something like |
| 25 |
|
| 26 |
checking for gsl-config... no |
| 27 |
configure: error: gsl-config not found, is GSL installed? |
| 28 |
ERROR: configuration failed for package 'gsl' |
| 29 |
|
| 30 |
On unix-type systems, "which gsl-config" locates the file gsl-config; |
| 31 |
ensure that the $PATH environment variable includes the directory |
| 32 |
where gsl-config is held. Usually, this is not necessary with default |
| 33 |
settings, but many users wish to work with GSL files which are |
| 34 |
installed in a non-standard location. |