Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init() fails under Windows due dependency build failures #552

Closed
IanWorthington opened this issue Oct 8, 2020 · 1 comment
Closed

init() fails under Windows due dependency build failures #552

IanWorthington opened this issue Oct 8, 2020 · 1 comment

Comments

@IanWorthington
Copy link

Windows cannot build the latest versions of three dependencies, causing the init() to fail:

`

renv::init()

Welcome to renv!
.
.
.

  • Resolving missing dependencies ...
    .
    .
    .
    The following package(s) were not installed successfully:

    [stringi]: install of package 'stringi' failed
    [ps]: install of package 'ps' failed
    [rlang]: install of package 'rlang' failed

You may need to manually download and install these packages.
...

install.packages("stringi")
Retrieving 'https://cran.rstudio.com/src/contrib/stringi_1.5.3.tar.gz' ...
OK [file is up to date]
Installing stringi [1.5.3] ...
FAILED
Error installing package 'stringi':
===================================

  • installing source package 'stringi' ...
    ** package 'stringi' successfully unpacked and MD5 sums checked
    ** using staged installation
    Warning in system("sh ./configure.win") : 'sh' not found
    ERROR: configuration failed for package 'stringi'
  • removing 'C:/Users/IanWo/My Code Projects/R Studio Projects/test1/renv/staging/1/stringi'
    Error: install of package 'stringi' failed

install.packages("ps")
Retrieving 'https://cran.rstudio.com/src/contrib/ps_1.4.0.tar.gz' ...
OK [file is up to date]
Installing ps [1.4.0] ...
FAILED
Error installing package 'ps':
==============================

  • installing source package 'ps' ...
    ** package 'ps' successfully unpacked and MD5 sums checked
    ** using staged installation
    Warning in system("sh ./configure.win") : 'sh' not found
    ERROR: configuration failed for package 'ps'
  • removing 'C:/Users/IanWo/My Code Projects/R Studio Projects/test1/renv/staging/1/ps'
    Error: install of package 'ps' failed

install.packages("rlang")
Retrieving 'https://cran.rstudio.com/src/contrib/rlang_0.4.8.tar.gz' ...
OK [file is up to date]
Installing rlang [0.4.8] ...
FAILED
Error installing package 'rlang':
=================================

  • installing source package 'rlang' ...
    ** package 'rlang' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    Warning in system(paste(cmd, "shlib-clean")) : 'make' not found
    Warning in system(cmd) : 'make' not found
    ERROR: compilation failed for package 'rlang'
  • removing 'C:/Users/IanWo/My Code Projects/R Studio Projects/test1/renv/staging/1/rlang'
    Error: install of package 'rlang' failed

install.packages("stringi", type="win.binary")
Installing package into ‘C:/Users/IanWo/My Code Projects/R Studio Projects/test1/renv/library/R-3.6/x86_64-w64-mingw32’
(as ‘lib’ is unspecified)

There is a binary version available (and will be installed) but the source
version is later:
binary source
stringi 1.4.6 1.5.3

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/stringi_1.4.6.zip'
Content type 'application/zip' length 15310634 bytes (14.6 MB)
downloaded 14.6 MB

package ‘stringi’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\IanWo\AppData\Local\Temp\RtmpO2sGLM\downloaded_packages

install.packages("ps", type="win.binary")
Installing package into ‘C:/Users/IanWo/My Code Projects/R Studio Projects/test1/renv/library/R-3.6/x86_64-w64-mingw32’
(as ‘lib’ is unspecified)

There is a binary version available (and will be installed) but the source
version is later:
binary source
ps 1.3.4 1.4.0

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ps_1.3.4.zip'
Content type 'application/zip' length 333064 bytes (325 KB)
downloaded 325 KB

package ‘ps’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\IanWo\AppData\Local\Temp\RtmpO2sGLM\downloaded_packages

install.packages("rlang", type="win.binary")
Installing package into ‘C:/Users/IanWo/My Code Projects/R Studio Projects/test1/renv/library/R-3.6/x86_64-w64-mingw32’
(as ‘lib’ is unspecified)

There is a binary version available (and will be installed) but the source
version is later:
binary source
rlang 0.4.7 0.4.8

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rlang_0.4.7.zip'
Content type 'application/zip' length 1145749 bytes (1.1 MB)
downloaded 1.1 MB

package ‘rlang’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\IanWo\AppData\Local\Temp\RtmpO2sGLM\downloaded_packages
`

@kevinushey
Copy link
Collaborator

Thanks for the bug report! This should now be fixed in the development version of renv.

In the meantime, you can set:

options(install.packages.compile.from.source = FALSE)

to disable attempts to install sources where compilation is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants