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

Unsuccessful installation #11

Closed
diazcastillo opened this issue May 9, 2017 · 3 comments
Closed

Unsuccessful installation #11

diazcastillo opened this issue May 9, 2017 · 3 comments

Comments

@diazcastillo
Copy link

Hi,
I'm trying unsuccessfully to install chromVar using devtools::install_github("GreenleafLab/motifmatchr") using RStudio on a Mac (MacOS Sierra:10.12.4).

All I get is:
Downloading GitHub repo GreenleafLab/motifmatchr@master
from URL https://api.github.com/repos/GreenleafLab/motifmatchr/zipball/master
Installation failed: Could not find build tools necessary to build motifmatchr

Any recommendation?

Carlos

@caleblareau
Copy link
Contributor

If I had to guess, are you using R 3.4.0+? Note that there's new Clang and Fortran environment requirements, which may not be native to your machine and cause Rcpp packages (like motifmatchr) to fail.

The guide from CRAN is pretty good/clear/straightforward about this--
https://cloud.r-project.org/bin/macosx/tools/

(This personally solved my issue installing chromVAR for Mac for R 3.4)

@caleblareau
Copy link
Contributor

An alternative--

brew install cmake gcc

which in the latest version, should install gcc-7. You can use this instead of clang. To do so for installing mac R packages, modify the CC and CXX variables in Makevars like so:

lareauc$ head -2 ~/.R/Makevars 
CC=/usr/local/bin/gcc-7 
CXX=/usr/local/bin/g++-7 

@diazcastillo
Copy link
Author

Installed!!! Thanks a lot.

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

3 participants