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

cannot install the package #544

Open
vk111 opened this issue Oct 30, 2022 · 0 comments
Open

cannot install the package #544

vk111 opened this issue Oct 30, 2022 · 0 comments

Comments

@vk111
Copy link

vk111 commented Oct 30, 2022

Hello, could you please take a look?

Expected Behavior

Trying to install the package

Actual Behavior

It is not installed

Steps to Reproduce the Problem

install.packages('openxlsx')
Installing package into ‘C:/Users//Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependency ‘zip’

There are binary versions available but the source versions are later:
binary source needs_compilation
zip 2.0.1 2.2.2 TRUE
openxlsx 4.1.0 4.2.5.1 TRUE

Do you want to install from sources the packages which need compilation?
y/n: y
installing the source packages ‘zip’, ‘openxlsx’

trying URL 'https://cran.rstudio.com/src/contrib/zip_2.2.2.tar.gz'
Content type 'application/x-gzip' length 103404 bytes (100 KB)
downloaded 100 KB

trying URL 'https://cran.rstudio.com/src/contrib/openxlsx_4.2.5.1.tar.gz'
Content type 'application/x-gzip' length 1341046 bytes (1.3 MB)
downloaded 1.3 MB

  • installing source package 'zip' ...
    ** package 'zip' successfully unpacked and MD5 sums checked
    ** libs

*** arch - i386
C:/Rtools/mingw_32/bin/gcc -O3 -Wall -std=gnu99 -mtune=core2 -DCMDZIP miniz.c zip.c winutils.c tools/cmdzip.c
-municode -o tools/cmdzip.exe
C:/Rtools/mingw_32/bin/gcc -O3 -Wall -std=gnu99 -mtune=core2 -DCMDZIP miniz.c zip.c winutils.c tools/cmdunzip.c
-municode -o tools/cmdunzip.exe
"C:/PROGRA1/R/R-341.0/bin/i386/Rscript.exe" "../tools/getzipexe.R"
[1] TRUE
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c init.c -o init.o
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c miniz.c -o miniz.o
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c rzip.c -o rzip.o
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c zip.c -o zip.o
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c winutils.c -o winutils.o
C:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o zip.dll tmp.def init.o miniz.o rzip.o zip.o winutils.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA1/R/R-341.0/bin/i386 -lR
installing via 'install.libs.R' to C:/Users//Documents/R/win-library/3.4/zip

*** arch - x64
C:/Rtools/mingw_64/bin/gcc -O2 -Wall -std=gnu99 -mtune=core2 -DCMDZIP miniz.c zip.c winutils.c tools/cmdzip.c
-municode -o tools/cmdzip.exe
C:/Rtools/mingw_64/bin/gcc -O2 -Wall -std=gnu99 -mtune=core2 -DCMDZIP miniz.c zip.c winutils.c tools/cmdunzip.c
-municode -o tools/cmdunzip.exe
"C:/PROGRA1/R/R-341.0/bin/x64/Rscript.exe" "../tools/getzipexe.R"
[1] TRUE
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -std=gnu99 -mtune=core2 -c init.c -o init.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -std=gnu99 -mtune=core2 -c miniz.c -o miniz.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -std=gnu99 -mtune=core2 -c rzip.c -o rzip.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -std=gnu99 -mtune=core2 -c zip.c -o zip.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -std=gnu99 -mtune=core2 -c winutils.c -o winutils.o
C:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o zip.dll tmp.def init.o miniz.o rzip.o zip.o winutils.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA1/R/R-341.0/bin/x64 -lR
installing via 'install.libs.R' to C:/Users//Documents/R/win-library/3.4/zip
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64

  • DONE (zip)
  • installing source package 'openxlsx' ...
    ** package 'openxlsx' successfully unpacked and MD5 sums checked
    ** libs

*** arch - i386
C:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"C:/Users//Documents/R/win-library/3.4/Rcpp/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c RcppExports.cpp -o RcppExports.o
C:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"C:/Users//Documents/R/win-library/3.4/Rcpp/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c helper_functions.cpp -o helper_functions.o
C:/Rtools/mingw_32/bin/g++ -I"C:/PROGRA1/R/R-341.0/include" -DNDEBUG -I"C:/Users//Documents/R/win-library/3.4/Rcpp/include" -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mtune=core2 -c load_workbook.cpp -o load_workbook.o
load_workbook.cpp: In function 'Rcpp::CharacterVector getChildlessNode(std::string, std::string)':
load_workbook.cpp:925:5: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
auto itr = 0;
^
load_workbook.cpp:925:10: error: 'itr' does not name a type
auto itr = 0;
^
load_workbook.cpp:934:11: error: 'itr' was not declared in this scope
if (itr == 0) begPos = begPos + begTag.length();
^
load_workbook.cpp:945:9: error: 'itr' was not declared in this scope
++itr;
^
make: *** [C:/PROGRA1/R/R-341.0/etc/i386/Makeconf:215: load_workbook.o] Error 1
Warning: running command 'make -f "C:/PROGRA1/R/R-341.0/etc/i386/Makeconf" -f "C:/PROGRA1/R/R-341.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="openxlsx.dll" OBJECTS="RcppExports.o helper_functions.o load_workbook.o read_workbook.o write_data.o write_file.o write_file_2.o"' had status 2
ERROR: compilation failed for package 'openxlsx'

  • removing 'C:/Users//Documents/R/win-library/3.4/openxlsx'
    Warning in install.packages :
    running command '"C:/PROGRA1/R/R-341.0/bin/x64/R" CMD INSTALL -l "C:\Users<UserName>\Documents\R\win-library\3.4" C:\Users<UserName>\AppData\Local\Temp\RtmpywsUjG/downloaded_packages/openxlsx_4.2.5.1.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘openxlsx’ had non-zero exit status

sessionInfo()

  • Version of openxlsx: no
  • Version of R:
    R version 3.4.0 (2017-04-21)
    Platform: x86_64-w64-mingw32/x64 (64-bit)
    Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.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

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

1 participant