Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (66 sloc) 2.33 KB
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.