Ubuntu16.04 - 安装gtk+-3.0和appindicator3-0.1

本文介绍了解决在Ubuntu16.04中安装gtk+-3.0和appindicator3-0.1的问题。通过一条命令即可完成安装,无需重启系统。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天在Ubuntu16.04里面遇到这样的问题:

# pkg-config --cflags gtk+-3.0 appindicator3-0.1
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
Package appindicator3-0.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `appindicator3-0.1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'appindicator3-0.1' found
pkg-config: exit status 1

从上面信息分析,我应该是缺少gtk+-3.0和appindicator3-0.1!!!

经过不断搜索和尝试,最终解决了上述问题,只要在shell终端里执行一条命令就可以了!!!

命令:

sudo apt-get install libgtk-3-dev libappindicator3-dev -y

执行完这个命令后,shell终端里面会滚动安装的信息,不用管,如果成功安装,安装信息中应该没有任何错误提示!安装完毕后,回到提示符状态!! 

这两项安装完毕后,无须进行任何配置,也不需要重新启动系统,gtk+-3.0和appindicator3-0.1就可以使用了!!!

 

转载于:https://www.cnblogs.com/sunylat/p/6410959.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值