标签:
官网:https://wiki.gnome.org/Apps/Dia
[root@ok Software]# wget --limit-rate=100k ftp://ftp.gnome.org/pub/gnome/sources/dia/0.96/dia-0.96.1.tar.bz2 --2016-09-29 20:40:50-- ftp://ftp.gnome.org/pub/gnome/sources/dia/0.96/dia-0.96.1.tar.bz2 => “dia-0.96.1.tar.bz2” Resolving ftp.gnome.org... 130.239.18.173, 130.239.18.165, 2001:6b0:e:2018::165, ... Connecting to ftp.gnome.org|130.239.18.173|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD (1) /pub/gnome/sources/dia/0.96 ... done. ==> SIZE dia-0.96.1.tar.bz2 ... 4445553 ==> PASV ... done. ==> RETR dia-0.96.1.tar.bz2 ... done. Length: 4445553 (4.2M) (unauthoritative) 100%[======================================>] 4,445,553 12.6K/s in 6m 37s 2016-09-29 20:47:33 (10.9 KB/s) - “dia-0.96.1.tar.bz2” saved [4445553]
[root@ok data]# mkdir -p /data/app/dia [root@ok Software]# tar -xjvf dia-0.96.1.tar.bz2 [root@ok Software]# cd dia-0.96.1 [root@ok dia-0.96.1]# ./configure --prefix=/data/app/dia --enable-gnome 下面的报错!!! checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
这是因为XML-Parser缺失而造成的,解决方法是进行这装下载XML-Parser
[root@ok Software]# yum install perl-XML-Parser [root@ok dia-0.96.1]# ./configure --prefix=/data/app/dia --enable-gnome checking pkg-config is at least version 0.9.0... yes checking for GMODULE... configure: error: Package requirements (gmodule-2.0 gobject-2.0) were not met: No package ‘gmodule-2.0‘ found No package ‘gobject-2.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 GMODULE_CFLAGS and GMODULE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. 又有报错!!!!
[root@ok dia-0.96.1]# yum install libgnomeui-devel [root@ok dia-0.96.1]#make && make install ../../libtool: line 1281: g++: command not found make[3]: *** [wmf.lo] Error 1 make[3]: Leaving directory `/data/Software/dia-0.96.1/plug-ins/wmf‘ make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/data/Software/dia-0.96.1/plug-ins‘ make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/data/Software/dia-0.96.1‘ make: *** [all] Error 2
[root@ok dia-0.96.1]# yum -y install gcc+ gcc-c++
[root@ok dia-0.96.1]# make && make install #安装成功!!!!
标签:
原文地址:http://www.cnblogs.com/bass6/p/5922164.html