如何避免c:没有这样的文件或目录错误

如何避免c:没有这样的文件或目录错误

问题描述:

我正在尝试将RPostgreSQL安装到我的R实例中.

I am trying to install RPostgreSQL into my R instance.

我通过Anaconda下载了R,也下载了自制软件.

I downloaded R with Anaconda, I also downloaded homebrew.

运行时,install.packages('RPostgreSQL')收到一条错误消息,内容为-

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’

我应该下载这个clang文件吗?

Should I download this clang file?

尝试以下命令:

conda install clangxx_osx-64

在从Anaconda打开RStudio之前,请执行以下操作:

And before open RStudio from Anaconda execute this:

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