Tree Editor TrEd 2.0


TrEd is a fully customizable and programmable graphical editor and viewer for tree-like structures. Among other projects, it was used as the main annotation tool for syntactical and tectogrammatical annotations in The Prague Dependency Treebank, as well as for decision-tree based morphological annotation of The Prague Arabic Dependency Treebank.

TrEd 2.0 is a refactored version of original TrEd. A new installation procedure which takes advantage of popular Nullsoft Scriptable Install System for Windows has been created.
Since version 2.0, TrEd uses another Perl distribution on Windows: Active Perl has been substituted by Strawberry Perl. This allows TrEd to be shipped along with Perl distribution in one package.

TrEd runs on the following platforms (see installation instructions for details):



Current version: 2.5236 (release date Thu Feb 28 08:54:16 CET 2019)

tred-installer-perl-included.exe (108M) - TrEd + Modules + Strawberry Perl

This is a full installation package of TrEd for Microsoft Windows. This installer contains TrEd, required Perl Modules and a recent version of Strawberry Perl.

tred-installer.exe (30M) - TrEd + Modules
tred_2.5236_all.deb (6,6M) - TrEd .deb package

The deb package was tested on current versions of Testing Debian (Wheezy) and Ubuntu. Current Stable Debian (Squeezy) does not contain following dependencies (libperl-ostype-perl libmodule-metadata-perl libjson-pp-perl libcpan-meta-yaml-perl libxml-sax-base-perl libperlio-gzip-perl).

To install the package use
$> sudo gdebi ./tred_2.5236_all.deb


$> sudo dpkg -i ./tred_2.5236_all.deb
which will most likely fail so it must be followed by
$> sudo apt-get -f install
to fix dependencies and install the package.

tred-2-5236-fedora.noarch.rpm (7,8M) - TrEd .rpm package for Fedora (FC17)
tred-2-5236-rhel.noarch.rpm (7,8M) - TrEd .rpm package for Red Hat Enterprise Linux (6.3, Santiago)

The packages are designed for listed Linux distributions only. You may try to use these packages on other rpm-based distributions. The package cannot damage anything in incompatible distribution, but there may be some problems with package dependencies. If your distribution is not supported, we recommend to use the generic installation script for unices (presented below).

To install the package use
$> sudo yum localinstall ./tred-2-5236.noarch.rpm

The RHEL package have some dependencies in the Extra Packages for Enterprise Linux (EPEL) repository. You can register the repository (install the epel package) using following command:
$> sudo rpm -Uvh

Mac OS X (10.14 Mojave)
tred.dmg (30M) - TrEd Application

This is a standard Mac OS X application (installed by drag-and-drop to Application folder). The application is designed for OS X 10.14 (Mojave). If you have older version of OS X, please use the generic unix installation script.

Please note that the OS X 10.8 (Mountain Lion) does not include X11 server (which is essential for TrEd) in standard installation. If you do not have the X11 server, it will be automatically installed when you launch TrEd for the first time. In case of any problems, please check this keynote to install X11 server manually.

Unix, Linux, Mac OS X (for experienced users)

NOTE: Perl >= 5.8.2 and basic development tools, (such as make, patch, and a C compiler (gcc)) are required to build TrEd dependencies!

Since several packages like Tk needs to be compiled, users should install these dependencies for the compilation to work:
X11 dev package, Xft dev package, lib fontconfig dev package, libpng12 dev package, zlib1g dev package and libxml2 dev package

Ubuntu/Debian users can use this command:
sudo apt-get install libx11-dev libxft-dev libfontconfig1-dev libpng12-dev zlib1g-dev libxml2-dev
Fedora/Red Hat users can use:
sudo yum install perl-core wget gcc patch libX11-devel libXft-devel libpng-devel libxml2-devel zlib-devel perl-libwww-perl

install_tred.bash (25k)

This installation script automatically fetches and builds latest TrEd and its dependencies for you.

It downloads the packages below, uncompresses tred into a given folder and compiles and installs all dependencies either locally to TrEd's directory or to a given prefix. It also creates two wrapper scripts start_tred, start_btred, and start_ntred which configure library and module paths accordingly and start the corresponding tool. You may symlink these scripts to a folder in your PATH.

Read help:

  bash install_tred.bash --help | less

Install as user (everything under $HOME/tred)

  bash install_tred.bash --tred-dir ~/tred 2>&1 | tee install_tred.log

Install as root to system paths:

  bash install_tred.bash --tred-dir /opt/tred --system 2>&1 | tee install_tred.log
tred-current.tar.gz (8,2M)

This is the latest TrEd distribution package (including documentation). It runs on all supported platforms, but is mainly intended for Linux/Unix users. It requires Perl 5.8.3 or newer and some Perl modules provided in a dependency package below. After installing all dependencies, simply ungzip+untar this package and run tred/tred.

tred-dep-unix.tar.gz (29M)

This package bundles sources for Linux/Unix dependencies for TrEd (mostly Perl modules). The install script contained in the package automates compilation and installation of all these dependencies.


Please note that the extensions were moved to a new repository and divided into two parts for technical reasons (as of 5.10.2012). We recommend to install newest version of TrEd and delete your local configuration files. In case you cannot reinstall or you need to keep all your settings, update your settings so the Extension Manager uses following default repositories:

Click the following link for a list of TrEd Extension Packages currently available in the default extension repository

Valid XHTML 1.0 Transitional