Closed nikosGeography closed 1 year ago
Dear Nikolaos,
Thanks for letting me know the error. You first mentioned that " you tried to update terra to its latest version“。 If I got it correctly, you meant to say "Rbeast” instead of "terra".
I also assume you are installing fromt the source. In most probability, your Rtools are not appropriately installed. Or the version of Rtools is not compatible with the R version. In the past one year or two, R's team updated the Rtool significantly. Here is the latest version: https://cran.r-project.org/bin/windows/Rtools/rtools43/rtools.html,,
The compilation failed at C:/PROGRA~1/R/R-41~1.1/etc/i386/Makeconf. Notice the "i386" in the path. Basically, you are compiling a 64-bit program with the 32-bit maefile (i.e."i386/Makeconf"), which is bound to give your errors of all sorts. The correct makefile for 64-bit program should be “ C:/PROGRA~1/R/R-41~1.1/etc/x64/Makeconf”.
Not sure how this will help. My first suggestion is to get a latest version of the Rtool. If not working, please let me know and we can discuss about possible solutions.
Best, Kaiguang
On Mon, Jun 26, 2023 at 8:01 AM Nikolaos Tziokas @.***> wrote:
On Windows 10 laptop I tried to update terra to it's latest varsion (v 0.9.9) but I am getting this error:
C:\Users\GEOGRA~1\AppData\Local\Temp\ccLwEwDN.s: Assembler messages: C:\Users\GEOGRA~1\AppData\Local\Temp\ccLwEwDN.s:13: Error: unsupported instruction
movq' C:\Users\GEOGRA~1\AppData\Local\Temp\ccLwEwDN.s:393: Error: unsupported instruction
movq' make: *** [C:/PROGRA~1/R/R-41~1.1/etc/i386/Makeconf:238: abc_pthread.o] Error 1 ERROR: compilation failed for package 'Rbeast'
- removing 'C:/Program Files/R/R-4.1.1/library/Rbeast'
- restoring previous 'C:/Program Files/R/R-4.1.1/library/Rbeast' Warning in install.packages : installation of package ‘Rbeast’ had non-zero exit status
I tried updating the package through RStudio. Currently, I am having the v 0.9.7 installed. I am using RStudio Version 1.4.1717 and R v 4.1.1. Any ideas why this error? The RTools is properly installed on my machine. Ican test this by:
Sys.which('make') make "C:\rtools40\usr\bin\make.exe"
Here is the output of the sessionInfo():
R version 4.1.1 (2021-08-10) 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_4.1.1 cli_3.6.1 tools_4.1.1
— Reply to this email directly, view it on GitHub https://github.com/zhaokg/Rbeast/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF27X34D3Z5CVPZYZVXP3LTXNF23NANCNFSM6AAAAAAZUBZVVI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
--
Kaiguang Zhao, PhD Associate Professor School of Environment and Natural Resources Ohio Agricultural Research and Development Center, The Ohio State University
@.** 330-263-3722 <(330)%20263-3722>* Office
ALso, not sure how you installed the pacakge. But here is what I recommend doing:
unloadNamespace('Rbeast') # if "Rbeast" is loaded into the memory, unload it. It is OK if you get an error detach(package:Rbeast,unload=T) # if "Rbeast" is loaded into the memory, deattach it. It is OK if you get an error remove.packages("Rbeast") # Remove Rbeast from the harddisk
install.packages("Rbeast") # Do not use R CMD INSTALL --build in the Win10 console
I fixed the issue by updating to the latest R
and RTools
version. Then I used the install.packages("Rbeast")
command and I was able to get the latest version. Finally, I made sure that I am using the x64 version (the makefile you mentioned in your comment above).
On Windows 10 laptop I tried to update terra to it's latest varsion (v 0.9.9) but I am getting this error:
I tried updating the package through RStudio. Currently, I am having the v 0.9.7 installed. I am using RStudio Version 1.4.1717 and R v 4.1.1. Any ideas why this error? The
RTools
is properly installed on my machine. Ican test this by:Here is the output of the
sessionInfo()
: