I have the error:
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ?rgdal?
- removing ?/opt/r-packages/rgdal?
Warning in install.packages :
installation of package ?rgdal? had non-zero exit status
Here is the output from sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] magrittr_1.5 shinyWidgets_0.4.8 shiny_1.1.0
[4] raster_2.9-5 sp_1.3-1 leaflet.extras_1.0.0
[7] leaflet_2.0.2
loaded via a namespace (and not attached):
[1] tidyselect_0.2.4 remotes_2.1.0 purrr_0.2.5 lattice_0.20-35
[5] colorspace_1.3-2 testthat_2.1.1 htmltools_0.3.6 usethis_1.5.0
[9] yaml_2.2.0 rlang_0.4.0 pkgbuild_1.0.3 later_0.7.4
[13] pillar_1.3.0 glue_1.3.0 withr_2.1.2 sessioninfo_1.1.1
[17] bindrcpp_0.2.2 bindr_0.1.1 munsell_0.5.0 devtools_2.0.2
[21] htmlwidgets_1.3 codetools_0.2-15 memoise_1.1.0 callr_3.2.0
[25] httpuv_1.4.5 ps_1.3.0 crosstalk_1.0.0 curl_3.2
[29] Rcpp_1.0.1 xtable_1.8-3 promises_1.0.1 scales_1.0.0
[33] backports_1.1.2 desc_1.2.0 pkgload_1.0.2 jsonlite_1.5
[37] mime_0.5 fs_1.3.1 digest_0.6.17 processx_3.3.1
[41] dplyr_0.7.6 grid_3.6.0 rprojroot_1.3-2 cli_1.1.0
[45] tools_3.6.0 tibble_1.4.2 crayon_1.3.4 pkgconfig_2.0.2
[49] prettyunits_1.0.2 assertthat_0.2.0 rstudioapi_0.7 R6_2.2.2
[53] compiler_3.6.0
Any help is appreciated. I am not a linux user.