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

Error during installation - fails to install bsts #57

Open
brieh opened this issue Jan 27, 2022 · 4 comments
Open

Error during installation - fails to install bsts #57

brieh opened this issue Jan 27, 2022 · 4 comments

Comments

@brieh
Copy link

brieh commented Jan 27, 2022

Hi there,

I'm installing Causal Impact in R for the first time.

Installation fails because installation of bsts fails:

* installing *source* package 'bsts' ...
** package 'bsts' successfully unpacked and MD5 sums checked
** using staged installation
** libs

*** arch - i386
C:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -I`C:/PROGRA~1/R/R-36~1.1/bin/Rscript -e "cat(system.file(package='Boom'))"`/include -DADD_ -DR_NO_REMAP -DRLANGUAGE -I"C:/Program Files/R/R-3.6.1/library/Boom/include"        -O2 -Wall  -mtune=generic -c aggregate_time_series.cc -o aggregate_time_series.o
g++.exe: error: Files/R/R-3.6.1/library/Boom/include: No such file or directory
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:213: aggregate_time_series.o] Error 1
ERROR: compilation failed for package 'bsts'
* removing 'C:/Program Files/R/R-3.6.1/library/bsts'

It says "No such file or directory" for C:/Program Files/R/R-3.6.1/library/Boom/include (or does it?) but this folder exists and has plenty of stuff in it.

Here is my sessionInfo():

R version 3.6.1 (2019-07-05)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=English_Canada.1252  LC_CTYPE=English_Canada.1252    LC_MONETARY=English_Canada.1252 LC_NUMERIC=C                    LC_TIME=English_Canada.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] hash_2.2.6.1  ROracle_1.3-1 DBI_1.1.1    

loaded via a namespace (and not attached):
[1] compiler_3.6.1 tools_3.6.1 

Any suggestions would be greatly appreciated.

@steve-the-bayesian
Copy link

steve-the-bayesian commented Jan 27, 2022 via email

@brieh
Copy link
Author

brieh commented Jan 27, 2022

Sorry should've included this part in the original post. This is what I get and I'm asked if I want to install from sources:

> install.packages("bsts")

  There is a binary version available but the source version is later:
     binary source needs_compilation
bsts  0.9.6  0.9.7              TRUE

installing the source package ‘bsts’

trying URL 'https://cran.rstudio.com/src/contrib/bsts_0.9.7.tar.gz'
Content type 'application/x-gzip' length 298345 bytes (291 KB)
downloaded 291 KB

'\\MYHOMEDIR\ONMY\WORKCOMPUTER$'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
* installing *source* package 'bsts' ...
** package 'bsts' successfully unpacked and MD5 sums checked
** using staged installation
** libs

*** arch - i386
C:/Rtools/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -I`C:/PROGRA~1/R/R-36~1.1/bin/Rscript -e "cat(system.file(package='Boom'))"`/include -DADD_ -DR_NO_REMAP -DRLANGUAGE -I"C:/Program Files/R/R-3.6.1/library/Boom/include"        -O2 -Wall  -mtune=generic -c aggregate_time_series.cc -o aggregate_time_series.o
g++.exe: error: Files/R/R-3.6.1/library/Boom/include: No such file or directory
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:213: aggregate_time_series.o] Error 1
ERROR: compilation failed for package 'bsts'
* removing 'C:/Program Files/R/R-3.6.1/library/bsts'
Warning in install.packages :
  installation of package ‘bsts’ had non-zero exit status

@brieh
Copy link
Author

brieh commented Jan 27, 2022

Okay, answering "No" to the question of whether I want to install from sources caused it to install with no problem. Consider this closed. Thank you for your time.

@steve-the-bayesian
Copy link

steve-the-bayesian commented Jan 27, 2022 via email

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