Spencer Graves
2020-Apr-30 04:37 UTC
[Rd] "not a valid win32 application" with rtools40-x86_65.exe on Windows 10
Hello, All: ????? "00install.out" from "R CMD check Ecfun_0.2-4.tar.gz" includes: Error:? package or namespace load failed for 'Ecfun': ?.onLoad failed in loadNamespace() for 'rJava', details ? call: inDL(x, as.logical(local), as.logical(now), ...) ? error:? unable to load shared object 'c:/Program Files/R/R-4.0.0/library/rJava/libs/i386/rJava.dll': ? LoadLibrary failure: ^1 is not a valid win32 application ????? This was after installing R 4.0.0 and "rtools40-x86_64.exe" under Windows 10 Pro 64-bit. ????? Suggestions? ????? Thanks, ????? Spencer Graves sessionInfo() R version 4.0.0 (2020-04-24) Platform: x86_64-64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18362) Matrix products: default locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CCTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] 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_4.0.0
Simon Urbanek
2020-Apr-30 05:28 UTC
[Rd] "not a valid win32 application" with rtools40-x86_65.exe on Windows 10
Are you missing the 32-bit Java JDK? Cheers, S> On 30/04/2020, at 4:37 PM, Spencer Graves <spencer.graves at prodsyse.com> wrote: > > Hello, All: > > > "00install.out" from "R CMD check Ecfun_0.2-4.tar.gz" includes: > > > Error: package or namespace load failed for 'Ecfun': > .onLoad failed in loadNamespace() for 'rJava', details > call: inDL(x, as.logical(local), as.logical(now), ...) > error: unable to load shared object 'c:/Program Files/R/R-4.0.0/library/rJava/libs/i386/rJava.dll': > LoadLibrary failure: ^1 is not a valid win32 application > > > This was after installing R 4.0.0 and "rtools40-x86_64.exe" under Windows 10 Pro 64-bit. > > > Suggestions? > Thanks, > Spencer Graves > > > sessionInfo() > R version 4.0.0 (2020-04-24) > Platform: x86_64-64-mingw32/x64 (64-bit) > Running under: Windows 10 x64 (build 18362) > > Matrix products: default > > locale: > [1] LC_COLLATE=English_United States.1252 > [2] LC_CCTYPE=English_United States.1252 > [3] LC_MONETARY=English_United States.1252 > [4] 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_4.0.0 > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
Jeroen Ooms
2020-Apr-30 08:15 UTC
[Rd] "not a valid win32 application" with rtools40-x86_65.exe on Windows 10
On Thu, Apr 30, 2020 at 6:38 AM Spencer Graves <spencer.graves at prodsyse.com> wrote:> > Hello, All: > > > "00install.out" from "R CMD check Ecfun_0.2-4.tar.gz" includes: > > > Error: package or namespace load failed for 'Ecfun': > .onLoad failed in loadNamespace() for 'rJava', details > call: inDL(x, as.logical(local), as.logical(now), ...) > error: unable to load shared object 'c:/Program > Files/R/R-4.0.0/library/rJava/libs/i386/rJava.dll': > LoadLibrary failure: ^1 is not a valid win32 application >This is an error in loading the rJava package, so it is not related to rtools40, and probably inappropriate for this mailing list. As Simon suggested, you may have to install the 32-bit Java JDK. See also this faq: https://github.com/r-windows/docs/blob/master/faq.md#how-to-install-rjava-on-windows
Spencer Graves
2020-May-01 04:51 UTC
[Rd] "not a valid win32 application" with rtools40-x86_65.exe on Windows 10
Hi, Jeroen et al.: On 2020-04-30 03:15, Jeroen Ooms wrote:> On Thu, Apr 30, 2020 at 6:38 AM Spencer Graves > <spencer.graves at prodsyse.com> wrote: >> Hello, All: >> >> >> "00install.out" from "R CMD check Ecfun_0.2-4.tar.gz" includes: >> >> >> Error: package or namespace load failed for 'Ecfun': >> .onLoad failed in loadNamespace() for 'rJava', details >> call: inDL(x, as.logical(local), as.logical(now), ...) >> error: unable to load shared object 'c:/Program >> Files/R/R-4.0.0/library/rJava/libs/i386/rJava.dll': >> LoadLibrary failure: ^1 is not a valid win32 application >> > This is an error in loading the rJava package, so it is not related to > rtools40, and probably inappropriate for this mailing list. > > As Simon suggested, you may have to install the 32-bit Java JDK. See > also this faq: https://github.com/r-windows/docs/blob/master/faq.md#how-to-install-rjava-on-windows????? In fact I had both 32- and 64-bit Java installed but only the 64-bit was in the path.? I added the 32-bit, but that did not fix the problem.? The last 2.5 lines in the section "How to install rJava on Windows?" to which you referred me reads: to build rJava from source, you need the --merge-multiarch flag: install.packages('rJava', type = 'source', INSTALL_opts='--merge-multiarch') ????? When I tried that, I got: Warning in system("sh ./configure.win") : 'sh' not found *** ON THE OTHER HAND:? The error message above says 'c:/Program Files/R/R-4.0.0/library/rJava/libs/i386/rJava.dll': ?? LoadLibrary failure: ^1 is not a valid win32 application >>>> Is "rJava.dll" a valid win32 application? ????? Suggestions? ????? Thanks, ????? Spencer Graves p.s.? A similar problem with rJava a month ago was fixed by installed 64-bit Java.? Now with the upgrade to R 4.0.0 and rtools40, this no longer works.