Linux HOWTOs

About | Home | Search


HOWTO: dia
Description: A gtk+ based Viseo-like GPLd diagram creation program
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# Dia
# ===
# If you ever want to uninstall Dia, or clean up files from an old version
# before installing a new one, cd into the source directory, run
# 'make uninstall' (as root), remove the source directory, then remove
# the tarball.


# Dia 0.96.1
# ==========
# Prerequisites:
# intltool >= 0.21
# Perl
# pkg-config
# Glib >= 2.0.0
# GTK+ >= 2.0.0
# pango >= 1.1.5
# freetype
# libart-2.0
# If --enable-gnome is passed to configure:
#  libgnome-2.0
#  libgnomeui-2.0
# libxslt
# popt
# libpng
# gettext
# libxml2 >= 2.3.9
# zlib
# db2html (Slackware includes this in it's sgml-tools/linuxdoc-tools
#  packages)
# Python and PyGTK (if --with-python is passed to configure for the
#  python plugin)
# Experimental:
# cairo (pass --with-cairo)
# libgnomeprint (pass --with-gnomeprint)

cd
test -f installed/dia-0.96.1.tar.bz2 && mv installed/dia-0.96.1.tar.bz2 .
test ! -f dia-0.96.1.tar.bz2 &&
 wget ftp://ftp.gnome.org/pub/gnome/sources/dia/0.96/dia-0.96.1.tar.bz2
mkdir -p -m 0700 src
cd src
test -d ./dia && rm -r ./dia
find -maxdepth 1 -type d -name "dia-*" -exec rm -r {} \;
tar xjvf ~/dia-0.96.1.tar.bz2
cd dia-0.96.1
test $UID = 0 && chown -R root:root .

## If make stops with an error like this:
# /usr/bin/ld: cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib

# If you do have Python and PyGTK installed, pass --with-python to configure

./configure --enable-gnome --with-python
make
su -c "make install"

## If you try to run 'dia' and you get this:
# dia: error while loading shared libraries: libssl.so.0: cannot open shared
# object file: No such file or directory
## run it like this:
# LD_LIBRARY_PATH=/usr/local/ssl/lib dia

cd
mkdir -p -m 0700 installed
rm -f installed/dia-*.tar.* installed/dia.README
mv dia-0.96.1.tar.bz2 installed/

# /usr/local/share/pixmaps/dia_gnome_icon.png can be used as a desktop icon


# Dia from Subversion
# ===================
# autoconf
# automake
# libtool
# intltool
# Perl
# iconv
# gettext
# pkg-config
# Pango >= 1.1.5
# freetype
# libart
# If --enable-gnome is passed to configure:
#  libgnome-2.0
#  libgnomeui-2.0
# GTK+
# libxslt
# popt
# libpng
# libxml2 >= 2.3.9
# zlib
# db2html (Slackware includes this in it's sgml-tools/linuxdoc-tools
#  packages)
# Python and PyGTK (if --with-python is passed to configure for the
#  python plugin)
# Experimental:
# cairo (pass --with-cairo)
# libgnomeprint (pass --with-gnomeprint)

cd ~/src
find -maxdepth 1 -type d -name "dia-*" -exec rm -r {} \;
test -d ./dia && ( cd dia ; svn update )
test ! -d ./dia &&
 svn checkout http://svn.gnome.org/svn/dia/trunk dia
cd dia
test $UID = 0 && chown -R root:root .
chmod -R u+w .

## If make stops with an error like this:
# /usr/bin/ld: cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib

# If you do have Python and PyGTK installed, pass --with-python to configure

./autogen.sh --enable-gnome
make
su -c "make install"

## If you try to run 'dia' and you get this:
# dia: error while loading shared libraries: libssl.so.0: cannot open shared
# object file: No such file or directory
## run it like this:
# LD_LIBRARY_PATH=/usr/local/ssl/lib dia

cd
mkdir -p -m 0700 installed
rm -f installed/dia-*.tar.*
echo "dia was installed from subversion into ~/src/dia" \
 > ~/installed/dia.README

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>