Différences entre les versions de « Installing EASEA »

De
Aller à la navigation Aller à la recherche
 
(74 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
 +
 +
If you have installed the [https://github.com/EASEA/easea/releases Github release version], please open the README.md file that you will find in the archive you downloaded.
 +
 +
If you have installed the latest version from the [https://github.com/EASEA/easea Master branch], you can access it directly [https://github.com/EASEA/easea/blob/master/README.md there].
 +
 +
In this beta version, EASENA platform contains two engines within one program: EASEA and EASNA.
 +
* The EASEA compiler (for artificial evolution) is automatically used on files using extension .ez
 +
* The EASNA platform (for neural networks) is automatically used on files using extension .nz
 +
 +
 
===Requirements===
 
===Requirements===
In order to have a working grapher, java jre 1.6 is required. Without it, an error appears at the start of easea's compiled programs but can be safely ignored.
+
For installation EASENA and package dependencies, you will need administrator priviledges, so make sure your login is in the <tt>/etc/sudoers</tt>  or ask a system administrator to do it for you.
 +
 +
EASEA requires at least:
 +
* For linux users MUST be installed :
 +
** g++ 5.0 version (or later)
 +
** package dependencies : cmake, flex, bison, valgrind, gunzip, wget, r-base
 +
* For MacOSX users MUST be installed :
 +
** gcc 9 must be installed
 +
** package dependencies : xcode, Command Tools, llvm, libomp, r
 +
* Optional (Recommended) for linux and MasOSX :
 +
** For graph results visualisation of single objective evolutionary runs :
 +
*** java jre 1.6 (or later) is required. You can get it here: https://www.java.com/download/.<br> Without it, an error appears at the start of easea's compiled programs but can be safely ignored.
 +
** For graph results visualisation of multi-objective algorithms:
 +
*** r-package scatterplot3d is required. To install scatterplot3d in R shell : <br>
 +
**** you can run R shell by type in command line : <tt>$ r</tt>
 +
**** then in R shell, type following : <tt>install.packages("scatterplot3d")</tt>
 +
** For using EASENA with GPU cards :
 +
*** CUDA SDK > 4.1. Please install CUDA using the following link: https://developer.nvidia.com/cuda-zone. Without it, you can use EASENA without GPU parallel computing.
 +
 
 +
===Linux installation===
 +
# Open a terminal window and install all required dependencies :<tt>$ sudo apt-get install flex bison valgrind gunzip unzip wget cmake r-base</tt>
 +
# If you need, install optional dependencies as it was shown above
 +
# Then download zip archive with the latest version from the [https://github.com/EASEA/easea Master branch]
 +
# Or clone the github repository by the following command in a command line of the terminal: <tt>$ git clone https://github.com/EASEA/easea.git</tt>
 +
# In the same terminal window, cd to the directory where zip file was downloaded and expand the zip file : <tt>$ unzip downloaded_file_name.zip</tt>
 +
# Go to unziped direcory : <tt>cd easea</tt> or <tt>cd easea-master</tt>
 +
# To configure EASENA platform for the architecture of your computer, type in command line (from current directory) <tt> $ cmake ./</tt>
 +
# To compile the EASENA platform, type <tt>$ make</tt>
 +
# To move the files around, type <tt>$ sudo make install</tt><br> Typically, it will create a directory called <tt>/usr/local/easea</tt> that will contain a directory called <tt>bin</tt> and a directory called <tt>tpl</tt>
 +
# Once this is done, you can modify your personal .bashrc file in your Home for saving EASEA paths for compiler and library. In order to do it, you have to add the two following lines at the end of .bashrc file :<br>
 +
<pre>
 +
export EZ_PATH=/usr/local/easena/
 +
export PATH=$PATH:/usr/local/easena/bin
 +
</pre>
 +
 
 +
===MacOS X installation===
 +
First, unzip the package, open a terminal window, cd to the directory and install dependencies in the command line of the terminal :
 +
#Install Command Tools : <tt>$ xcode-select --install </tt>
 +
#Install gcc by the following command : <tt>$ brew install gcc</tt>
 +
#Install Low Level Virtual Machine library by the following command : <tt>$ brew install llvm</tt>
 +
#Install libomp library by the following command : <tt>$ brew install libomp</tt>
 +
#Install R by the following command : <tt>$ brew install r</tt>
 +
#Install other dependencies : <tt>$ brew install flex bison wget cmake</tt>
 +
# If you need, install optional dependencies as it was shown in section Requirements
 +
The latest MacOSX Mojave system is not compliant with valgrind, which is why valgrind tests are limited to linux operating systems.<br>
 +
Then configure, compile and install EASENA.<br>
 +
Make sure that you are in easea or easea-master directory.<br>
 +
From current direcotry run in the terminal command line following commands :
 +
#$ cmake -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++" .
 +
#$ make
 +
#$ sudo make install
 +
 
 +
Or in one line, for the boldest of you;
  
EASEA had been compiled and tested with those following compilers:
+
#$ cmake -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++" .; make; sudo make install
* Gcc 4.4 to 4.8.2
 
* Clang 3.0 to 3.3
 
* Mingw-gcc 4.8.2
 
* CUDA SDK > 4.1
 
  
===Linux and MacOS X installation===
+
Once this is done, you can modify your personal .bash_profile in your Home for saving EASEA paths for compiler and library. In order to do it, you have to add the two following lines at the end of .bash_profile file :<br>
# Create an installation directory (<tt>easea_installation_directory</tt>) somewhere on the disk.
+
<pre>
# Make sure you have the latest version from the [http://sourceforge.net/projects/easea/ EASEA sourceforge repository], and put it in this directory. Normally, Sourceforge should detect the operating system you are using, and should point you to the correct version.
+
export EZ_PATH=/usr/local/easena/
# You can also clone the sourceforge repository : <tt> git clone git://git.code.sf.net/p/easea/code easea-code</tt>
+
export PATH=$PATH:/usr/local/easena/bin
# Open a terminal window, cd to the directory and expand the tar file (<tt>$ tar zxvf downloaded_file_name</tt>).
+
export LDFLAGS="-L/usr/local/opt/llvm/lib -L/usr/local/opt/libomp/lib"
# Type <tt>make</tt> to compile the EASEA platform for the architecture of your computer.
+
export CXX="/usr/bin/g++"
# Type <tt>source install.sh [local]</tt> to move the files around. Typically, <tt>source install.sh</tt> will create a directory called <tt>/usr/local/easea</tt> that will contain a directory called <tt>bin</tt> and a directory called <tt>tpl</tt>. You will need administrator priviledges to run this command, so make sure your login is in the <tt>/etc/sudoers</tt> file before you execute the <tt>sudo make install</tt> command, or ask a system administrator to do it for you.
+
</pre>
# if you don't have administrator priviledges, you can also install easea locally by typing <tt>source install.sh local</tt>
 
# Once this is done, you can move the <tt>examples</tt> directory to a place where you can find it again and if you didn't install easea locally,remove the current directory by going up one notch (<tt>cd ..</tt>) and type the following command: (<tt>rm -rf easea_installation_directory</tt>).
 
# The <tt>install.sh script </tt> has modified your personal .bashrc file to
 
* add the <tt>/usr/local/easea/bin</tt> directory to your <tt>PATH</tt> variable and
 
* create the <tt>EZ_PATH</tt> variable and set it to <tt>/usr/local/easea/</tt>.
 
  
If typing <tt>easea</tt> does not start the EASEA compiler, please check out the value of these variables and make sure they point to the good directories.
+
===Testing your installation===
 +
If typing <tt>$ easena</tt> in the command line of terminal does not start the EASENA compiler, please check out the value of these variables and make sure they point to the good directories.
 +
If the <tt>Usage</tt> tool appears, it means the installation was successful
  
 
===Windows installation===
 
===Windows installation===
# Make sure you have the latest version from the [http://sourceforge.net/projects/easea/ EASEA sourceforge repository], and put it in a directory. Normally, Sourceforge should detect the operating system you are using, and should point you to the correct version.
 
# Follow the Graphic User Interface installer.
 

Version actuelle datée du 18 avril 2021 à 12:54

If you have installed the Github release version, please open the README.md file that you will find in the archive you downloaded.

If you have installed the latest version from the Master branch, you can access it directly there.

In this beta version, EASENA platform contains two engines within one program: EASEA and EASNA.

  • The EASEA compiler (for artificial evolution) is automatically used on files using extension .ez
  • The EASNA platform (for neural networks) is automatically used on files using extension .nz


Requirements

For installation EASENA and package dependencies, you will need administrator priviledges, so make sure your login is in the /etc/sudoers or ask a system administrator to do it for you.

EASEA requires at least:

  • For linux users MUST be installed :
    • g++ 5.0 version (or later)
    • package dependencies : cmake, flex, bison, valgrind, gunzip, wget, r-base
  • For MacOSX users MUST be installed :
    • gcc 9 must be installed
    • package dependencies : xcode, Command Tools, llvm, libomp, r
  • Optional (Recommended) for linux and MasOSX :
    • For graph results visualisation of single objective evolutionary runs :
      • java jre 1.6 (or later) is required. You can get it here: https://www.java.com/download/.
        Without it, an error appears at the start of easea's compiled programs but can be safely ignored.
    • For graph results visualisation of multi-objective algorithms:
      • r-package scatterplot3d is required. To install scatterplot3d in R shell :
        • you can run R shell by type in command line : $ r
        • then in R shell, type following : install.packages("scatterplot3d")
    • For using EASENA with GPU cards :

Linux installation

  1. Open a terminal window and install all required dependencies :$ sudo apt-get install flex bison valgrind gunzip unzip wget cmake r-base
  2. If you need, install optional dependencies as it was shown above
  3. Then download zip archive with the latest version from the Master branch
  4. Or clone the github repository by the following command in a command line of the terminal: $ git clone https://github.com/EASEA/easea.git
  5. In the same terminal window, cd to the directory where zip file was downloaded and expand the zip file : $ unzip downloaded_file_name.zip
  6. Go to unziped direcory : cd easea or cd easea-master
  7. To configure EASENA platform for the architecture of your computer, type in command line (from current directory) $ cmake ./
  8. To compile the EASENA platform, type $ make
  9. To move the files around, type $ sudo make install
    Typically, it will create a directory called /usr/local/easea that will contain a directory called bin and a directory called tpl
  10. Once this is done, you can modify your personal .bashrc file in your Home for saving EASEA paths for compiler and library. In order to do it, you have to add the two following lines at the end of .bashrc file :
export EZ_PATH=/usr/local/easena/
export PATH=$PATH:/usr/local/easena/bin

MacOS X installation

First, unzip the package, open a terminal window, cd to the directory and install dependencies in the command line of the terminal :

  1. Install Command Tools : $ xcode-select --install
  2. Install gcc by the following command : $ brew install gcc
  3. Install Low Level Virtual Machine library by the following command : $ brew install llvm
  4. Install libomp library by the following command : $ brew install libomp
  5. Install R by the following command : $ brew install r
  6. Install other dependencies : $ brew install flex bison wget cmake
  7. If you need, install optional dependencies as it was shown in section Requirements

The latest MacOSX Mojave system is not compliant with valgrind, which is why valgrind tests are limited to linux operating systems.
Then configure, compile and install EASENA.
Make sure that you are in easea or easea-master directory.
From current direcotry run in the terminal command line following commands :

  1. $ cmake -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++" .
  2. $ make
  3. $ sudo make install

Or in one line, for the boldest of you;

  1. $ cmake -DCMAKE_C_COMPILER="/usr/bin/gcc" -DCMAKE_CXX_COMPILER="/usr/bin/g++" .; make; sudo make install

Once this is done, you can modify your personal .bash_profile in your Home for saving EASEA paths for compiler and library. In order to do it, you have to add the two following lines at the end of .bash_profile file :

export EZ_PATH=/usr/local/easena/
export PATH=$PATH:/usr/local/easena/bin
export LDFLAGS="-L/usr/local/opt/llvm/lib -L/usr/local/opt/libomp/lib"
export CXX="/usr/bin/g++"

Testing your installation

If typing $ easena in the command line of terminal does not start the EASENA compiler, please check out the value of these variables and make sure they point to the good directories. If the Usage tool appears, it means the installation was successful

Windows installation