gpt4 book ai didi

conda - gdalinfo : error while loading shared libraries: libtiledb. so.2.2:无法打开共享对象文件:没有这样的文件或目录

转载 作者:行者123 更新时间:2023-12-05 01:51:59 26 4
gpt4 key购买 nike

发布更新以包含 ldd 输出请参阅更新:

按照这些步骤全新安装 conda,但遇到问题。我之前在几个 linux 实例和 Macbook pc 上完成了同样的程序,现在在一个新的 chromebook 上测试:

步骤:

从anaconda站点下载conda arm64版本步骤如下:

curl -O https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-aarch64.sh
bash Anaconda3-2021.11-Linux-aarch64.sh
conda create --name gdal
conda activate gdal
conda install -c conda-forge gdal

顺利完成:

(gdal) neavilag@penguin:~/anaconda3/lib$ which gdalinfo
/home/neavilag/anaconda3/envs/gdal/bin/gdalinfo

运行 gdalinfo --version 给出错误:

(gdal) neavilag@penguin:~/anaconda3/lib$ gdalinfo --version
gdalinfo: error while loading shared libraries: libtiledb.so.2.2: cannot open shared object file: No such file or directory

提到的文件在 libs 文件夹或 anaconda3 安装中列出:

(gdal) neavilag@penguin:~/anaconda3/lib$ ls -haltr libtiledb*
-rwxrwxr-x 2 neavilag neavilag 5.0M Jun 25 2021 libtiledb.so.2.2
lrwxrwxrwx 1 neavilag neavilag 16 Apr 17 10:40 libtiledb.so -> libtiledb.so.2.2

Python 似乎已安装并激活了 env,因为我可以检查版本:

(gdal) neavilag@penguin:~/anaconda3/lib$ python --version
Python 3.7.12
(gdal) neavilag@penguin:~/anaconda3/lib$ which python
/home/neavilag/anaconda3/envs/gdal/bin/python

更新:ldd gdalinfo 给出了以下内容,很遗憾 libtiledb.so.2.2 说找不到相同的库:

(gdal) neavilag@penguin:~$ ldd /home/neavilag/anaconda3/envs/gdal/bin/gdalinfo | grep -i "not found"
libtiledb.so.2.2 => not found

注意这里:

(gdal) neavilag@penguin:~$ ldd /home/neavilag/anaconda3/envs/gdal/bin/gdalinfo
linux-vdso.so.1 (0x0000007a4c65e000)
libgdal.so.30 => /home/neavilag/anaconda3/envs/gdal/bin/../lib/libgdal.so.30 (0x0000007a4acac000)
libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007a4ab36000)
/lib/ld-linux-aarch64.so.1 (0x0000007a4c62e000)
libcrypto.so.1.1 => /home/neavilag/anaconda3/envs/gdal/bin/../lib/./libcrypto.so.1.1 (0x0000007a4a858000)
libtiledb.so.2.2 => not found
libpoppler.so.91 => /home/neavilag/anaconda3/envs/gdal/bin/../lib/./libpoppler.so.91 (0x0000007a4a534000)
libjson-c.so.4 => /home/neavilag/anaconda3/envs/gdal/bin/../lib/./libjson-c.so.4 (0x0000007a4a512000)
libfreexl.so.1 => /home/neavilag/anaconda3/envs/gdal/bin/../lib/./libfreexl.so.1 (0x0000007a4a4f7000)
libgeos_c.so.1 => /home/neavilag/anaconda3/envs/gdal/bin/../lib/./libgeos_c.so.1 (0x0000007a4a4a2000)
libwebp.so.7 => /home/neavilag/anaconda3/envs/gdal/bin/../lib/./libwebp.so.7 (0x0000007a4a413000)
libkmlbase.so.1 => /home/neavilag/anaconda3/envs/gdal/bin/../lib/./libkmlbase.so.1 (0x0000007a4a3e4000)
libkmldom.so.1 => /home/neavilag/anaconda3/envs/gdal/bin/../lib/./libkmldom.so.1 (0x0000007a4a32d000)

最佳答案

再次检查所有内容后,根据 ldd,这是唯一“缺失”的库,我对该库进行了“查找”,并在 conda 环境的 envs/gdal/lib 文件夹中找到了它。

使用 ldd 中列出的名称制作了一个副本,这似乎使它起作用,在我看来这不是最优雅的解决方案。

cp /home/neavilag/anaconda3/envs/gdal/lib/libtiledb.so /home/neavilag/anaconda3/envs/gdal/lib/libtiledb.so.2.2

(gdal) neavilag@penguin:~$ gdalinfo --version
GDAL 3.4.1, released 2021/12/27

关于conda - gdalinfo : error while loading shared libraries: libtiledb. so.2.2:无法打开共享对象文件:没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71904252/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com