*******************************************************************
*           MPMAS Add-in for LibreOffice			  *
* Authors: Evgeny Latynskiy, Thomas Berger (mas@uni-hohenheim.de) *
*******************************************************************


SYSTEM REQUIREMENTS:
- Linux OS
- LibreOffice 5.1 

The MPMAS Add-in has been tested with LibreOffice 5.1 under Ubuntu 14.04 and Ubuntu 16.04. Please note that with other versions of Linux/LibreOffice the add-in may not be compatible. In this case you might want to upgrade/downgrade your LibreOffice to version 5.1 (see instructions below).


INSTALLATION:
1. Close all running instances of Libre Office

2. For Installation execute install_mpmastools ("./install_mpmastools" in the terminal)
   If needed, make the installation file executable explicitly ("sudo chmod 755 install_mpmastools" in the terminal) 

3. Test the demo version
   Opening the file odsInput/ScenarioManager.ods in LibreOffice-Calc (double-click on file and activate Macros).
   Select menue MPMAS>Create Input files (ignore the warning about pasting data into cells).
   If all this works well, you will receive a success message on your screen.
   Change settings of the newly created file run_mpmas.sh in the main folder ("chmod 755 run_mpmas.sh")
   Execute the file run_mpmas.sh ("./run_mpmas.sh")
   

TROUBLE SHOOTING:
In case the Mpmas Add-in does not work in previous versions of LibreOffice, you can try the following:

1. Deinstall all other versions of LibreOffice

   Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below commands to deinstall all other version of LibreOffice:
   sudo apt-get remove --purge libreoffice*
   sudo apt-get clean 
   sudo apt-get autoremove

2. Install LibreOffice 5.1

   Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below command to add the LibreOffice Main repository.
   sudo add-apt-repository ppa:libreoffice/libreoffice-5-1

   After that, update your package lists and install the office suit. To do so, run below command:
   sudo apt-get update; sudo apt-get install libreoffice

   Now you can start LibreOffice 5.1 from the Unity Dash. If this work, please close and run the installer again.

