3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu上のRにGSLをセットアップする

Posted at

UbuntuのRにGSLがインストールできない

Ubuntu上のRに、cranからGNU Scientific Library (GSL) をインストールしようとしたところ、次のようなエラーが出てインストールできない。

>install.packages("gsl")

(中略)
no configure: error: gsl-config not found, is GSL installed? 
ERROR: configuration failed for package ‘gsl’

どうやら、Rにgslを入れる前にUbuntuにGSLをセットアップしろということらしい。
いろいろと調べてソースから最新版をコンパイルするなどしたが、うまくRが読んでくれなくて困った。

先にaptでUbuntuにGSLを入れる必要がある

結局、aptでr-cran-gslをインストールすれば解決した。

$ sudo apt-get install r-cran-gsl
3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?