Griera
2022-May-13 09:13 UTC
[R-sig-Debian] Problem with gdal-config when installing the "chronosphere" package
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.
Ivan Krylov
2022-May-13 09:23 UTC
[R-sig-Debian] Problem with gdal-config when installing the "chronosphere" package
Hi, On Fri, 13 May 2022 11:13:40 +0200 Griera <griera at yandex.com> wrote:> 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.That would be in the libgdal-dev package: https://packages.debian.org/search?suite=bullseye§ion=all&arch=any&searchon=contents&keywords=%2Fusr%2Fbin%2Fgdal-config> 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+1You seem to have installed libcharls2 from the backports repository. It should be possible to install the corresponding libcharls2-dev from backports too by passing -t bullseye-backports to APT. -- Best regards, Ivan