Path to the Mono SDK not found by querying the Windows registry
I am on Windows and using .NET 4.5. But the latest version of rClr won't install. What can I do to get around this issue? Thanks a lot!
> library(devtools)
> install_github("jmp75/rClr")
Downloading github repo jmp75/rClr@master
Installing rClr
"C:/R/R-31~1.2/bin/i386/R" --vanilla CMD INSTALL \
"C:\Users\wangg\AppData\Local\Temp\Rtmp6zNO0k\devtools39243ee57ee5\jmp75-rClr-4cb8bf4" \
--library="C:/R/R-3.1.2/library" --install-tests
* installing *source* package 'rClr' ...
error: Path to the Mono SDK not found by querying the Windows registry
Warning: running command 'sh ./configure.win' had status 1
ERROR: configuration failed for package 'rClr'
* removing 'C:/R/R-3.1.2/library/rClr'
* restoring previous 'C:/R/R-3.1.2/library/rClr'
Error: Command failed (1)
I have a similar problem, causing the build to fail. Have you since posting located a solution?
rClr Mono support on Windows is not actively maintained (too little use), but this should not prevent a package build so long as you have .NET 4.0 or above and a microsoft compiler toolchain including C++ and C#, and RTools properly installed.
Just tried on a Windows 7 with R 3.2.2, Microsoft VS Express 2013:
library(devtools)
install_github("jmp75/rClr")
and only get a warning:
warning: Path to the Mono SDK not found by querying the Windows registry. Mono support will be disabled
The build output is quite verbose (I have to change that) but the in the end is completed.
What is you exact error message?
The error I get is:
* installing *source* package 'rClr' ...
warning: Path to the Mono SDK not found by querying the Windows registry. Mono support will be disabled
R_HOME=C:/PROGRA~1/R/R-32~1.2
note: No VS120COMNTOOLS or VS110COMNTOOLS environment variable. Build will be made with gcc, Mono and xbuild
Created ./src/Makevars
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture
Syntax error: "(" unexpected
make: [printarch] Error 2 (ignored)
R_ARCH=/x64
OBJECTS=rClrMono.o
SHLIB_EXT=.dll
CC=gcc -m64
CXX=g++ -m64
**END Variable**
g++ -m64 -std=c++11 -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I"d:/RCompile/r-compiling/local/local320/include" -mms-bitfields -mwindows -I"not found/include/mono-2.0" -I"not found/include/glib-2.0" -I"not found/lib/glib-2.0/include" -D MONO_CLR -D MONO_INST -O2 -Wall -std=gnu99 -mtune=core2 -c rClr.cpp -o rClrMono.o -lsupc++
cc1plus.exe: error: unrecognized command line option '-std=c++11'
cc1plus.exe: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
make: *** [rClrMono.o] Error 1
Warning: running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-32~1.2/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-32~1.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="rClr.dll" WIN=64 TCLBIN=64 ' had status 2
ERROR: compilation failed for package 'rClr'
* removing 'C:/Users/Devlar/Documents/R/win-library/3.2/rClr'
Error: Command failed (1)