How to avoid clang: There is no such file or directory error

I am trying to install RPostgreSQL in my instance of R.

I downloaded R in 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?

+4
source share
1 answer

Try the following command:

conda install clangxx_osx-64

And before you open RStudio from Anaconda, do the following:

export CONDA_BUILD_SYSROOT=$(xcrun --show-sdk-path)
+3
source

Source: https://habr.com/ru/post/1689330/


All Articles