Quick Nav
See Also
Installing on MAC OS X
The Embedthis Ejscript install distribution for LINUX is published in two formats:
- Native DMG/PKG format
- Tar format for custom/self installs
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
- Double click on the DMG image.
- Double click on the ejs.mpkg file icon.
Installing the Self-Install Image
- Run the Terminal application
- Uncompress and extract the files:
tar xvfz ejs-VERSION-Apple-MACOSX-i386.tar.tar.gz
- Start the installation with administrator privilege:
-
sudo ./install
Removing Ejscript
- Run a terminal and change directory to the installation directory for Ejscript. This is typically "/usr/lib/ejs".
- 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. |