[[Property:title|Linux]]
[[Property:weight|4]]
[[Property:uuid|db132d4c-7c65-59c0-6f9f-731b81c37373]]
==Requirements==
{| class="doctable"
|-
| '''Computer/Processor'''
| x86 or x86-64, armv6
|-
| '''Operating System'''
| Ubuntu 8.04 or any Linux system with glibc 2.7 and GTK+ 2.4.
|-
| '''C compiler'''
| gcc or SunStudio 12 Linux compiler
|-
| '''Memory'''
| 4GB of RAM
|-
| '''Hard Disk'''
| 1GB of free space
|-
| '''ISE_PLATFORM'''
| '''linux-x86''' for x86 based CPU, '''linux-x86-64''' for x64 based CPU.
|}
==Checking your environment==
EiffelStudio requires GTK+ 2.4.0 or above to function properly. You can check that you have this installed correctly by typing the following command:
pkg-config --modversion gtk+-2.0
The command should succeed and the version number of GTK+ should appear. If it is not 2.4.0 or above then you cannot continue the installation of EiffelStudio. You first need to install GTK+ 2.4.0.
On some Linux distribution the Xtst library is required but not installed by default. You have to make sure it is installed by using the instruction of your Linux distribution.
For example, on Debian based distribution you need to do:
sudo apt-get install libgtk2.0-dev
sudo apt-get install libxtst-dev
==Installing EiffelStudio from the Web==
After downloading the installation package, you should manually extract its contents to your hard drive. For example, you can extract it into /usr/local using the following commands (assuming that you have permission to /usr/local and that the installation package was saved in /tmp/EiffelXX.tar.bz2, where XX stands for the EiffelStudio version):
cd /usr/local
tar xvfj /tmp/EiffelXX.tar.bz2
This will install EiffelStudio files into /usr/local/EiffelXX. Once this is done, jump to the [[#Setting up EiffelStudio|Setting up EiffelStudio]] section in order to complete the installation of EiffelStudio.
==Installing EiffelStudio from a CD-ROM==
Insert the CD into your CD-ROM drive. You should manually extract its contents to your hard drive. For example you can extract it in /usr/local using the following commands (assuming that you have permission to /usr/local and that the CD is mounted on /mnt/cdrom):
cd /usr/local
cp -r /mnt/cdrom/EiffelXX .
This will install the EiffelStudio files into /usr/local/EiffelXX. To complete the installation of EiffelStudio, jump to the next section, [[#Setting up EiffelStudio|Setting up EiffelStudio]].
==Setting up EiffelStudio==
Once the files have been installed, you should define the following environment variables in order to run EiffelStudio:
* '''ISE_EIFFEL''' to /usr/local/EiffelXX
* '''ISE_PLATFORM''' to linux-x86 for the 32 bits version or linux-x86-64 for the 64 bits version. We will be using '''linux-x86-64''' in the examples below.
and add $'''ISE_EIFFEL'''/studio/spec/$'''ISE_PLATFORM'''/bin to your '''PATH''' environment variable.
Using sh or bash as a shell, it suffices to type the following commands:
export ISE_EIFFEL=/usr/local/EiffelXX
export ISE_PLATFORM=linux-x86-64
export PATH=$PATH:$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin
Using csh or tcsh as a shell, it suffices to type the following commands:
setenv ISE_EIFFEL /usr/local/EiffelXX
setenv ISE_PLATFORM linux-x86-64
set path = ($path $ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin)
If you are using the Enterprise edition, please follow the instructions of the next section, [[#Registering the Enterprise Edition|Registering the Enterprise Edition]], otherwise jump to the [[#Using EiffelStudio|Using EiffelStudio]] section at the end of this document.
== Installing EiffelStudio on Ubuntu ==
An alternative to previous solution for Ubuntu, is to use the ppa repository.
```shell
sudo add-apt-repository ppa:eiffelstudio-team/ppa
sudo apt-get update
sudo apt-get install eiffelstudio
```
It installs EiffelStudio using the linux layout, so no specific environment variables are needed (note: ISE_EIFFEL and ISE_PLATFORM should not be set to use this linux layout).
The executable are located under `/usr/bin`, libraries under `/usr/lib/eiffelstudio`, ...
To reinstall, or update:
```shell
sudo apt-get purge eiffelstudio
sudo apt-get update
sudo apt-get install eiffelstudio
```
==Registering the Enterprise Edition==
This step assumes you have followed the instructions in the [[#Setting up EiffelStudio|Setting up EiffelStudio]] section. Perform the following commands to start the registration process:
cd $ISE_EIFFEL
./register
A dialog asking for your '''Username''' and '''CD Key''' should appear as it does below: