如何避免c:没有这样的文件或目录错误 [英] How to avoid clang: No such file or directory error

查看:81
本文介绍了如何避免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)

这篇关于如何避免c:没有这样的文件或目录错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆