[gdal-dev] Building GDAL on Ubuntu 22.04
Eric Knudstrup
eric at knudstrup.org
Fri Jul 12 01:12:47 PDT 2024
On 7/6/24 12:59 AM, Even Rouault wrote:
> Hi,
>
> when using CLang, GDAL forces the use of libstdc++ for linking, so
> seeing "cannot find -lstdc++", I suspect you might lack the
> installation of libstdc++-11-dev package
>
When I tried to install that package I got:
~# apt-get install libstdc++-11-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libstdc++-11-dev : Depends: gcc-11-base (= 11.4.0-1ubuntu1~22.04) but
11.4.0-2ubuntu1~18.04 is to be installed
Depends: libgcc-11-dev (= 11.4.0-1ubuntu1~22.04)
but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I have upgraded this system twice, so there were several old packages.
After I removed gcc-11-base and retried that command it worked,
reinstalling the gcc packages. It made it through the configuration and
is now chewing through the build.
Thanks!
Eric
More information about the gdal-dev
mailing list