Ubuntu16.04 - 安装gtk+-3.0和appindicator3-0.1
2017-02-17 17:54
603 查看
今天在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终端里执行一条命令就可以了!!!
命令:
执行完这个命令后,shell终端里面会滚动安装的信息,不用管,如果成功安装,安装信息中应该没有任何错误提示!安装完毕后,回到提示符状态!!
这两项安装完毕后,无须进行任何配置,也不需要重新启动系统,gtk+-3.0和appindicator3-0.1就可以使用了!!!
# 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就可以使用了!!!
相关文章推荐
- 怎样在Ubuntu16.04上安装GTK+-3.0
- Linux 虚拟机 Ubuntu 16.04 安装 OpenCV 3.0
- ubuntu 16.04安装opencv3.0流程以及报错解决
- Ubuntu16.04下安装OpenCV3.0经验
- ubuntu16.04 安装 gtk3.0
- Ubuntu 16.04上安装 Swift 3.0及问题解答
- Ubuntu16.04下安装GTK+
- Ubuntu16.04-安装opencv3.0
- Ubuntu 16.04安装indicator-sysmonitor实现导航条显示CPU和内存占用率
- ubuntu 16.04安装opencv3.0流程以及报错解决
- Ubuntu 16.04安装indicator-sysmonitor实现导航条显示上下行网速/CPU/内存使用率
- ubuntu16.04 安装 gtk3.0
- ubuntu16.04+ cuda8.0: 安装 opencv 3.0
- Ubuntu 16.04如何安装Cinnamon 3.0
- Ubuntu 源码安装gtk+-2.0
- Lenovo Y570: Ubuntu 12.04安装Nvidia, Bumblebee 3.0, CUDA5.0
- Ubuntu下安装GTK+
- Ubuntu下面安装GTK+
- ubuntu 开发gtk+3.0程序的环境安装。
- Ubuntu下安装GTK+步骤