[CRAN Binary Availability

  • Package: terra
  • Version: 1.9-27
  • R version: 4.4.1
  • Distribution: manylinux_2_28
  • Architecture: x86_64
  • Issue: GDAL system dependency incompatibility on RHEL 8.10
2 Likes

Hey @said.irnatene, thanks for the report. We're aware of terra not building on manylinux, and it's due to issues in the terra package that have already been fixed in the development version (see mdim AsClassicDataset compilation issues w/ GDAL 3.4.1 · Issue #2109 · rspatial/terra · GitHub, Compilation error for 1.9-34 under Ubuntu 20.04 · Issue #2111 · rspatial/terra · GitHub).

We're just watching out for a new terra release on CRAN now. Once terra publishes, this will all be fixed. If it does take too long though, we have a backup plan to patch over it in the meantime. But for now, we're just hoping for a quick CRAN release.

1 Like

Thanks for providing the environment details. With terra 1.9-27 on R 4.4.1 and RHEL 8.10, this looks like a system-level GDAL compatibility issue rather than an R package problem.

I’d first check the installed GDAL version and its development libraries (gdal, gdal-devel, and related dependencies). RHEL 8.10 may provide an older GDAL than the version expected by the terra build.

If possible, try installing terra against a compatible GDAL stack or use a newer compatible system/module environment. Checking the exact GDAL version and the error from configure or package installation would help narrow down the issue.

@said.irnatene We have terra built for manylinux now. Instead of waiting for a terra CRAN release, we just decided to upgrade the GDAL + GIS stack used to build the manylinux packages, as @emmawalter45 said, which incidentally works around the terra issue.