[R-sig-Debian] Problem with gdal-config when installing the "chronosphere" package

Griera gr|er@ @end|ng |rom y@ndex@com
Fri May 13 11:13:40 CEST 2022


Hi,

I am trying to install "chronosphere" or "rgdal" package, and I get the
error:

configure: CC: gcc 
configure: CXX: g++ -std=gnu++11 
checking for gdal-config... no no
configure: error: gdal-config not found or not executable.

After a search on the Internet, it is suggested to install:

$ sudo apt-get install libgdal-dev gdal-bin libproj-dev proj-data proj-bin libgeos-dev

but I get:

gdal-bin it's in the most recent version (3.2.2+dfsg-2+deb11u1). 
proj-bin it's in the most recent version (7.2.1-1).

But I get an error with libcharls-dev : Depends on:

libcharls2 (= 2.2.0+dfsg-2)

but it installs:

2.2.1+dfsg-1~bpo11+1

The problem is : "Problems cannot be corrected, you have retained packages that are broken."

But I do:

$ sudo apt --fix-missing update
$ sudo apt update 
$ sudo apt install -f

No problem appears and no error appears.

I use Debian 11 Bulleseye and R version 4.2.0 (2022-04-22) from https://cran.r-project.org/bin/linux/debian.

Any suggestions on how I can avoid the error?

I want to thank you very much.



More information about the R-SIG-Debian mailing list