Closed Guillaume-Lombardo closed 5 years ago
What's the output of
ver
in a CMD window?
Microsoft Windows [version 6.1.7601]
Hopefully c05d664f7a85387b29d75d9cd32eefc17212afdd fixed this, can you try to install from GitHub again? Thanks.
fixed ! I'm so impressed you fixed it so fast !!!
thank you very much !
Haha, no problem, we just got lucky...
the regex pattern doesn't work in in brazilian portuguese. cmd /c ver
output is Microsoft Windows [versão 10.0.18362.207]
edit:
i solved by creating a file getwinver.cmd
, the 4th token is the major version and 5th is minor. The value is in exit code (that's weird, but that's what R captures)
@echo off
for /f "tokens=%1 delims=[. " %%g in ('ver') do (
exit /b %%g
)
then in configure
MAJOR=`$RBIN --vanilla --slave -e "cat(system('cmd /c getwinver.cmd 4'))"`
MINOR=`$RBIN --vanilla --slave -e "cat(system('cmd /c getwinver.cmd 5'))"`
creating another file isn't good, but i couldn't escape de quotes inside R's system()... Anyway, this sets the $WINVER fine
@guihigashi Thanks. I'll try to find a better way to get the version.
@guihigashi I added a new commit that hopefully fixes this, and works on all Windows versions.
Hello,
I'm not really into computing or a dev guy, but I would like to install "devtools" package, in order to install other packages hosted on github, and since I try to install it, I encounter some issues especially when it deals with some dependencies such as "ps" package.
My Rstudio version is 1.2.1335 and my Rtools version is 3.5.0.4
Here is my "error message" when I type
install.packages("ps")
* installing *source* package 'ps' ...
** package 'ps' correctement décompressé et sommes MD5 vérifiées
Erreur : '*' inattendu(e) in "cat(sprintf('0x0%s', *"
Exécution arrêtée
** libs
*** arch - i386
C:/Program Files/Rtools/mingw_32/bin/gcc -O3 -Wall -std=gnu99 -mtune=core2 -Wall px.c -o px
make: C:/Program: Command not found
make: *** [Makevars:11: px] Error 127
Warning: l'exécution de la commande 'make -f "Makevars" -f "C:/PROGRA~1/R/R-33~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-33~1.2/share/make/winshlib.mk" SHLIB="ps.dll" ' renvoie un statut 2
ERROR: compilation failed for package 'ps'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/ps'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/ps_1.3.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘ps’ had non-zero exit status
* installing *source* package 'pkgbuild' ...
** package 'pkgbuild' correctement décompressé et sommes MD5 vérifiées
** R
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'callr' 2.0.3 is being loaded, but >= 3.2.0 is required
ERROR: lazy loading failed for package 'pkgbuild'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/pkgbuild'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/pkgbuild_1.0.5.tar.gz' had status 1
Warning in install.packages :
installation of package ‘pkgbuild’ had non-zero exit status
ERROR: dependency 'pkgbuild' is not available for package 'pkgload'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/pkgload'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/pkgload_1.0.2.tar.gz' had status 1
Warning in install.packages :
installation of package ‘pkgload’ had non-zero exit status
ERROR: dependency 'pkgbuild' is not available for package 'rcmdcheck'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/rcmdcheck'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/rcmdcheck_1.3.3.tar.gz' had status 1
Warning in install.packages :
installation of package ‘rcmdcheck’ had non-zero exit status
ERROR: dependencies 'pkgbuild', 'pkgload', 'rcmdcheck' are not available for package 'devtools'
* removing 'C:/Users/timot/Documents/R/win-library/3.3/devtools'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\timot\Documents\R\win-library\3.3" C:\Users\timot\AppData\Local\Temp\RtmpErXP2K/downloaded_packages/devtools_2.1.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘devtools’ had non-zero exit status
It seems to me my issue is close to Guillaume Lomba issue, I would really appreciate your help
Hello,
I'm trying to install
ps (1.3.0)
on a Windows 7 x64 (build 7601) Service Pack 1 computer with R version 3.3.0 (2016-05-03) and Rtools version 3.4.0.1964 (Platform: x86_64-w64-mingw32/x64 (64-bit)).I cannot change this because of company Policy.
When I run
install.packages('ps')
, I get the following error (complete output below) :translated :
I tried installing from github with
devtools::install_github('r-lib/ps')
but I've the same result.My
sessionInfo()
are :The complete log of install is :