velocyto-team / velocyto.R

RNA velocity estimation in R
http://velocyto.org
177 stars 214 forks source link

Error installing velocyto.R #45

Open ClarkGregg opened 5 years ago

ClarkGregg commented 5 years ago

By following the instructions, I try to install velocyto on my Mac on R version 3.5, but I got the following error.

In file included from RcppExports.cpp:4: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include/RcppArmadillo.h:31: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include/RcppArmadilloForward.h:26: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/RcppCommon.h:29: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp/r/headers.h:59: In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100: In file included from /usr/local/Cellar/llvm/7.0.0/include/c++/v1/cmath:305: /usr/local/Cellar/llvm/7.0.0/include/c++/v1/math.h:301:15: fatal error: 'math.h' file not found

include_next

          ^~~~~~~~

1 error generated. make: *** [RcppExports.o] Error 1 ERROR: compilation failed for package 'velocyto.R'

It said math.h not found, I don't know why it occurred. the math.h actually exist in the directory.

Thank you in advanced

Puriney commented 5 years ago

All the errors come from installing Rcpp and RcppArmadillo. I suggest your question be redirected to Rcpp.

But a quick search (here and here) gives me a hint that you might try this first: xcode-select --install then you install Rcpp, and finally install velocyto.R.