velocyto-team / velocyto.R

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

Problem installing Velocyto #120

Open aelias1 opened 4 years ago

aelias1 commented 4 years ago

I have installed the following packages already: pcaMethods hdf5r

However...when I use the code: install_github("velocyto-team/velocyto.R") I receive the error: clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' [-Wmissing-sysroot] clang: error: unsupported option '-fopenmp' make: *** [RcppExports.o] Error 1 ERROR: compilation failed for package ‘velocyto.R’

Please help me resolve this. Thank you!

ahadkhalilnezhad commented 4 years ago

Hello, More probably, this is what to do to resolve it (reference; https://github.com/BUStools/BUSpaRse):

First, download and install the appropriate (latest) version of the Clang compiler from: https://cran.r-project.org/bin/macosx/tools/

Second, in RStudio:

CC=/usr/local/clang6/bin/clang SHLIB_CXXLD=/usr/local/clang6/bin/clang++ CXX= /usr/local/clang6/bin/clang++ -Wall CXX1X= /usr/local/clang6/bin/clang++ CXX98= /usr/local/clang6/bin/clang++ CXX11= /usr/local/clang6/bin/clang++ CXX14= /usr/local/clang6/bin/clang++ CXX17= /usr/local/clang6/bin/clang++ LDFLAGS=-L/usr/local/clang6/lib

This worked nicely for me, I hope it does for you as well.

Runuply commented 4 years ago

https://daijiang.name/en/2017/06/21/fopenmp-option-of-clang-error/

check this

evanbiederstedt commented 4 years ago

There's a solution provided here: https://github.com/kharchenkolab/conos/wiki/Installing-Conos-for-Mac-OS