Hi,
I have installed DBI a few month ago to connect to a Oracle-database. Today a colleague of me got RStudio on his computer and tried to install DBI, too. He received an error that blob need r version 3.5 or 3.6, but we have 3.4. We find out that on my computer blob version 1.1.1 is installed and now the reference is set to version 1.2.0 of blob. Therefore we downloaded blob version 1.1.1 from CRAN, but when we want to install it, we receive the message
installation of package ‘blob’ had non-zero exit status
How can we install blob 1.1.1 to run the DBI package?
To figure out what’s going wrong, we’ll need some more information. Here are the two things that are most helpful to provide when asking questions about package installation problems:
All the console output you see when you try to install the package
The output of running sessionInfo()
Here is how you should provide that information:
In a new post on a blank line, click the little </> button at the top of the posting box. This will insert a small template with the words “type or paste code here” selected.
Copy the output from the console (no screenshots please!)
Paste the output here, replacing the “type or paste code here” line in the template,
Following these steps makes it easier for helpers to read what you post and keeps the forum software from garbling it.
We need to see all the console output from install.packages() because usually the part that's informative is buried in the middle somewhere. The last and most obvious bits (installation of package had non-zero exit status) are unfortunately just R's way of saying "something went wrong!" without indicating what exactly it was.
please find below the sessioninfo and the complete error message
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server >= 2012 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0
When we now try to install DBI we receive the following message. I am sure, that there was another error mentioning blob last week, when we installed the first time
> install.packages('DBI')
Warning in install.packages :
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found'
Installing package into ‘H:/My Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
Warning in install.packages :
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/DBI_1.0.0.zip'
Content type 'application/zip' length 829191 bytes (809 KB)
downloaded 809 KB
package ‘DBI’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Berterma\AppData\Local\Temp\RtmpgngY8J\downloaded_packages
Error in readRDS(pfile) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
When we separately try to install blob:
> install.packages('blob')
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
Installing package into ‘H:/My Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
also installing the dependencies ‘ellipsis’, ‘rlang’, ‘vctrs’
There are binary versions available but the source versions are later:
binary source needs_compilation
ellipsis 0.1.0 0.3.0 TRUE
rlang 0.3.4 0.4.0 TRUE
vctrs 0.1.0 0.2.0 TRUE
blob 1.1.1 1.2.0 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/ellipsis_0.1.0.zip'
Content type 'application/zip' length 30847 bytes (30 KB)
downloaded 30 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/vctrs_0.1.0.zip'
Content type 'application/zip' length 499748 bytes (488 KB)
downloaded 488 KB
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Berterma\AppData\Local\Temp\RtmpgngY8J\downloaded_packages
installing the source package ‘blob’
trying URL 'https://cran.rstudio.com/src/contrib/blob_1.2.0.tar.gz'
Content type 'application/x-gzip' length 9355 bytes
downloaded 9355 bytes
Warning in install.packages :
running command '"C:/PROGRA~1/R/bin/x64/R" CMD INSTALL -l "H:\My Documents\R\win-library\3.4" C:\Users\Berterma\AppData\Local\Temp\RtmpgngY8J/downloaded_packages/blob_1.2.0.tar.gz' had status 65535
Warning in install.packages :
installation of package ‘blob’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Berterma\AppData\Local\Temp\RtmpgngY8J\downloaded_packages’
Error in readRDS(pfile) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
As blob 1.2.0 need r 3.5 or later we also tried to install blob 1.1.1 manually
> install.packages("//de.kb.int/mf/homes/berterma/My Documents/blob_1.1.1.tar.gz", repos = NULL, type = "source")
Installing package into ‘H:/My Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
running command '"C:/PROGRA~1/R/bin/x64/R" CMD INSTALL -l "H:\My Documents\R\win-library\3.4" "//de.kb.int/mf/homes/berterma/My Documents/blob_1.1.1.tar.gz"' had status 65535
Warning in install.packages :
installation of package ‘//de.kb.int/mf/homes/username/My Documents/blob_1.1.1.tar.gz’ had non-zero exit status
Error in readRDS(pfile) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer