官网: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
---- ::-- ftp://ftp.gnome.org/pub/gnome/sources/dia/0.96/dia-0.96.1.tar.bz2
=> “dia-0.96..tar.bz2”
Resolving ftp.gnome.org... 130.239.18.173, 130.239.18.165, :6b0:e:::, ...
Connecting to ftp.gnome.org|130.239.18.173|:... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD () /pub/gnome/sources/dia/0.96 ... done.
==> SIZE dia-0.96..tar.bz2 ...
==> PASV ... done. ==> RETR dia-0.96..tar.bz2 ... done.
Length: (4.2M) (unauthoritative) %[======================================>] ,, .6K/s in 6m 37s -- :: (10.9 KB/s) - “dia-0.96..tar.bz2” saved []
[root@ok data]# mkdir -p /data/app/dia
[root@ok Software]# tar -xjvf dia-0.96..tar.bz2
[root@ok Software]# cd dia-0.96.
[root@ok dia-0.96.]# ./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.]# ./configure --prefix=/data/app/dia --enable-gnome
checking pkg-config is at least version 0.9.... 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.]# yum install libgnomeui-devel
[root@ok dia-0.96.]#make && make install
../../libtool: line : g++: command not found
make[]: *** [wmf.lo] Error
make[]: Leaving directory `/data/Software/dia-0.96./plug-ins/wmf'
make[]: *** [all-recursive] Error
make[]: Leaving directory `/data/Software/dia-0.96./plug-ins'
make[]: *** [all-recursive] Error
make[]: Leaving directory `/data/Software/dia-0.96.'
make: *** [all] Error
[root@ok dia-0.96.]# yum -y install gcc+ gcc-c++
[root@ok dia-0.96.]# make && make install
#安装成功!!!!