Я пытаюсь установить пакет gsl
для R, который, как я понимаю, является просто оболочкой для GSL, под OSX Mavericks. Я попробовал очевидное:
> install.packages('gsl')
Installing package into ‘/Users/myusername/Library/R/3.1/library
(as ‘lib is unspecified)
package ‘gsl is available as a source package but not as a binary
Warning in install.packages :
package ‘gsl is not available (for R version 3.1.0)
Итак, я побежал
> install.packages('gsl',type = 'source')
Installing package into ‘/Users/myusername/Library/R/3.1/library
(as ‘lib is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/gsl_1.9-10.tar.gz'
Content type 'application/x-gzip' length 342803 bytes (334 Kb)
opened URL
==================================================
downloaded 334 Kb
* installing *source* package ‘gsl ...
** package ‘gsl successfully unpacked and MD5 sums checked
checking for gsl-config... no
configure: error: gsl-config not found, is GSL installed?
ERROR: configuration failed for package ‘gsl
* removing ‘/Users/myusername/Library/R/3.1/library/gsl
Warning in install.packages :
installation of package ‘gsl had non-zero exit status
GSL не устанавливается. D'о! Поэтому я устанавливаю GSL через Homebrew:
~ brew install gsl
==> Downloading http://ftpmirror.gnu.org/gsl/gsl-1.15.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/gsl/1.15
==> make
==> make install
/usr/local/Cellar/gsl/1.15: 239 files, 6.7M, built in 101 seconds
Попробуйте снова установить пакет R:
> install.packages('gsl',type = 'source')
Installing package into ‘/Users/myusername/Library/R/3.1/library
(as ‘lib is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/gsl_1.9-10.tar.gz'
Content type 'application/x-gzip' length 342803 bytes (334 Kb)
opened URL
==================================================
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
* removing ‘/Users/myusername/Library/R/3.1/library/gsl
Warning in install.packages :
installation of package ‘gsl had non-zero exit status
Я, очевидно, поступаю неправильно, но не уверен, в чем именно заключается проблема.