forked from fizx/parsley
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
84 lines (66 loc) · 2.33 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Welcome to Parsley!
Parsley depends on
- argp (standard with Linux, other platforms use argp-standalone package)
- the JSON C library from http://oss.metaparadigm.com/json-c/ (I used 0.8)
- pcre (with dev headers)
- libxml2 (>= 2.7)
- libxslt (with exslt)
Here's how to install it:
1. Get the release
------------------------------------------------------------------------
Parsley is currently still being tracked in git, and isn't ready to make a
formal release. So you need to either clone or download the latest tarball:
git clone git://github.com/fizx/parsley.git
or
wget http://github.com/fizx/parsley/tarball/master
2. Build for your platform
------------------------------------------------------------------------
Enter your parsley working directory, (from the clone or download you
just made) and, based on your platform, do the following:
Debian/Ubuntu
------------------------------------------------------------------------
sudo apt-get install libxslt1-dev libpcre3-dev build-essential wget
wget http://oss.metaparadigm.com/json-c/json-c-0.8.tar.gz
tar -zxf json-c-0.8.tar.gz
cd json-c-0.8
./configure
make
sudo make install
cd -
./configure
make
sudo make install
Mac OS X with Homebrew:
------------------------------------------------------------------------
brew install argp-standalone pcre json-c
./configure
make
sudo make install
If you have a few extra minutes, consider replacing the last make with a
'make check' and let us know if it reports any failures from the test
suite - thanks!
Mac OS X with MacPorts:
------------------------------------------------------------------------
sudo port install argp-standalone pcre wget libxslt
wget http://oss.metaparadigm.com/json-c/json-c-0.8.tar.gz
tar -zxf json-c-0.8.tar.gz
cd json-c-0.8
./configure
make
sudo make install
cd -
./configure
make
sudo make install
If you have a few extra minutes, consider replacing the last make with a
'make check' and let us know if it reports any failures from the test
suite - thanks!
3. Ruby Binding (via Gems)
------------------------------------------------------------------------
http://github.com/fizx/parsley-ruby
4. Python Binding
------------------------------------------------------------------------
http://github.com/fizx/pyparsley
Other OS/Configurations:
------------------------------------------------------------------------
Haven't tried.