Difference between revisions of "Getting Started"

From Liberty Eiffel Wiki
Jump to navigation Jump to search
(adding pre-requisites)
Line 1: Line 1:
 
On Linux (and most other Unix-like systems) installation of Liberty from source is simple:
 
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:
Clone the repository:
 
  +
* git
  +
* GCC compiler
  +
* GCC-XML extension
  +
  +
On debian-like systems you may install them with:
  +
sudo apt-get install git build-essential gccxml
  +
  +
Now clone the repository:
 
git clone git@github.com:LibertyEiffel/Liberty
 
git clone git@github.com:LibertyEiffel/Liberty
   

Revision as of 22:45, 13 August 2013

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

On debian-like systems you may install them with:

sudo apt-get install git build-essential gccxml 

Now clone the repository:

git clone git@github.com:LibertyEiffel/Liberty

Change into the directory you created by this:

cd Liberty

and execute

./install.sh -bootstrap

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

PATH=$PATH:<LibertyHome>/target/bin
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.