GF 3.9 was released on 11 August 2017.
What's new? See the Release notes.
|Platform||Download||Features||How to install|
|macOS||gf-3.9.pkg||GF+S+C+J+P||Double-click on the package icon|
Features: GF = GF shell and grammar compiler and the Resource Grammar Library,
gf -server mode,
C = C run-time system,
J/P = Java/Python binding to the C run-time system
The Windows package is installed by just unpacking it anywhere.
You will probably need to set the
variables, see Inari's notes on
Installing GF on Windows.
.deb packages should work on Ubuntu 16.04 and 17.04 and similar
.deb package was created on a Raspberry Pi 3 and will probably
work on other ARM-based systems running Debian 9 (stretch) or similar
The packages for macOS (Mac OS X) should work on at least 10.11 and 10.12 (El Capitan and Sierra).
The Mac OS and Linux
.tar.gz packages are designed to be installed in
You can install them in other locations, but then you need to set the
GF_LIB_PATH environment variable:
/usr/local should be replaced with the path to the location where you
unpacked the package.
GF is on Hackage, so under normal circumstances the prodedure is fairly simple:
cabal install gf
You can also download the full source package from here:
The above steps installs GF for a single user.
The executables are put in
(or, with recent versions of the Haskell platform on Mac OS X,
$HOME/Library/Haskell/bin), so it is a good
idea to put a line in your
to add that directory to you path:
on Linux depends on some non-Haskell libraries that
won't be installed automatically by cabal, and therefore need to be installed
manually. Here is one way to do this:
sudo apt-get install libghc-haskeline-dev
sudo yum install ghc-haskeline-devel
Note 2. The GF source code has been updated to compile with GHC 8.2.1. Using older versions of GHC (e.g. 8.0.x and 7.10.3) should still work too.
The first time:
git clone https://github.com/GrammaticalFramework/gf-core.git cd gf-core cabal install
git clone https://github.com/GrammaticalFramework/gf-rgl.git cd gf-rgl make
cd gf-core git pull cabal install
cd gf-rgl git pull make
The above notes for installing from source apply also in these cases. For more info on working with the GF source code, see the GF Developers Guide.
You can also use Stack to compile GF, just replace
cabal install above
stack install (assuming you already have Stack set up).