r - Error Installing caret on AWS Red Hat Linux -


i'm trying install r package caret

r -e "install.packages('caret', repos='http://cran.rstudio.com/')"  

on amazon linux ami dependancies rcppeigen,lme4, bradleyterry2 fail.

warning messages: 1: in install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘rcppeigen’ had non-zero exit status 2: in install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘lme4’ had non-zero exit status 3: in install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘bradleyterry2’ had non-zero exit status 4: in install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘caret’ had non-zero exit status 

when try install rcppeigen (among other verbose massages):

/usr/bin/ld: cannot find -lrlapack /usr/bin/ld: cannot find -lrblas collect2: ld returned 1 exit status make: *** [rcppeigen.so] error 1 error: compilation failed package ‘rcppeigen’ * removing ‘/usr/lib64/r/library/rcppeigen’ 

my environment

amazon linux version 2015.03 linux version 3.4.37-40.44.amzn1.x86_64 (mockbuild@gobi-build-31005) (gcc version 4.6.3 20120306 (red hat 4.6.3-2) (gcc) ) #1 smp thu mar 21 01:17:08 utc 2013 

it seems if has red hat vs. ubuntu, can't find answers here or elsewhere.

you need enable packages enterprise linux (epel) repository.

to this: modify /etc/yum.repos.d/epel.repo. under section marked [epel], change enabled=0 enabled=1.

to temporarily enable epel 6 repository, use yum command line option --enablerepo=epel.

for more info see official documentation


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -