Tutorials Point


  Euphoria Basics
  Euphoria Useful References
  Euphoria Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

Euphoria - Environment Setup


previous next AddThis Social Bookmark Button


Advertisements

Euphoria programs run under Linux, FreeBSD, OS X, 32-bit Windows, and any DOS environment, and are not subject to any 640K memory limitations.

This tutorial gives you steps to install Euphoria on Linux, FreeBSD and 32-bit Windows. So you can follow the steps based on your working environment.

Linux, Free BSD Installation:

Official website provides .tar.gz file to install Euphoria on your Linux or BSD OS. You can download your latest version of Euphoria from its' official website:

Download Euphoria.

Once you have .tar.gz file, here are three simple steps to be performed to install Euphoria Programming language on your Linux or Free BSD machine:

Step 1 - Files Installation:

First step is to untar downloaded file euphoria-4.0b2.tar.gz in a directory where you want to install Euphoria. I would install it in /home directory as follows:

$cp euphoria-4.0b2.tar.gz /home
$cd /home
$gunzip euphoria-4.0b2.tar.gz
$tar -xvf euphoria-4.0b2.tar

This would create a directory hierarchy inside /home/euphoria-4.0b2 directory as follows:

$ls -l
-rw-r--r--  1 1001 1001 2485 Aug 17 06:15 Jamfile
-rw-r--r--  1 1001 1001 5172 Aug 20 12:37 Jamrules
-rw-r--r--  1 1001 1001 1185 Aug 13 06:21 License.txt
drwxr-xr-x  2 1001 1001 4096 Aug 31 10:07 bin
drwxr-xr-x  7 1001 1001 4096 Aug 31 10:07 demo
-rw-r--r--  1 1001 1001  366 Mar 18 09:02 file_id.diz
drwxr-xr-x  4 1001 1001 4096 Aug 31 10:07 include
-rw-r--r--  1 1001 1001 1161 Mar 18 09:02 installu.doc
drwxr-xr-x  4 1001 1001 4096 Aug 31 10:07 source
drwxr-xr-x 19 1001 1001 4096 Sep  7 12:09 tests
drwxr-xr-x  2 1001 1001 4096 Aug 31 10:07 tutorial

NOTE: File name euphoria-4.0b2.tar.gz depends on latest version available. At the time of writing this tutorial, I installed 4.0b2 version of the language.

Step 2 - Path Setup:

After installing Euphoria, you need to set proper paths so that your shell can find required Euphoria binaries and utilities.

There are following important environment variables to be setup to proceed.

  1. First you need to set PATH environment variable to point /home/euphoria-4.0b2/bin directory.

  2. Second is to set EUDIR environment variable to point to /home/euphoria-4.0b2.

  3. Third is to set EUINC environment variable to point to /home/euphoria-4.0b2/include.

These variables can be set as follows:

$export PATH=$PATH:/home/euphoria-4.0b2/bin
$export EUDIR=/home/euphoria-4.0b2
$export EUINC=/home/euphoria-4.0b2/include

NOTE: Above commands to set environment variables may differ depending on your Shell. I'm using bash shell so I used above commands to set these variables.

Step 3 - Confirmation:

The last step is just to confirm if you have installed Euphoria successfully or not, try the following command:

$eui -version

If you get following result then it means you have installed Euphoria successfully, otherwise you have to go back and check all the steps:

$eui -version
Euphoria Interpreter 4.0.0 beta 2 (r2670) for Linux
Using System Memory
$

That's it, Euphoria Programming Environment is ready on your UNIX machine, and you can start writing complex programs in easy steps. I would start actual programming from next chapter.

WIN32, DOS Installation:

Official website provides .exe file to install Euphorioa on your WIN32 or DOS OS. You can download your latest version of Euphoria from its' official website:

Download Euphoria.

Once you have .exe file, here are three simple steps to be performed to install Euphoria Programming language on your WIN32 or DOS machine:

Step 1 - Files Installation:

First step is to install all the installation files by double clicking on the downloaded .exe setup program. I downloaded euphoria-40b2.exe file for my installation.

File name euphoria-40b2.exe depends on latest version available. At the time of writing this tutorial, I installed version 4 beta 2 of the language.

By default Euphoria would be installed in C:\euphoria-40b2 directory but you have option to change installation location.

Step 2 - Machine Reboot:

To complete the installation, you need to re-boot your machine.

Step 3 - Confirmation:

The last step is just to confirm if you have installed Euphoria successfully or not, try the following command:

c:\>eui -version

If you get following result then it means you have installed Euphoria successfully, otherwise you have to go back and check all the steps:

c:\>eui -version
Euphoria Interpreter 4.0.0 beta 2 (r2670) for Windows
Using Managed Memory

c:\>

That's it, Euphoria Programming Environment is ready on your WIN32 machine, and you can start writing complex programs in easy steps. I would start actual programming from next chapter.

Euphoria Interpreters:

  • Depending on the platform you are using, Euphoria has multiple interpreters, the main one being eui.

  • On windows platforms you have two choices. If you run eui then a console window is created. If you run euiw then no console is created, making it suitable for GUI applications.

  • Euphoria doesn't care about your choice of file extensions. By convention, however, console-based applications have an extension of .ex.

  • GUI-based applications have an extension of .exw and include files have an extension of .e.



previous next Printer Friendly

Advertisements


  

Advertisements