Open gregorp90 opened 7 years ago
It looks like you are installing from R 64bit. On Windows, the package only installs correctly on under R 32bit. If this still does not work, can you please try installing from github (master and develop if still not working), and report back?
devtools::install_github('renozao/RcppOctave', quick = TRUE)
Thank you for the answer. I will try to install on R 32bit and report back sometime this week.
I've changed to 32bit R and tried installing normally and also from github. It's still not working. I get the following log:
devtools::install_github('renozao/RcppOctave', quick = TRUE) Downloading GitHub repo renozao/RcppOctave@master from URL https://api.github.com/repos/renozao/RcppOctave/zipball/master Installing RcppOctave "C:/Programs/R/R-331.2/bin/i386/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \ "C:/Users/Gregor/AppData/Local/Temp/Rtmpg9serr/devtools20a479af2eee/renozao-RcppOctave-da9d028" \ --library="C:/Users/Gregor/Documents/R/win-library/3.3" --install-tests --no-docs --no-multiarch --no-demo installing source package 'RcppOctave' ... WARNING: this package has a configure script It probably needs manual configuration libs Checking octave-config BINDIR... C:/Octave/Octave3.6.4_gcc4.6.2/bin Checking mkoctfile LFLAGS... -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib Checking mkoctfile OCTAVE_LIBS... -loctinterp -loctave -lcruft Checking mkoctfile CPPFLAGS... -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include Checking mkoctfile INCFLAGS... -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include Checking current Rtools compiler... C:/Rtools/gcc-4.6.3/bin/gcc.exe Checking octave-config [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe Checking Octave version... 3.6.4 Checking Octave compiler... C:/Octave/Octave3.6.4_gcc4.6.2/mingw/bin/gcc.exe Checking Rtools ... C:/Rtools Checking all Rtools compiler(s) [in C:/Rtools]... multiple [4] C:/Rtools/mingw_64/bin/x86_64-w64-mingw32-gcc-4.9.2.exe C:/Rtools/mingw_64/bin/x86_64-w64-mingw32-gcc-4.9.3.exe C:/Rtools/mingw_32/bin/i686-w64-mingw32-gcc-4.9.3.exe C:/Rtools/gcc-4.6.3/bin/gcc.exe Checking Octave compiler version... mingw32-4.6.2 Checking compatible Rtools compiler... gcc.exe [C:/Rtools/gcc-4.6.3/bin] Checking gcc alias... C:/Rtools/gcc-4.6.3/bin/gcc.exe Checking g++ [in C:/Rtools/gcc-4.6.3/bin]... C:/Rtools/gcc-4.6.3/bin/g++.exe cd .. && RTOOLS_COMPILER_NO_LOOKUP=1 . exec/configure-win Loading Windows autoconf-like macros ... OK Auto-configure - Thu Dec 22 17:38:39 CEST 2016 Package RcppOctave - version 0.18.1 Checking R architecture... /i386 Checking R [in C:/Programs/R/R-331.2/bin/i386]... C:/Programs/R/R-3.3.2/bin/i386/R.exe Checking Rscript [in C:/Programs/R/R-331.2/bin/i386]... C:/Programs/R/R-3.3.2/bin/i386/Rscript.exe Checking R version... R version 3.3.2 (2016-10-31) Checking R platform... i386-w64-mingw32 Checking R CC... c:/Rtools/mingw_32/bin/gcc Checking c:/Rtools/mingw_32/bin/gcc... c:/Rtools/mingw_32/bin/gcc.exe Checking c:/Rtools/mingw_32/bin/gcc version... i686-w64-mingw32-4.9.3 Checking R CFLAGS... -O3 Checking R CPPFLAGS... Checking R CXXLAGS... Checking system PATH... C:\Rtools\gcc-4.6.3\bin C:\Programs\R\R-3.3.2\bin\i386 C:\Programs\R\R-3.3.2\bin\i386 C:\Rtools\bin C:\Rtools\gcc-4.6.3\bin C:\Rtools\mingw_64\bin C:\Rtools\mingw_32\bin C:\Rtools\gcc-4.6.3\i686-w64-mingw32\bin C:\Program Files (x86)\Intel\iCLS Client C:\Program Files\Intel\iCLS Client C:\Windows\System32 C:\Windows C:\Windows\System32\wbem C:\Windows\System32\WindowsPowerShell\v1.0 C:\Program Files\Intel\WiFi\bin C:\Program Files\Common Files\Intel\WirelessCommon C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL C:\Program Files\Intel\Intel(R) Management Engine Components\DAL C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT C:\Program Files\Intel\Intel(R) Management Engine Components\IPT C:\Rtools\mingw_64\bin C:\Octave\Octave3.6.4_gcc4.6.2\bin C:\Programs\VS2010\VC\bin C:\Programs\MiKTeX2.9\miktex\bin\x64 C:\mingw64\bin C:\Octave\Octave3.6.4_gcc4.6.2\mingw\mingw64\bin C:\Octave\Octave3.6.4_gcc4.6.2\mingw\mingw64\x86_64-w64-mingw32\bin C:\mingw64\x86_64-w64-mingw32\bin Checking octave-config... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe Checking Octave binary directory... C:/Octave/Octave3.6.4_gcc4.6.2/bin Checking mkoctfile [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/mkoctfile.exe Loading Windows autoconf-like macros for Octave ... Checking Octave path to home directory... Checking mkoctfile home directory... C:/Octave/Octave3.6.4_gcc4.6.2 OK Checking octave [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave.exe Checking current Rtools compiler... c:/Rtools/mingw_32/bin/gcc.exe Checking octave-config [in C:/Octave/Octave3.6.4_gcc4.6.2/bin]... C:/Octave/Octave3.6.4_gcc4.6.2/bin/octave-config.exe Checking Octave version... 3.6.4 Checking Octave compiler... C:/Octave/Octave3.6.4_gcc4.6.2/mingw/bin/gcc.exe Checking Rtools ... c:/Rtools Checking Octave compiler version... mingw32-4.6.2 Checking compatible Rtools compiler... gcc.exe [c:/Rtools/mingw_32/bin] Checking gcc alias... c:/Rtools/mingw_32/bin/gcc.exe Checking g++ [in c:/Rtools/mingw_32/bin]... c:/Rtools/mingw_32/bin/g++.exe Checking RcppOctave system-specific cpp flags... -fmax-errors=10 Checking PATH changes... none Checking Octave module make target... win${R_ARCH} Checking mkoctfile compile command... mkoctfile Checking mkoctfile cpp flags... -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include Checking mkoctfile include flags... -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include Checking mkoctfile -L flags... -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib Checking mkoctfile libraries... -loctinterp -loctave -lcruft Checking mkoctfile C compiler... c:/Rtools/mingw_32/bin/gcc Checking mkoctfile Fortran compiler... gfortran -shared-libgcc Checking Octave platform... i686-pc-mingw32 Checking Octave API version... api-v48+ Checking Octave version... 3.6.4 Checking whether to infer output names for Octave function (Octave >= 3.4.3?)... yes configure: Using Octave LDFLAGS: -LC:/Octave/Octave3.6.4_gcc4.6.2/lib/octave/3.6.4 -LC:/Octave/Octave3.6.4_gcc4.6.2/lib -loctinterp -loctave -lcruft configure: Using Octave CPPFLAGS: -I/c/OctaveB/gplibs/include -I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave/.. -IC:/Octave/Octave3.6.4_gcc4.6.2/include/octave-3.6.4/octave -IC:/Octave/Octave3.6.4_gcc4.6.2/include -DOCT_POST_3_4_0=1 Checking RcppOctave Octave module directory... C:/Users/Gregor/Documents/R/win-library/3.3/RcppOctave/modules config.status: creating R/config-vars.R (31 variables) Error in file(con, "r") : cannot open the connection Calls: readLines -> file In addition: Warning message: In file(con, "r") : cannot open file 'src-i386/Makevars.in': No such file or directory Execution halted Error in file(con, "r") : cannot open the connection Calls: readLines -> file In addition: Warning message: In file(con, "r") : cannot open file 'src-i386/modules/Makefile.in': No such file or directory Execution halted make: [configure] Error 1 Warning: running command 'make -f "Makevars.win" -f "C:/Programs/R/R-331.2/etc/i386/Makeconf" -f "C:/Programs/R/R-331.2/share/make/winshlib.mk" CXX='$(CXX1X) $(CXX1XSTD)' CXXFLAGS='$(CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)' SHLIB="RcppOctave.dll" OBJECTS="conversion.o rcpp_octave.o"' had status 2 ERROR: compilation failed for package 'RcppOctave' removing 'C:/Users/Gregor/Documents/R/win-library/3.3/RcppOctave'
I'm trying to install RcppOctave on Windows 7. I followed the instructions in the README, installed Rtools, extracted the Windows native gcc 4.9.2 toolchain and installed Octave as described on the link. The package does not install. What could be the problem? I get the following log in R: