2017/05/23
Jupyter でRをつかう
環境: Ubuntu 16.04.2 LTS
JupyterでRをつかいたいのですが、パッケージをいれようとして、エラー発生。
そのときのメモ。
そのときのメモ。
Jupyterは anacondaでいれる。ほかの選択肢は考慮しなかった。
Rのインストールは
$ conda install -c r r-essentials$ conda install -c defaults zeromq
としておいた。
ここまででJupyterでRは動作する。
ここまででJupyterでRは動作する。
問題はここから。
Analysis of Dose-Response Curves パッケージ "DRC"をいれようとしてこける。
Rのプロンプトにて
> install.packages("drc", dependencies = TRUE)sh: 1: make: not found
make がない?
build-essentialをいれていなかった。
$ sudo apt-get install build-essential
gtoolsの取得でエラーしておる。
> install.packages("gtools", dependencies = TRUE)make: gfortran: Command not found/usr/bin/ld: cannot find -lgfortran
とでてる。。
fortran のパッケージが不足してるようです。
$ sudo apt-get install gfortran
再度インストール。次は、、、
libSM.so.6: cannot open shared object file: No such file or directory
qtのライブラリがたりん
$ sudo apt-get install -y python-qt4
> install.packages("gtools", dependencies = TRUE)
この状態でgtoolsの取得がうまくいった。
> install.packages("drc", dependencies = TRUE)
この状態でdrcの取得がうまくいった。
うまくいったようだ
作成日: 2017/05/23 17:53
ilovelinux at 20:56│Comments(0)│Ubuntu