-
Notifications
You must be signed in to change notification settings - Fork 20
Building on Linux (64 bit)
Chris Toshok edited this page Jun 1, 2014
·
2 revisions
These instructions are all that's required to get things up and running on a vanilla ubuntu 14.04 install.
- make sure we have everything we need from the system to clone/build:
$ sudo apt-get install git nodejs-legacy llvm-3.4-dev npm clang-3.4 libunwind8-dev
- install these via npm since the apt-get versions are too old:
$ sudo npm install -g coffee-script node-gyp
- clone/setup ejs:
$ git clone https://github.com/toshok/echo-js
$ cd echo-git
$ git submodule init
$ git submodule update
$ export LLVM_SUFFIX=-3.4 # ubuntu installs the llvm tools as $toolname-3.4
- build and run tests:
$ make && make check
- make sure hello world works:
$ export NODE_PATH=`(cd test && make node-path)` # so node can find all ejs's non-installed modules
$ echo "console.log('hello world');" > helloworld.js
$ ./ejs helloworld.js
running on linux-x86-64
generating code for linux-x86-64
COMPILE helloworld.js
LINK helloworld.js.exe
done.
$ ./helloworld.js.exe
hello world
$