Installing on Mac

The Embedthis Ejscript install distribution for Mac OS X is published as a an installable pkg file.

Installing the Image

  1. Double click on the PKG image.

Removing Ejscript

  1. Run a terminal and change directory to the installation directory for Ejscript. This is typically "/usr/lib/ejscript/latest".
  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 four commands with links in /usr/local/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 the ejs command.
ejsmod The Ejscript module manager. This command generates assembler source code listings, HTML documentation and symbolic slot offset header files.
mvc The Ejscript Model-View-Controller web framework generator and manager. This command assists to create Ejscript Web applications that use the Ejscript Web Framework.

© Embedthis Software, 2003-2015. All rights reserved.