我无法在 ubuntu 18.04 LTS 上安装 R 软件包 gsl,并且我不明白问题所在。
\n从 R 内部:
\n> install.packages(\'gsl\')\n* installing *source* package \xe2\x80\x98gsl\xe2\x80\x99 ...\n** package \xe2\x80\x98gsl\xe2\x80\x99 successfully unpacked and MD5 sums checked\n** using staged installation\nchecking for gsl-config... /usr/bin/gsl-config\nchecking if GSL version >= 2.1... checking for gcc... gcc\nchecking whether the C compiler works... yes\nchecking for C compiler default output file name... a.out\nchecking for suffix of executables... \nchecking whether we are cross compiling... no\nchecking for suffix of object files... o\nchecking whether we are using the GNU …Run Code Online (Sandbox Code Playgroud) 我正在尝试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)
Run Code Online (Sandbox Code Playgroud)
所以我跑了
> 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’ …Run Code Online (Sandbox Code Playgroud)