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

Macos 10.14 install error #3072

Closed
jiangnight opened this issue Sep 26, 2018 · 6 comments
Closed

Macos 10.14 install error #3072

jiangnight opened this issue Sep 26, 2018 · 6 comments

Comments

@jiangnight
Copy link

Hello,when i install.packages("data.tale"),some Error happen, i have do xcode-select --install and also have install llvm, but this error else happen.

> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS  10.14

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets 
[6] methods   base     

loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1    Rook_1.1-1    
[4] brew_1.0-6   
/Library/Frameworks/R.framework/Resources/include/R.h:55:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h> /* Not used by R itself, but widely assumed in packages */
          ^~~~~~~~~~
1 error generated.
@renkun-ken
Copy link
Member

renkun-ken commented Sep 26, 2018

Same problem here. clang6 does not work either. And it looks like clang6 no longer works for standalone compilation, many basic headers cannot be found.

@mattdowle
Copy link
Member

CRAN is extremely slow for Mac builds. The binary is still not yet available for r-release but is for r-oldrel, oddly.

image

@jiangnight
Copy link
Author

@mattdowle
yes, the console warn this problem ,and i try to install old version,but the same Error happen

@renkun-ken
oh, i have installed clang4, but this problem dosen't dissappear

install_version("data.table", version = "1.11.4")

/usr/local/clang4/bin/clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I/usr/local/include  -fopenmp -fPIC  -Wall -g -O2  -c assign.c -o assign.o
In file included from assign.c:1:
In file included from ./data.table.h:1:
/Library/Frameworks/R.framework/Resources/include/R.h:55:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h> /* Not used by R itself, but widely assumed in packages */
          ^~~~~~~~~~
1 error generated.
make: *** [assign.o] Error 1
ERROR: compilation failed for package ‘data.table’

@jiangnight
Copy link
Author

oh, i solve it by this. thanks a lot @renkun-ken @mattdowle

install_version("data.table", version = "1.11.4",type="binary")

@renkun-ken
Copy link
Member

@jiangnight #2406 (comment) should solve the problem.

@jiangnight
Copy link
Author

@renkun-ken 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