Embedthis Ejscript 1.1.2
Home > Installation > Installing on MAC

Quick Nav

See Also

Installing on MAC OS X

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

It is recommended that you use the native DMG/PKG package as it will register the software with the system's software package manager. The self-install format consists of tar archives that you can manually extract for maximum control over the placement of the product files.

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

Installing the DMG Image

  1. Double click on the DMG image.
  2. Double click on the ejs.mpkg file icon.

Installing the Self-Install Image

  1. Run the Terminal application
  2. Uncompress and extract the files:
    tar xvfz ejs-VERSION-Apple-MACOSX-i386.tar.tar.gz
    
  3. Start the installation with administrator privilege:
  4. sudo ./install
    

Removing Ejscript

  1. Run a terminal and change directory to the installation directory for Ejscript. This is typically "/usr/lib/ejs".
  2. Run the uninstall script in the Ejscript install directory:
    sudo ./uninstall
    

Running Ejscript

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>

Use ^D to exit the ejs shell.

Other Commands

The installation will install five commands in /usr/bin.

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.
ejsc 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.
ejsweb The Ejscript web framework generator and manager. This command assists to create Ejscript Web applications that use the Ejscript Web Framework.

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