1.ubuntu默认没有安装编译工具包(gcc/g++/gdb/make等)
sudo apt-get install build-essential
出现错误:
locale: Cannot set LC_CTYPE to default
locale: No such file or directory
locale: Cannot set LC_MESSAGES to default
locale: No such file or directory
locale: Cannot set LC_ALL to default
locale: No such file or directory
解决:
local-gen zh_CN
提示显示c语言类型没地方设置,与C语言有关的类glibc没有安装。
2.安装gnome开发环境,安装libgtk2.0-dev libglib2.0-dev 等开发相关的库文件
sudo apt-get install gnome-core-devel
3.在编译GTK程序时自动找出头文件及库文件位置
sudo apt-get install pkg-config
4.安装帮助文档
sudo apt-get install devhelp
sudo apt-get install lib-glib2.0doc libgtk2.0doc
apt-get install glade libglade2-dev
sudo apt-get install libgtk2.0-dev