2. Installation and start up instructions

On all supported platforms, TrEd requires Perl interpreter and Perl-Tk toolkit (a GUI library for Perl). Installation of these tools is different on Unix-like and Windows platforms. Installation of TrEd itself, though, is platform-independent.

To install Perl/Tk on your system follow instructions for your platform below:

2.1. Windows

There is a windows-specific installation package available on TrEd's homepage. The package contains ActiveState Perl, Perl-Tk, TrEd, and a setup script called setup.bat for easy installation of all of them (RECOMMENDED!).

If, for some reason, you don't want to use the Windows installation package, you may try the manual installation described below.

Note

It is not recommended to use TrEd with CygWin Perl. First, because is is not being tested and second because Perl-Tk for CygWin Perl requires CygWin XFree86. It is therefore recommended that you install ActiveState Perl, even if you already have Perl from CygWin. If you still want to try TrEd with CygWin Perl, follow the instructions for setup on UNIX-like systems.

  1. Windows users first have to download and install ActivePerl by ActiveState. Follow the instructions of the installation program. (When the installation is done, you may need to restart Windows, so that all the changes take effect.)

  2. In this step you add Tk library to Perl. If you have installed ActiveState Perl 5.8 or higher, you may skip this step since Tk is already included. If you use an older version, and you're connected to the Internet, you may install the latest Tk toolkit from ActiveState's site with the following steps:

    1. Open a command prompt (MS-DOS prompt in Windows 9x/ME)

    2. Type ppm (press Enter)

    3. Type install Tk (press Enter)

    4. When the installation of Tk library is finished, type exit (press Enter)

    5. Close the command prompt

    If you do not have ActiveState Perl 5.8 or higher and you're not connected to the Internet, but you do have Prague Dependency Treebank™ CD-ROM, please, follow these steps:

    1. Open a command prompt (MS-DOS prompt in Windows 9x/ME)

    2. Unzip the Windows TrEd distribution package and change to the packages directory.

    3. Type ppm install Tk.ppd (press Enter)

    4. Close the command prompt when the installation of Tk library is finished.

    In this step you install TrEd itself. It is done by copying the whole tred folder from the TrEd distribution anywhere you like on your hard-disk, e.g. to folder C:\Program Files.

    To be able to run TrEd with just a double-click, you have to

    1. either rename the tred program to tred.pl and associate the .pl file-name extension with Perl, or

    2. assuming you have installed Perl to c:\perl and TrEd to c:\Program Files, create a shortcut on your Desktop or in the Start menu for the following command

      c:\perl\bin\perl.exe "c:\Program Files\tred\tred"

    Refer to any Windows User's reference for more information on how to accomplish the above steps.