You can install ACE from an official pre-built binary (recommended), or from the source code (to get unreleased features or bug fixes, to compile for another system architecture, etc.).

Installing pre-built binaries

First download ACE from its home page.

When you download ACE, you can typically expand the archive by simply double clicking on it.

When you download the corresponding ERG image, you might not be able to automatically extract that if your system isn't configured to recognize the bz2 extension.

In this case, open the Terminal application (use the Search (looking glass icon in the upper right corner) option to find it).

Note where you put the ERG bz2 file. Let's say it is on your Desktop. Navigate to that directory, i.e., in the Terminal, type:

cd ~/Desktop

Then call the proper utility directly to expand the archive:

bunzip2 erg-1212-osx-0.9.22.dat.bz2

Now hopefully you have the ERG image to test ACE on.

Navigate to the directory that you put ACE in:

cd ~/Desktop/ace-0.9-22

Now you can start ACE:

./ace -g ~/Desktop/erg-1212-osx-0.9.22.dat

You should add ace to your path, so you can run it from anywhere.

You may also want to install yzlui for a graphical interface which allows interactive unification.

Compiling and installing from source

These are instructions on how to configure a build environment for compiling the ACE software from source. For using ACE to compile grammar images, see AceUse.

Dependencies

Before you can compile ACE, you will need to satisfy some dependencies. Some of these should be available from your package manager. E.g., on Ubuntu Linux, use the following commands:

sudo apt install build-essential libboost-regex-dev

Next compile and install REPP by downloading repp-0.2.2.tar.gz and extracting it, then by executing the following commands from the extracted directory:

./configure && make all
sudo make install

If you want [incr tsdb()] support, download the LOGON distribution (see LogonInstallation) and make sure the LOGONROOT environment variable is set. If you don't want [incr tsdb()] support, inspect ACE's Makefile (after checkout out the code; see below) and comment out the lines it says to comment out.

Building ace

With the dependencies satisfied you can now build ACE. First check out the repository. Read-only access is available via SVN:

svn co http://sweaglesw.org/svn/ace/trunk ace

Enter the ace/ directory and run the following command:

make all

The binary should be available as ace in the current directory. It can be used as is, but if you want to install this binary so it is available system-wide as the ace command, run the following command:

sudo make install

It's a good idea to only install official releases, and if you compile (e.g., to experiment with new features or to fix a bug), just call the compiled binary with its full path. This way you won't be surprised if you forget which version is being used (note that the version given by ace -V won't change until a new release is generated, but the compilation timestamp will).

Troubleshooting

You may see an error like the following at the linking stage of compilation:

    /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libutil.a(login_tty.o): relocation R_X86_64_PC32 against symbol `setsid@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: Bad value
    collect2: error: ld returned 1 exit status
    Makefile:43: recipe for target 'ace' failed
    make: *** [ace] Error 1

If so, try changing the following line in the Makefile:

POST_LIBS=-Wl,-Bstatic -lutil -Wl,-Bdynamic

to this:

POST_LIBS=-Wl,-Bdynamic -lutil

AceInstall (last edited 2017-10-30 19:16:00 by MichaelGoodman)

(The DELPH-IN infrastructure is hosted at the University of Oslo)