Error installing package from source in R-3.1.2 - r

I have following error installing RDCOMClient in R-3.1.2 on a Windows machine from source:
Warning: running command 'make -f "Makevars.win" -f "C:/sw/R-3.1.2/etc/i386/Makeconf" -f "C:/sw/R-3.1.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="RDCOMClient.dll" OBJECTS="COMError.o RUtils.o connect.o converters.o"' had status 127
ERROR: compilation failed for package 'RDCOMClient'
Same error happens if I do it via install.package or from the command line.
There is no binary available therefore I have to install it from the source.
Here is the package site:
http://www.omegahat.org/RDCOMClient/
Can somebody help me please? Thank you!

Related

Error installing SP package on Linux Mint 19

I would like to know if anyone has the solution for the following SP package installation error in Linux Mint 19? Here's the error message.
/bin/bash: line 2: g++: command not found
/usr/share/R/share/make/shlib.mk:6: recipe for target 'sp.so' failed
make: *** [sp.so] Error 127
ERROR: compilation failed for package ‘sp’
Thanks, Kaio.
It seems you don’t have the g++ compiler.
Open a terminal window and try
sudo apt-get install g++
The other alternative which includes some common build libraries is
sudo apt-get install build-essencial
Then try to reinstall the R package.

installing ropensci/magick behind a firewall

I'm attempting to use the gganiminate library and I'm having an issue when I call gganimate::gganimate(myplot). The issue appears to be with a dependency library, magick.
When I call the function I get the following warning:
gganimate::gganimate(p)
1: running command 'C:\WINDOWS\system32\cmd.exe /c convert --version' had status 4
2: In find_magic() : ImageMagick not installed yet!
In im.convert(img.files, output = path.expand(movie.name), ... :
Please install ImageMagick first or put its bin path into the system PATH variable
So I try to install magick separately. I'm on a machine at a client so installing packages from github requires me to provide info to get through the firewall. I've installed other libraries from github with this machine using the same technique successfully. However, magick appears to be bumping into other problems. Below is my code and the error:
devtools::install_github("ropensci/magick",httr::set_config(httr::use_proxy("xx.xxx.xx.xx",xxxx)))
Downloading GitHub repo ropensci/magick#master
from URL https://api.github.com/repos/ropensci/magick/zipball/master
Installing magick
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" \
--no-site-file --no-environ --no-save \
--no-restore --quiet CMD INSTALL \
"C:/Users/r631265/AppData/Local/Temp/1/RtmpS0efnQ/devtools18fc5f2414b/ropensci-magick-7925af3" \
--library="C:/Users/r631265/Documents/R/win-library/3.4" \
--install-tests
* installing *source* package 'magick' ...
** libs
*** arch - i386
rm -f RcppExports.o animation.o attributes.o base.o color.o composite.o config.o convolve.o device.o edit.o fonts.o options.o resize.o transformations.o magick.dll
Linking to imagemagagick-6.9.9
"C:/PROGRA~1/R/R-34~1.3/bin/i386/Rscript.exe" "../tools/winlibs.R" 6.9.9
Error in curl::curl_download(sprintf("https://github.com/rwinlib/imagemagick%s/archive/v%s.zip", :
schannel: failed to receive handshake, SSL/TLS connection failed
Calls: <Anonymous> -> .Call
Execution halted
make: *** [winlibs] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-34~1.3/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.3/share/make/winshlib.mk" CXX='$(CXX11) $(CXX11STD)' CXXFLAGS='$(CXX11FLAGS)' CXXPICFLAGS='$(CXX11PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX11LDFLAGS)' SHLIB_LD='$(SHLIB_CXX11LD)' SHLIB="magick.dll" OBJECTS="RcppExports.o animation.o attributes.o base.o color.o composite.o config.o convolve.o device.o edit.o fonts.o options.o resize.o transformations.o"' had status 2
ERROR: compilation failed for package 'magick'
* removing 'C:/Users/r631265/Documents/R/win-library/3.4/magick'
In R CMD INSTALL
Installation failed: Command failed (1)
I think perhaps my firewall details aren't getting passed into: curl::curl_download(sprintf("https://github.com/rwinlib/imagemagick%s/archive/v%s.zip",...)
Network security is a bit of a black box to me so I'm not sure what else to try or if I'm diagnosing the issue correctly. Any help would be greatly appreciated!

Fail to install Xgboost in R (Windows)

I have installed RTool34 in R and checked with Sys.getenv('PATH').
R version: 3.3.3
For some reasons, I had to install Xgboost 0.4-x on my computer (Windows).
I'm using devtools to install.
Error Message I got:
make: *** [xgboost_R.o] Error 1 Warning: running command 'make -f
"Makevars.win" -f "C:/PROGRA~1/R/R-33~1.3/etc/i386/Makeconf" -f
"C:/PROGRA~1/R/R-33~1.3/share/make/winshlib.mk"
SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)'
SHLIB="xgboost.dll" ' had status 2
ERROR: compilation failed for package 'xgboost'
Can you check your c++ compiler version as well? you would need greater than 4.8 to install the latest version of it. I am not sure if you meant you are not able to install xgboost version 0.4 itself.

can't compile beta version of igraph from github

I use DevTools tools to install
install_github("igraph/rigraph")
I can install "gaborcsardi/pkgconfig" just fine, which is also required. But "igraph/rigraph" doesn't work. I need it because I'm using an experimental package that requires this version of igraph. I get the following error:
compilation terminated.
make: *** [foreign-graphml.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-33~1.1/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-33~1.1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="igraph.dll" SHLIB_LIBADD='$(FLIBS)' WIN=64 TCLBIN=64 ' havde status 2
ERROR: compilation failed for package 'igraph'
* removing 'C:/Users/emil/Documents/R/win-library/3.3/igraph'
Error: Command failed (1)
NOTE! the line "Warning: running command" in the code is translated by myself, since this was in my OS language which is danish. I think it is an accurate translation, but the wording might be slightly different.
I'm on a 64-bit Windows. I also have Lubuntu 16.04 installed on the same machine, and there I don't have any problems with the install. I need to use the package on a windows machine, unfortunately. RTools 3.3 is installed.
I also filed this at the github page:
https://github.com/igraph/rigraph/issues/165

Unable to install gmum.r package

I'am not able to install the R package gmum.r. It says compilation failed. I have installed all supporting packages.
/bin/bash: g++: command not found
make: *** [svm/libsvm_runner.o] Error 127
ERROR: compilation failed for package ‘gmum.r’
* removing ‘/home/XXX/R/x86_64-pc-linux-gnu-library/3.2/gmum.r’
It got worked using the following command,
sudo apt-get install r-base-dev
Errors fixed !

Resources