nawendt / gribr

GRIB interface for R using ECMWF ecCodes
BSD 3-Clause "New" or "Revised" License
24 stars 0 forks source link

Missing directory #18

Closed atom-data closed 3 years ago

atom-data commented 3 years ago

Hello, I have been trying to download package (gribr) and I keep getting this message

"C:/rtools40/mingw64/bin/"gcc -I"C:/Users/x1/d1~1/R/R-40~1.3/include" -DNDEBUG -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c grib_api_version.c -o grib_api_version.o In file included from grib_api_version.c:4: gribr.h:1:10: fatal error: eccodes.h: No such file or directory

leading to a failure in the download. What could be the issue?

nawendt commented 3 years ago

Based on the error output, it looks like you are trying to build the package on Windows. Even using Rtools, there is unfortunately not a way to properly build the eccodes library for use with R and gribr. You can still use the package within a Windows environment, but it would have to be through Cygwin or WSL. Once I, or someone else, figures out how to build eccodes with mingw/Rtools, then running on WIndows will be much easier.

atom-data commented 3 years ago

Thanks for your prompt response

On Tue, 6 Jul 2021 at 17:37, Nathan Wendt @.***> wrote:

Based on the error output, it looks like you are trying to build the package on Windows. Even using Rtools, there is unfortunately not a way to properly build the eccodes library for use with R and gribr. You can still use the package within a Windows environment, but it would have to be through Cygwin or WSL. Once I, or someone else, figures out how to build eccodes with mingw/Rtools, then running on WIndows will be much easier.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nawendt/gribr/issues/18#issuecomment-874817417, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARZ66LMJABGXAG5KPD3MGELTWMIJBANCNFSM4724FHQQ .