Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid clang: No such file or directory error

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?

like image 209
Sebastian Avatar asked Nov 15 '17 18:11

Sebastian


1 Answers

Try this command:

conda install clangxx_osx-64

And before open RStudio from Anaconda execute this:

export CONDA_BUILD_SYSROOT=$(xcrun --show-sdk-path)
like image 82
Garmo Avatar answered Nov 02 '22 23:11

Garmo