forked from perl11/potion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
67 lines (38 loc) · 1.23 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
~ building potion ~
Normally,
$ make
To build with debugging symbols,
$ make DEBUG=1
To build with the JIT off,
$ make JIT=0
Lastly, to verify your build,
$ make test
~ the latest potion ~
To build the bleeding edge, you will need
make, binutils and gcc.
Also, Ragel 6.2 or greater has to be around.
<http://www.complang.org/ragel/>
$ git clone git://github.com/why/potion.git
$ cd potion
$ make
(NOTE: There appear to be some bugs using Ragel under
64-bit, though. The UTF-8 tests fail. Try building
the grammar on a 32-bit and copy over pn-scan.c
into core/.)
~ installing ~
Since Potion is only a single binary right now
and there's no additional libs, I haven't written
an installation step yet.
~ building on windows ~
Potion's win32 binaries are built using MinGW.
<http://mingw.org/>
It's a bit hard to setup mingw and make on Windows.
I usually run a shell under Cygwin and add MinGW
to my $PATH.
Once that's all done,
$ make
The easiest way to do this, actually, is on Linux.
On Ubuntu, if you have MinGW installed,
$ make CC=i586-mingw32msvc-gcc
You may then rename `potion` to `potion.exe` and
donate that binary to the needy.