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

Trouble installing macOS 10.14 Mojave #20

Open
exoulster opened this issue Oct 26, 2018 · 1 comment
Open

Trouble installing macOS 10.14 Mojave #20

exoulster opened this issue Oct 26, 2018 · 1 comment

Comments

@exoulster
Copy link

Hello,

I am having trouble installing the package under macOS 10.14 Mojave.

The error message is quite vague
Error: Could not find tools necessary to compile a package

llvm 7.0 was installed via brew

$ /usr/local/opt/llvm/bin/clang --version
clang version 7.0.0 (tags/RELEASE_700/final)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin

~/.R/Makevars is also properly set up

$ cat ~/.R/Makevars 
CXX = /usr/local/opt/llvm/bin/clang
CXXFLAGS = -I/usr/local/opt/llvm/include -fopenmp
LDFLAGS = -L/usr/local/opt/llvm/lib -fopenmp=libiomp5

But when I run this in RStudio, I get the following message

> library(devtools)
> install_github('zelazny7/isofor')
Downloading GitHub repo zelazny7/isofor@master
Error: Could not find tools necessary to compile a package

R version 3.5.1

> version
               _                           
platform       x86_64-apple-darwin15.6.0   
arch           x86_64                      
os             darwin15.6.0                
system         x86_64, darwin15.6.0        
status                                     
major          3                           
minor          5.1                         
year           2018                        
month          07                          
day            02                          
svn rev        74947                       
language       R                           
version.string R version 3.5.1 (2018-07-02)
nickname       Feather Spray  

Plus, everything works fine on macOS 10.13. So I suspect it has something to do with os?

Thanks!

@gravesee
Copy link
Owner

gravesee commented Nov 1, 2018

I had the same issue when I upgraded to Mojave. I just commented the repos copy of src/Makevars and also commented out everything in my ~/.R/Makevars. It now compiles using gcc without the openmp flags passed.

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

2 participants