How to avoid clang: No such file or directory error

我的未来我决定 提交于 2019-12-21 04:58:09

问题


I am trying to install RPostgreSQL into my R instance.

I downloaded R with Anaconda, I also downloaded homebrew.

When I run, install.packages('RPostgreSQL') I get an error message that reads --

make: x86_64-apple-darwin13.4.0-clang: No such file or directory
make: *** [RS-DBI.o] Error 1
ERROR: compilation failed for package ‘RPostgreSQL’
* removing ‘/Users/user/anaconda2/lib/R/library/RPostgreSQL’

Should I download this clang file?


回答1:


Try this command:

conda install clangxx_osx-64

And before open RStudio from Anaconda execute this:

export CONDA_BUILD_SYSROOT=$(xcrun --show-sdk-path)


来源:https://stackoverflow.com/questions/47314899/how-to-avoid-clang-no-such-file-or-directory-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!