GDAL/OGR broken or incomplete for other programs (OTB 7.1.0)
I installed OTB 7.1.0 from the Linux64.run and added the appropriate path to my .profile (as I always did with previous versions, which worked just fine). Thereafter, other programs were no longer able to access gdal correctly.
As an example, when I tried to install the "sf" package in R, I was getting errors like:
ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. checking PROJ: epsg found and readable... no
And after setting GDAL_DATA:
Error: proj/epsg not foundEither install missing proj support files, for examplethe proj-nad and proj-epsg RPMs on systems using RPMs,or if installed but not autodetected, set PROJ_LIB to thecorrect path, and if need be use the --with-proj-share=configure argument.
It seems gdal distributed in OTB 7.1.0 was incomplete.
Downgrading to 7.0.0 from the archives solved the issue for me.
System info:
$ uname -r
5.3.0-59-generic