Prerequisites
- Node.js (0.10.9 or higher with npm)
- Make sure you have gcc/g++ 4.6 (4.7 is too strict to build ragel-js)
- Make sure you have autoconf and automake (
brew install automake
) - Make sure you have the official ragel (
brew install ragel
)
Clone the gcc patched version of ragel-js
$ git clone https://github.com/codeimpossible/ragel-js
Then, we need to build and install kelbt
, which hasn't been supported for a while
$ wget http://www.complang.org/kelbt/kelbt-0.15.tar.gz
$ tar -xf kelbt-0.15.tar.gz
$ cd kelbt-0.15 && cp ../ragel-js/ragel-svn/aapl/* ./aapl
$ make && make install
now kelbt should be patched for gcc 4.2+
and should be installed!
now it's time to make our patched version of ragel and install it
$ cd ragel-js/ragel-svn && ./autogen.sh && ./configure --disable-manual && make && make install