李格达尔

linux-y3pi:~ # rpm -Uvh libgdal1-1.8.0-1.59.src.rpm
warning: libgdal1-1.8.0-1.59.src.rpm: Header V4 RSA/SHA1 Signature, key ID 1abd1afb: NOKEY
   1:libgdal1               ########################################### [100%]
linux-y3pi:~ #

李格达尔发展
linux-y3pi:~ # rpm -Uvh libgdal-devel-1.8.0-1.59.x86_64.rpm
warning: libgdal-devel-1.8.0-1.59.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 1abd1afb: NOKEY
error: Failed dependencies:
     libgdal1 = 1.8.0-1.59 is needed by libgdal-devel-1.8.0-1.59.x86_64

当然libgdal-devel也需要其他依赖项,但是为什么它不能看到libgdal。
linux-y3pi:~ # whereis libgdal
libgdal: /usr/local/lib/libgdal.la /usr/local/lib/libgdal.a /usr/local/lib/libgdal.so

当然,这是不可能的:
linux-y3pi:~ # $PATH
bash: /home/anisha/qtsdk-2010.05/qt/bin/:/home/anisha/qtsdk-2010.05/bin:/home/anisha/qtsdk-2010.05/qt/bin:/home/anisha/qtsdk-2010.05/qt/bin/:/home/anisha/qtsdk-2010.05/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/anisha/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games: No such file or directory

我做了:export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH作为根,没有帮助。
我现在在哪里安装这个libgdal

最佳答案

# rpm -Uvh libgdal1-1.8.0-1.59.src.rpm

“src”表示它是一个源RPM您需要找到二进制RPM,特别是(可能)x86_64RPM。它将有一个类似的名字,除了它会说“x86_64”而不是。

10-01 02:34