Embedthis Appweb 3.0A.0
Home > Installation > Installing on Linux

Quick Nav

Installing the RPM Image
Installing the Self-Install Image
Removing Ejscript
Running Ejscript

See Also

New Features
Release Notes
Installation Overview
Installing on MAC OS X
Installing on Windows

Installing on Linux

The Embedthis Ejscript install distribution for LINUX is published in two formats

It is recommended that you use the RPM format if your system supports the RPM package standard.

The RPM format will register the software installation with the system's RPM manager so that you can query, verify, and easily manage the software on your system. The self-install format consists of tar archives that you can manually extract for maximum control over the placement of the product files. You can however, still use the install script with the self-install distribution if your system does not support RPM.

Both distribution images contains a binary distribution, documentation and samples in the one package. During installation you will have the option of installing the full distribution or just portions.

Installing the RPM Image

  1. Login as root

  2. Uncompress the image by typing
    gunzip ejs-VERSION-DIST-LINUX-i686.rpm.tar.gz
    
    

    Where VERSION is the current version (e.g. 1.2.3-1), and DIST is the name of the Linux distribution (e.g. fedora).

  3. Extract the top level files by typing
    tar xvf ejs-VERSION-DIST-LINUX-i686.rpm.tar                                
    
  4. Then start the installation via:
    ./install
    

Installing the Self-Install Image

  1. Login as root

  2. gunzip ejs-VERSION-DIST-LINUX-i686.tar.tar.gz
    tar xvf Ejscript-VERSION-DIST-LINUX-i686.tar.tar
    cd {Desired-Directory-For-Binaries}
    gunzip Ejscript-VERSION-DIST-LINUX-i686.tar.gz
    tar xvf Ejscript-VERSION-DIST-LINUX-i686.tar
    cd {Desired-Directory-For-Documentation}
    gunzip Ejscript-doc-VERSION-DIST.tar.gz
    tar xvf Ejscript-doc-VERSION-DIST.tar
    

Removing Ejscript

  1. Login as root

  2. Change directory to the installation directory for Ejscript. This is usually /etc/ejs

  3. Run the remove script in the install directory for Ejscript by typing

    ./remove
    

Running Ejscript

The installation will install four commands:

Name Description
ejs The Ejscript command shell. This command can parse and execute ejs scripts from files or typed interactively on the console. This command contains both the Ejscript compiler and virtual machine.
ec The Ejscript compiler. This command can compile scripts into byte code form for later running via ejsvm.
ejsvm The Ejscript virtual machine. This command executes Ejscript modules that have been compiled from scripts by the ec command.
ejsmod The Ejscript module manager. This command generates assembler source code listings, HTML documentation and symbolic slot offset header files.

These commands will be installed in /usr/bin. To do a "Hello World" test, try typing the following. The "Hello World" is echoed back by ejs:

ejs
ejs-0> print("Hello World")

Hello World
ejs-0>

© Embedthis Software LLC, 2003-2009. All rights reserved. Embedthis, Ejscript and Appweb are trademarks of Embedthis Software LLC.