编译前需要安装的库:
g++
libmysqlclient15-dev
libglade2-dev
libglib2.0-dev
libgtkmm-2.4-dev
libpcre3-dev
libxml2-dev
然后执行
cd mysql-gui-common
./configure
make
sudo make install
cd ../mysql-administrator
./configure
make
sudo make install
安装MySQL Administrator
安装完成后mysql-administrator目录下有启动器
MySql Query安装
./configure通不过
错误提示如下
checking for GNOME... configure: error: Package requirements (libglade-2.0
gthread-2.0
libxml-2.0 >= 2.6.2
libgtkhtml-3.0
gtkmm-2.4) were not met:
No package 'libgtkhtml-3.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GNOME_CFLAGS
and GNOME_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
主要原因是Ubuntu的libgtkhtml版本是3.8这里需要的是3.0
执行如下命令:
sudo ln -s /usr/lib/pkgconfig/libgtkhtml-3.8.pc /usr/lib/pkgconfig/libgtkhtml-3.0.pc
然后./configure即可通过。