メインコンテンツに移動
戯れ言の水溜まりΦ

メインナビゲーション

  • ホーム
ユーザーアカウントメニュー
  • ログイン

パンくず

  1. ホーム
  2. R
  3. めも

R ソースインストール

By estis , 16 4月, 2018
  • コメントを投稿するにはログインまたは登録をしてください

CentOS7 で、 RStudio https://www.rstudio.com/products/RStudio/ を使用するために、 R をソースからインストールしてみた。
いろいろ失敗を重ね、ネット上の情報を参考にした結果、 CentOS7 ミニマム インストール後に、 以下を実行する必要があるようだ。

yum upgrade
yum groupinstall 'Development tools'
yum install readline-devel
yum install libXt-devel
yum install zlib-devel
yum install bzip2-devel
yum install xz-devel
yum install pcre-devel
yum install curl-devel
yum install java
yum install java-1.8.0-openjdk-devel
yum install texlive
yum install texinfo

下のは、中国語のサイトを参照した。 perl-Digest-MD5 の必要性がよくわからない。

wget http://mirrors.ctan.org/install/fonts/inconsolata.tds.zip
mkdir inconsolata
unzip inconsolata.tds.zip -d inconsolata
cp -r inconsolata/* /usr/share/texmf
mktexlsr

tee -a /usr/share/texlive/texmf-dist/web2c/updmap.cfg << EOF
> Map zi4.map
> EOF

yum install perl-Digest-MD5
updmap-sys --force

ここまでで、coufigure は、とりあえず通るのだけれど、

R is now configured for x86_64-pc-linux-gnu

  Source directory:          .
  Installation directory:    /usr/local

  C compiler:                gcc -std=gnu99  -g -O2
  Fortran 77 compiler:       gfortran  -g -O2

  Default C++ compiler:      g++   -g -O2
  C++98 compiler:            g++  -g -O2
  C++11 compiler:            g++ -std=gnu++11 -g -O2
  C++14 compiler:              
  C++17 compiler:              
  Fortran 90/95 compiler:    gfortran -g -O2
  Obj-C compiler:	      

  Interfaces supported:      X11
  External libraries:        readline, curl
  Additional capabilities:   NLS
  Options enabled:           shared R library, shared BLAS, R profiling

  Capabilities skipped:      PNG, JPEG, TIFF, cairo, ICU
  Options not enabled:       memory profiling

  Recommended packages:      yes

最後に表示される上記のようなメッセージの Capabilities skipped: PNG, JPEG, TIFF, cairo, ICU が問題。 追加で、以下を実行した。

yum install tcl-devel
yum install tk-devel
yum install libXmu-devel
yum install libjpeg-turbo-devel
yum install pango-devel
yum install libtiff-devel

これで、Capabilities skipped:の項目はなくなった。 ※ yum の力で、依存関係のあるものが複数インストールされている。

R is now configured for x86_64-pc-linux-gnu

  Source directory:          .
  Installation directory:    /usr/local

  C compiler:                gcc -std=gnu99  -g -O2
  Fortran 77 compiler:       gfortran  -g -O2

  Default C++ compiler:      g++   -g -O2
  C++98 compiler:            g++  -g -O2
  C++11 compiler:            g++ -std=gnu++11 -g -O2
  C++14 compiler:              
  C++17 compiler:              
  Fortran 90/95 compiler:    gfortran -g -O2
  Obj-C compiler:	      

  Interfaces supported:      X11, tcltk
  External libraries:        readline, curl
  Additional capabilities:   PNG, JPEG, TIFF, NLS, cairo, ICU
  Options enabled:           shared R library, shared BLAS, R profiling

  Capabilities skipped:      
  Options not enabled:       memory profiling

  Recommended packages:      yes

Rのインストール
※ --enable-R-shlib は、RStudio 利用に必須。

wget https://cran.ism.ac.jp/src/base/R-3/R-3.4.4.tar.gz
tar xvf R-3.4.4.tar.gz 
cd R-3.4.4
./configure --enable-R-shlib
make 
make install

Comments

ブックナビゲーション

  • 関数
  • めも
    • A Layered Grammar of Graphics
    • HTTPSプロトコルでのWebページ読み込み R
    • R RWeka ロード時のエラー
    • R options()関数 出力内容
    • R plot() の ylim と、axis() の at, labels
    • R から Python を使う
    • R インストールしておきたいパッケージ
    • R グラフを画像として保存する
    • R ソースインストール
    • R データフレームをベクトルに変換する
    • R パッケージのインストール・読み込み
    • R パッケージの更新
    • R ファイルの文字コード確認
    • R ベクトル・行列の掛け算
    • R 全てのオブジェクトをsaveする
    • R 文字化け対策
    • R 有効桁数の変更
    • R 関数の引数を確認する
    • RPostgreSQL のインストール
    • RStudio Server インストール
    • RStudio で、データベースに接続する方法
    • RStudio ショートカットメモ
    • RWeka ロード時のエラー 再び
    • Rwebdriver インストール
    • Rではじめるデータサイエンス 1.2 第1ステップ 練習問題
    • Rではじめるデータサイエンス 1.3 エステティックマッピング 練習問題
    • Rによる自動データ収集 読書めも1
    • Rによる自動データ収集 読書めも2
    • Rによる自動データ収集 読書めも3
    • Rによる自動データ収集 読書めも4
    • Rのgrepなどで、( に一致させたい時
    • Rパッケージ ソースダウンロード
    • UsefulR 9 ドキュメント・プレゼンテーション生成 サポートページ
    • dygraph 数値表示をカンマ区切りにしたい
    • pandoc document conversion failed with error 61
    • rgeolocate パッケージ
    • sar コマンドの出力結果から、%iowait の状況を R でグラフにしたり分析したり
    • sar コマンドの出力結果から、%iowait の状況を R でグラフにしたり分析したり ggplot2 でグラフ描画
RSSフィード
Powered by 戯れ言の水溜まりΦ