These instructions are for Mac OS, but should work on any Unix that has GCC installed.

  1. Download the latest PCRE source: http://www.pcre.org

  2. Open Terminal.app and cd ~/Download/pcre-7.8

  3. ./configure

  4. make

  5. sudo make install

  6. Test your code using the examples from the page on Perl Compatible Regular Expressions.

These steps work as-is for about 70% of Unix software that is distributed as source. Another 10% or so require minor fiddling of options to work with Mac OS.

Note: On Mac OS, you may have to install the Developer Tools to get GCC, along with X11, XCode, etc. If it is a shared computer, your system administrator has probably already done this.

How to install PCRE (last edited 2008-09-24 19:15:54 by NathanSanders)