[R-SIG-Mac] Issues with rj (requirement for StatET) since Mojave/3.5.1 update

Adrian Dușa du@@@@dri@n @ending from unibuc@ro
Mon Nov 26 07:23:47 CET 2018


On Sun, Nov 25, 2018 at 9:48 PM Jonathan Greenberg <jgreenberg using unr.edu>
wrote:
>
> Ok, figured it out but it was non-trivial.  I found the solution here:
>
https://github.com/velocyto-team/velocyto.R/issues/2#issuecomment-352584213
>
> TLDR you need to use homebrew (https://brew.sh/):
> 1) Install homebrew as linked above
> 2) Install llvm (and maybe boost):
> brew install llvm
> brew install boost
> 3) Mod your ~/.R/Makevars (nano ~/.R/Makevars) to read:
>
> CC=/usr/local/clang4/bin/clang
> CXX=/usr/local/clang4/bin/clang++
> CXX11=/usr/local/clang4/bin/clang++
> CXX14=/usr/local/clang4/bin/clang++
> CXX17=/usr/local/clang4/bin/clang++
> CXX1X=/usr/local/clang4/bin/clang++
> LDFLAGS=-L/usr/local/clang4/lib


I've recently installed llvm via homebrew, after an upgrade to Mojave.
However my newly installed clang version is surely not 4 but 7, and it is
not found under /usr/local/.
Instead, I've edited the Makevars file with something like:

CC=/usr/local/Cellar/llvm/7.0.0/bin/clang
CXX=/usr/local/Cellar/llvm/7.0.0/bin/clang++
CXX1X=/usr/local/Cellar/llvm/7.0.0/bin/clang++
LDFLAGS=-L/usr/local/Cellar/llvm/7.0.0/lib
-Wl,-rpath,/usr/local/Cellar/llvm/7.0.0/lib
CXXFLAGS=-I/usr/local/Cellar/llvm/7.0.0/lib/clang/7.0.0/include/

This seems to work for me,
Adrian

--
Adrian Dusa
University of Bucharest
Romanian Social Data Archive
Soseaua Panduri nr. 90-92
050663 Bucharest sector 5
Romania
https://adriandusa.eu

	[[alternative HTML version deleted]]



More information about the R-SIG-Mac mailing list