首页 > 代码库 > linux下绘图工具dia

linux下绘图工具dia

 

官网: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-gnomechecking pkg-config is at least version 0.9.0... yeschecking for GMODULE... configure: error: Package requirements (gmodule-2.0 gobject-2.0) were not met:No package gmodule-2.0 foundNo package gobject-2.0 foundConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix.Alternatively, you may set the environment variables GMODULE_CFLAGSand 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 foundmake[3]: *** [wmf.lo] Error 1make[3]: Leaving directory `/data/Software/dia-0.96.1/plug-ins/wmfmake[2]: *** [all-recursive] Error 1make[2]: Leaving directory `/data/Software/dia-0.96.1/plug-insmake[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/data/Software/dia-0.96.1make: *** [all] Error 2
[root@ok dia-0.96.1]# yum -y install gcc+ gcc-c++
[root@ok dia-0.96.1]# make && make install#安装成功!!!!

技术分享

linux下绘图工具dia