Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install 'hts' due to RcppEigen.h #63

Open
kdgutier opened this issue Oct 13, 2021 · 0 comments
Open

Failed to install 'hts' due to RcppEigen.h #63

kdgutier opened this issue Oct 13, 2021 · 0 comments

Comments

@kdgutier
Copy link

When trying to install 'hts' on a Ubuntu 18.04.6 LTS AWS server
with R version 3.4.4 using this command

sudo R -e 'install.packages("hts", dependencies = TRUE)'

the installation breaks because RcppEigen is not found


These are the logs

ubuntu@ip-172-31-16-51:~$ sudo R -e 'install.packages("hts", dependencies = TRUE)'

R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> install.packages("hts", dependencies = TRUE)
Installing package into/usr/local/lib/R/site-library’
(aslibis unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/hts_6.0.2.tar.gz'
Content type 'application/x-gzip' length 821684 bytes (802 KB)
==================================================
downloaded 802 KB

* installing *source* packagehts...
** packagehtssuccessfully unpacked and MD5 sums checked
** libs
g++  -I/usr/share/R/include -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/RcppEigen/include"    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-AitvI6/r-base-3.4.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RcppExports.cpp -o RcppExports.o
RcppExports.cpp:4:10: fatal error: RcppEigen.h: No such file or directory
 #include <RcppEigen.h>
          ^~~~~~~~~~~~~
compilation terminated.
/usr/lib/R/etc/Makeconf:168: recipe for target 'RcppExports.o' failed
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for packagehts* removing/usr/local/lib/R/site-library/htsThe downloaded source packages are in/tmp/RtmpO7eOeq/downloaded_packagesWarning message:
In install.packages("hts", dependencies = TRUE) :
  installation of packagehtshad non-zero exit status
> 
> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant