ropensci / hunspell

High-Performance Stemmer, Tokenizer, and Spell Checker for R
https://docs.ropensci.org/hunspell
Other
109 stars 44 forks source link

installation failed on Microsoft R Server #18

Closed kevinbsc closed 7 years ago

kevinbsc commented 7 years ago
* installing *source* package ‘hunspell’ ...
** package ‘hunspell’ successfully unpacked and MD5 sums checked
** libs
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c RcppExports.cpp -o RcppExports.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'RcppExports.o' failed
make: [RcppExports.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c check.cpp -o check.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'check.o' failed
make: [check.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c find.cpp -o find.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'find.o' failed
make: [find.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c parsers/textparser.cc -o parsers/textparser.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'parsers/textparser.o' failed
make: [parsers/textparser.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c parsers/latexparser.cc -o parsers/latexparser.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'parsers/latexparser.o' failed
make: [parsers/latexparser.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c parsers/manparser.cc -o parsers/manparser.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'parsers/manparser.o' failed
make: [parsers/manparser.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c parsers/xmlparser.cc -o parsers/xmlparser.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'parsers/xmlparser.o' failed
make: [parsers/xmlparser.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c parsers/htmlparser.cc -o parsers/htmlparser.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'parsers/htmlparser.o' failed
make: [parsers/htmlparser.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/affentry.cc -o hunspell/affentry.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/affentry.o' failed
make: [hunspell/affentry.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/affixmgr.cc -o hunspell/affixmgr.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/affixmgr.o' failed
make: [hunspell/affixmgr.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/filemgr.cc -o hunspell/filemgr.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/filemgr.o' failed
make: [hunspell/filemgr.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/hashmgr.cc -o hunspell/hashmgr.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/hashmgr.o' failed
make: [hunspell/hashmgr.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/hunspell.cc -o hunspell/hunspell.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/hunspell.o' failed
make: [hunspell/hunspell.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/hunzip.cc -o hunspell/hunzip.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/hunzip.o' failed
make: [hunspell/hunzip.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/phonet.cc -o hunspell/phonet.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/phonet.o' failed
make: [hunspell/phonet.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/replist.cc -o hunspell/replist.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/replist.o' failed
make: [hunspell/replist.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/suggestmgr.cc -o hunspell/suggestmgr.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/suggestmgr.o' failed
make: [hunspell/suggestmgr.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I. -Ihunspell -DU_STATIC_IMPLEMENTATION -I"/home/bchae/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"  -DBUILDING_LIBHUNSPELL    -c hunspell/csutil.cc -o hunspell/csutil.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:139: recipe for target 'hunspell/csutil.o' failed
make: [hunspell/csutil.o] Error 127 (ignored)
ar rcs libstathunspell.a parsers/textparser.o parsers/latexparser.o parsers/manparser.o parsers/xmlparser.o parsers/htmlparser.o hunspell/affentry.o hunspell/affixmgr.o hunspell/filemgr.o hunspell/hashmgr.o hunspell/hunspell.o hunspell/hunzip.o hunspell/phonet.o hunspell/replist.o hunspell/suggestmgr.o hunspell/csutil.o
ar: parsers/textparser.o: No such file or directory
Makevars:20: recipe for target 'libstathunspell.a' failed
make: *** [libstathunspell.a] Error 1
ERROR: compilation failed for package ‘hunspell’
jeroen commented 7 years ago

This is a bug in Microsoft R. The I compiler flag is missing a prefix - because it should say:

 -I/usr/lib64/microsoft-r/3.3/lib64/R/include

This has come up before and is unrelated to hunspell. In fact I think it happens for any package with c code? What command exactly did you run?