[ragel-users] Re: building trunk ragel -- needs ragel??
stephen.banna... at deanbrook.org
Sun Mar 23 20:40:55 UTC 2008
At 4:38 PM +0100 3/23/08, Wincent Colaiuta wrote:
>El 23/3/2008, a las 16:30, Stephen Bannasch escribió:
>> I'd like to build a trunk version of ragel but am getting stuck early
>> because ragel seems to require ragel to build.
>> Can I install an earlier version of ragel to get past this block?
>Back when I did this (back with Ragel 5.20) I followed this sequence:
>1. build/install from tarball (doesn't need Ragel)
>2. build/install kelbt (http://www.cs.queensu.ca/~thurston/kelbt/),
>also a prerequisite
>3. Subversion checkout and build
>I expect that the pattern is probably similar with the current trunk.
Thanks Wincent, that worked.
FYI: Ragel trunk compilation steps on MacOS 10.5.2 with MacPorts installed:
# get v6.0 of ragel installed -- needed to build trunk ragel
sudo port install ragel
# also install prerequisite gperf
sudo port install gperf
# download and install prerequisite kelbt
tar xvzf kelbt-0.12.tar.gz
sudo make install
# Checkout trunk ragel and install in a directory
# in home folder -- NOT in /usr/local.
# The reason is to not interfere with the ports system.
# When GCC compiles code it doesn't appear possible
# to tell it not to look in /usr/local/lib for libraries.
# So in general I've taken to putting code I compile
# from source that either:
# 1) creates libraries
# 2) creates binaries that are also made by ports
# in ~/dev/local
svn co svn://mambo.cs.queensu.ca/ragel/trunk ragel
./configure --prefix ~/dev/local
# add ~/dev/local/bin to PATH before /opt/local/bin
More information about the ragel-users