I am attempting to install MatchIt - an R package - in an Anaconda environment. I keep getting error messages that I just don't understand.
I made sure that I had Rcpp installed in the same Conda environment and that I have Xcode installed on my machine. Still no luck. I was wondering if anyone had a solution.
devtools::install_github('kosukeimai/MatchIt')
Downloading GitHub repo kosukeimai/MatchIt@HEAD
✔ checking for file ‘/private/var/folders/cz/1d4gc7b13dsfknrnbr0tjz580000gn/T/RtmpYISSL1/remotes50d505ff397/kosukeimai-MatchIt-b3032e6/DESCRIPTION’ ...
─ preparing ‘MatchIt’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ installing the package to process help pages
-----------------------------------
─ installing *source* package ‘MatchIt’ ...
** using staged installation
** libs
x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/opt/anaconda3/envs/pirate/lib/R/include" -DNDEBUG -I'/opt/anaconda3/envs/pirate/lib/R/library/Rcpp/include' -I'/opt/anaconda3/envs/pirate/lib/R/library/RcppProgress/include' -D_FORTIFY_SOURCE=2 -isystem /opt/anaconda3/envs/pirate/include -mmacosx-version-min=10.9 -I/opt/anaconda3/envs/pirate/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /opt/anaconda3/envs/pirate/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/r-base-split_1630154249442/work=/usr/local/src/conda/r-base-4.1.1 -fdebug-prefix-map=/opt/anaconda3/envs/pirate=/usr/local/src/conda-prefix -Wall -pedantic -c RcppExports.cpp -o RcppExports.o
/bin/sh: x86_64-apple-darwin13.4.0-clang++: command not found
make: *** [RcppExports.o] Error 127
ERROR: compilation failed for package ‘MatchIt’
─ removing ‘/private/var/folders/cz/1d4gc7b13dsfknrnbr0tjz580000gn/T/RtmpeKesPi/Rinst1a5f6063566d/MatchIt’
-----------------------------------
ERROR: package installation failed
Error: Failed to install 'MatchIt' from GitHub:
System command 'R' failed, exit status: 1, stdout + stderr (last 10 lines):
E> * installing *source* package ‘MatchIt’ ...
E> ** using staged installation
E> ** libs
E> x86_64-apple-darwin13.4.0-clang++ -std=gnu++11 -I"/opt/anaconda3/envs/pirate/lib/R/include" -DNDEBUG -I'/opt/anaconda3/envs/pirate/lib/R/library/Rcpp/include' -I'/opt/anaconda3/envs/pirate/lib/R/library/RcppProgress/include' -D_FORTIFY_SOURCE=2 -isystem /opt/anaconda3/envs/pirate/include -mmacosx-version-min=10.9 -I/opt/anaconda3/envs/pirate/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /opt/anaconda3/envs/pirate/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/r-base-split_1630154249442/work=/usr/local/src/conda/r-base-4.1.1 -fdebug-prefix-map=/opt/anaconda3/envs/pirate=/usr/local/src/conda-prefix -Wall -pedant
I have also looked around on the Conda-forge channel to see if I could just conda install -c conda-forge r-MatchIt
but no luck either.