Installation |
-
ISE Eiffel:
Make sure you have ISE Eiffel installed and that its binary directory is included in your PATH environment variable. Specifically make sure that the program 'ec' is startable from your command line prompt. If you would like to compile Erl-G you also need to download the source code of EiffelStudio. Currently the best way to do this is to get the trunk from the Eiffelstudio subversion repository (https://eiffelsoftware.origo.ethz.ch/svn/es/trunk). You do not need to compile EiffelStudio in order to compile Erl-G. You do need to properly set the EIFFEL_SRC environment variable though.
-
Gobo:
Make sure you have Gobo installed. Make sure the Gobo tools are available from your path. Try it by executing 'geant' on the command line. You will have to have the GOBO environment variable point to your Gobo installation and GOBO_EIFFEL has to be set to 'ise'.
-
Set the environment variable ERL_G to where you unpacked Erl-G to. Set
the PATH variable to include the 'bin' directory of Erl-G. For
example on windows:
set ERL_G=c:\erl_g set PATH=%PATH%;%ERL_G%\bin
On Linux:
export ERL_G=/home/aleitner/erl_g export PATH=$PATH:$ERL_G/bin
Make sure that the name of the path that points to your Erl-G installation does not contain any spaces.
-
Compile Erl-G (the generator)
This step is only necessary if you obtained a non binrary Erl-G package.
On Windows:
cd %ERL_G% geant install geant compile
On Linux:
cd $ERL_G geant install geant compile
-
Examples
Go to the 'hello_world' example and follow the instructions from the file 'readme.txt' in the examples directory.
To make your own system reflectable just adjust the hello_world.ecf and build.eant file to your needs. To use Erl-G it is recommended but not required to use the Gobo build tool geant. If you want to use Erl-G without the Gobo build tools just run 'erl_g' to learn about its command line interface.