首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装qgis python qgis插件时的依赖问题

安装qgis python qgis插件时的依赖问题
EN

Ask Ubuntu用户
提问于 2017-06-15 07:18:25
回答 1查看 2K关注 0票数 1

我在试着安装qgis。

http://www.qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu

所以我跑的时候..。

代码语言:javascript
复制
sudo apt-get install qgis python-qgis qgis-plugin-grass

我发现下面的错误..。

代码语言:javascript
复制
sudo apt-get install qgis python-qgis qgis-plugin-grass
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-qgis is already the newest version.
qgis is already the newest version.
qgis-plugin-grass is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up qgis-providers (1:2.18.9+13jessie) ...
/usr/lib/qgis/crssync: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
dpkg: error processing package qgis-providers (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 1:2.18.9+13jessie); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package qgis (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis-plugin-grass:
 qgis-plugin-grass depends on qgis (= 1:2.18.9+13jessie); however:
  Package qgis is not configured yet.

dpkg: error processing package qgis-plugin-grass (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 qgis-providers
 qgis
 qgis-plugin-grass
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo dpkg -配置-a

sudo apt-获取安装-f

代码语言:javascript
复制
Setting up qgis-providers (1:2.18.9+13jessie) ...
/usr/lib/qgis/crssync: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
dpkg: error processing package qgis-providers (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of qgis:
 qgis depends on qgis-providers (= 1:2.18.9+13jessie); however:
  Package qgis-providers is not configured yet.

dpkg: error processing package qgis (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis-plugin-grass:
 qgis-plugin-grass depends on qgis (= 1:2.18.9+13jessie); however:
  Package qgis is not configured yet.

dpkg: error processing package qgis-plugin-grass (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 qgis-providers
 qgis
 qgis-plugin-grass
EN

回答 1

Ask Ubuntu用户

发布于 2017-06-15 11:32:14

正如错误消息/usr/lib/qgis/crssync: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory中所述,您需要安装libmysqlclient18。

如果您使用的是Ubuntu14.04,那么sudo apt-get install libmysqlclient18

如果您使用的是Ubuntu16.04,那么libmysqlclient18不再可用(由libmysqlclient20代替)。你可以在https://superuser.com/questions/1101426/installing-libmysqlclient18-on-ubuntu-16-04上遵循答案

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/925625

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档