在按照此处描述的步骤安装OGR2OGR之后
当我运行ogr2ogr或ogrinfo时,我会收到以下错误消息
free():无效的指针
执行命令后无效指针。有什么建议要清洁吗?
ogrinfo- version
GDAL 3.3.2,发行2021/09/01
Free():无效指针
中止(核心倾倒)
- 编辑 -
我可能在这里找到了某种提示。
mail-archive.com/< a href =“/cdn-cgi/l/email-pretection“ class =” __ cf_email__ __ clate-c.email__' Proj
摘录:
因此,您的GDAL正在针对2个Proj版本libproj.so.15和libproj.so.19链接。确保您的libspatialite和libgeotiff版本来自ubuntugis ppa,因此它们链接了libproj.so.so.19和no .so.15
现在我需要找到一种方法来删除一个库,而不会破坏我的操作系统...
After installing ogr2ogr following the steps described here
https://mothergeo-py.readthedocs.io/en/latest/development/how-to/gdal-ubuntu-pkg.html
When I run either ogr2ogr or ogrinfo, I get the following error message
free(): invalid pointer
AFTER the execution of the command. Any advice to clean that?
ogrinfo --version
GDAL 3.3.2, released 2021/09/01
free(): invalid pointer
Aborted (core dumped)
-- Edit --
I may have found some kind of tip here.
mail-archive.com/[email protected]/msg36151.htmllibproj
Excerpt :
so your GDAL is linking against 2 PROJ versions libproj.so.15 and libproj.so.19. Make sure your libspatialite and libgeotiff versions are from the ubuntugis PPA, so they link gainst libproj.so.19 and no .so.15
Now I need to find a way to remove one library, without breaking my os...
发布评论
评论(2)
链接到2个proj版本libproj.so.15和libproj.so.so.19有一个
错误
There's a bug regarding linking against 2 PROJ versions libproj.so.15 and libproj.so.19
For Debian/Ubuntu, you can do to remedy it
我有Ubuntu 20.04.6 LTS(WSL2)。
同样的问题。
挑战是找到与您的GDAL和PDAL一起使用的合适的Libproj版本。我尝试了许多不同的变体。这是我自己的软件包,最终消除了错误消息。
proj build from源,从构建中安装的proj。
如何在Ubuntu建造:
https://neaccsu.net/posts/proj_install/proj_install/
然后测试
是否
获取免费():无效的指针
流产
然后需要修复libproj软链接。
之后WAU。只花了几个小时。同样不错的结果 pdal - version 和 gdalinfo -version
I have Ubuntu 20.04.6 LTS (WSL2).
Same problem.
The challenge is finding the right libproj version that works with your both Gdal and Pdal. I tried many different variations. Here is my own package that ultimately eliminated the error message.
PROJ build from source, PROJ installed from build.
How to build in Ubuntu:
https://neacsu.net/posts/proj_install/
Then test
If
get free(): invalid pointer
Aborted
then need fix the libproj soft links.
And after all this ogrinfo --version no ERROR. Wau. It took only some hours. Also nice result pdal --version and gdalinfo --version