Getting Started

From Liberty Eiffel Wiki
Revision as of 20:18, 21 May 2016 by Ramack (talk | contribs)
Jump to navigation Jump to search

Prepared Debian/Ubuntu packages

On we have prepared some Debian/Ubuntu packages. For the quick start using the last stable release do:

  • add the following repository (note: it is currently unsigned)
deb release main
  • then install (as root or with sudo)
apt-get install liberty-eiffel-all

That's it, you now can run "se c" to compile your first program.

Windows Installer

So far we don't have an installer for windows, but a current GSoC project is working on that. In case of interest get in touch with us, maybe you can provide some input or help with testing.

Bootstrap from tarball

Download the <release>.tar.gz from unpack it with

tar -zxvf <release>.tar.gz

bootstrap Liberty with

cd <release>
./ -bootstrap

Bootstrap from git source

On Linux (and most other Unix-like systems) installation of Liberty from source is simple:

Check that the following Pre-requisites are available on your system:

  • git
  • GCC compiler
  • GCC-XML extension
  • Boehm-Demers-Weiser garbage collector dev-packages

On debian-like systems you may install them with:

sudo apt-get install git build-essential gccxml libgc-dev

On Fedora you'll need gc-devel, rather than libgc-dev, gccxml and of course the basic packages for compiling like gcc, git etc.

Now clone the repository:

git clone git://

Change into the directory you created by this:

cd liberty-eiffel

and execute

./ -bootstrap

This will create a default liberty configuration in ~/.config/liberty-eiffel/, bootstrap the compiler and compile all the tools. Afterwards you just need to add <LibertyHome>/target/bin to your path, e. g. in .bashrc:

export PATH

Please note that SmartEiffel should not be already installed on your system. Particularily, any /etc/serc file will prevent you from installing Liberty correctly. Now you can call se as interface for all tools. For examples go to

cd <LibertyHome>/tutorial

and compile with

se compile hello_world.e -o hello_world

your first LibertyEiffel program.

After this great success, play with the language, tools and libraries. Develop cool applications and for any question, suggestion or complaint get in touch with us. We are also happy to receive pull requests and provide accounts to this wiki if you want to contribute code or documentation. Be welcome to get involved.