[[Property:modification_date|Fri, 08 Mar 2024 09:28:01 GMT]]
[[Property:publication_date|Sat, 11 Dec 2021 19:23:25 GMT]]
[[Property:title|Linux]]
[[Property:weight|4]]
[[Property:uuid|db132d4c-7c65-59c0-6f9f-731b81c37373]]
==Requirements==
{| class="doctable"
|-
| '''Computer/Processor'''
| x86-64, armv6, armv7
|-
| '''Operating System'''
| Ubuntu 18.04 or any Linux system with glibc 2.7 and GTK+ 3.22.
|-
| '''C compiler'''
| gcc or SunStudio 12 Linux compiler
|-
| '''Memory'''
| 4GB of RAM
|-
| '''Hard Disk'''
| 1GB of free space
|-
| '''ISE_PLATFORM'''
| '''linux-x86-64''' for x64 based CPU.
|}
==Checking your environment==
EiffelStudio requires GTK+ 3.22 or above to function properly. You can check that you have this installed correctly by typing the following command:
pkg-config --modversion gtk+-3.0
The command should succeed and the version number of GTK+ should appear. If it is not 3.22.0 or above then you cannot continue the installation of EiffelStudio. You first need to install GTK+ 3.22
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 libgtk-3.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-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: