Quick Nav
See Also
Installing on Linux
The Ejscript install distribution for LINUX is published in several formats:
- Native RPM format for RPM systems such as Fedora
- Native Debian format for Debian based systems such as Ubuntu
- Tar format for custom/self installs
It is recommended that you use one of the native formats if your system supports it as these will register the software installation with the system's software manager. The self-install format consists of Tar archives that you can manually extract for maximum control over the placement of the product files.
All formats contains 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 RPM or Debian Images
- Uncompress and extract the image:
tar xvfz ejs-VERSION-DIST-LINUX-i686.FMT.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), and FMT is either rpm or deb.
- Then start the installation with administrator privilege:
sudo ./install
Installing the Self-Install Image
- Uncompress and extract the image:
tar xvfz ejs-VERSION-DIST-LINUX-i686.tar.tar.gz
- Then start the installation with administrator privilege:
sudo ./install
Removing Ejscript
- Change directory to the installation directory for Ejscript. This is usually /usr/lib/ejs
- Run the uninstall script in the install directory for Ejscript:
sudo ./uninstall
Running Ejscript
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
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. |