/[pcre]/code/trunk/README
ViewVC logotype

Diff of /code/trunk/README

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 260 by ph10, Thu Sep 20 10:19:16 2007 UTC revision 376 by ph10, Sun Mar 1 12:00:59 2009 UTC
# Line 1  Line 1 
1  README file for PCRE (Perl-compatible regular expression library)  README file for PCRE (Perl-compatible regular expression library)
2  -----------------------------------------------------------------  -----------------------------------------------------------------
3    
4  The latest release of PCRE is always available from  The latest release of PCRE is always available in three alternative formats
5    from:
6    
7    ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-xxx.tar.gz    ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-xxx.tar.gz
8      ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-xxx.tar.bz2
9      ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-xxx.zip
10    
11  There is a mailing list for discussion about the development of PCRE at  There is a mailing list for discussion about the development of PCRE at
12    
# Line 119  If you are using HP's ANSI C++ compiler Line 122  If you are using HP's ANSI C++ compiler
122  in the section entitled "Using HP's ANSI C++ compiler (aCC)" below.  in the section entitled "Using HP's ANSI C++ compiler (aCC)" below.
123    
124  The following instructions assume the use of the widely used "configure, make,  The following instructions assume the use of the widely used "configure, make,
125  make install" process. There is also some experimental support for "cmake" in  make install" process. There is also support for CMake in the PCRE
126  the PCRE distribution, but it is incomplete and not documented. However, if you  distribution; there are some comments about using CMake in the NON-UNIX-USE
127  are a "cmake" user, you might want to try it.  file, though it can also be used in Unix-like systems.
128    
129  To build PCRE on a Unix-like system, first run the "configure" command from the  To build PCRE on a Unix-like system, first run the "configure" command from the
130  PCRE distribution directory, with your current directory set to the directory  PCRE distribution directory, with your current directory set to the directory
# Line 258  library. You can read more about them in Line 261  library. You can read more about them in
261    
262    This automatically implies --enable-rebuild-chartables (see above).    This automatically implies --enable-rebuild-chartables (see above).
263    
264    . It is possible to compile pcregrep to use libz and/or libbz2, in order to
265      read .gz and .bz2 files (respectively), by specifying one or both of
266    
267      --enable-pcregrep-libz
268      --enable-pcregrep-libbz2
269    
270      Of course, the relevant libraries must be installed on your system.
271    
272    . It is possible to compile pcretest so that it links with the libreadline
273      library, by specifying
274    
275      --enable-pcretest-libreadline
276    
277      If this is done, when pcretest's input is from a terminal, it reads it using
278      the readline() function. This provides line-editing and history facilities.
279      Note that libreadline is GPL-licenced, so if you distribute a binary of
280      pcretest linked in this way, there may be licensing issues.
281    
282      Setting this option causes the -lreadline option to be added to the pcretest
283      build. In many operating environments with a sytem-installed readline
284      library this is sufficient. However, in some environments (e.g. if an
285      unmodified distribution version of readline is in use), it may be necessary
286      to specify something like LIBS="-lncurses" as well. This is because, to quote
287      the readline INSTALL, "Readline uses the termcap functions, but does not link
288      with the termcap or curses library itself, allowing applications which link
289      with readline the to choose an appropriate library." If you get error
290      messages about missing functions tgetstr, tgetent, tputs, tgetflag, or tgoto,
291      this is the problem, and linking with the ncurses library should fix it.
292    
293  The "configure" script builds the following files for the basic C library:  The "configure" script builds the following files for the basic C library:
294    
295  . Makefile is the makefile that builds the library  . Makefile is the makefile that builds the library
# Line 285  script that can be run to recreate the c Line 317  script that can be run to recreate the c
317  contains compiler output from tests that "configure" runs.  contains compiler output from tests that "configure" runs.
318    
319  Once "configure" has run, you can run "make". It builds two libraries, called  Once "configure" has run, you can run "make". It builds two libraries, called
320  libpcre and libpcreposix, a test program called pcretest, a demonstration  libpcre and libpcreposix, a test program called pcretest, and the pcregrep
321  program called pcredemo, and the pcregrep command. If a C++ compiler was found  command. If a C++ compiler was found on your system, "make" also builds the C++
322  on your system, "make" also builds the C++ wrapper library, which is called  wrapper library, which is called libpcrecpp, and some test programs called
323  libpcrecpp, and some test programs called pcrecpp_unittest,  pcrecpp_unittest, pcre_scanner_unittest, and pcre_stringpiece_unittest.
324  pcre_scanner_unittest, and pcre_stringpiece_unittest. Building the C++ wrapper  Building the C++ wrapper can be disabled by adding --disable-cpp to the
325  can be disabled by adding --disable-cpp to the "configure" command.  "configure" command.
326    
327  The command "make check" runs all the appropriate tests. Details of the PCRE  The command "make check" runs all the appropriate tests. Details of the PCRE
328  tests are given below in a separate section of this document.  tests are given below in a separate section of this document.
# Line 342  system. The following are installed (fil Line 374  system. The following are installed (fil
374      pcretest.txt   the pcretest man page      pcretest.txt   the pcretest man page
375      pcregrep.txt   the pcregrep man page      pcregrep.txt   the pcregrep man page
376    
 Note that the pcredemo program that is built by "configure" is *not* installed  
 anywhere. It is a demonstration for programmers wanting to use PCRE.  
   
377  If you want to remove PCRE from your system, you can run "make uninstall".  If you want to remove PCRE from your system, you can run "make uninstall".
378  This removes all the files that "make install" installed. However, it does not  This removes all the files that "make install" installed. However, it does not
379  remove any directories, because these are often shared with other programs.  remove any directories, because these are often shared with other programs.
# Line 616  The distribution should contain the foll Line 645  The distribution should contain the foll
645    pcre_study.c            )    pcre_study.c            )
646    pcre_tables.c           )    pcre_tables.c           )
647    pcre_try_flipped.c      )    pcre_try_flipped.c      )
648    pcre_ucp_searchfuncs.c  )    pcre_ucd.c              )
649    pcre_valid_utf8.c       )    pcre_valid_utf8.c       )
650    pcre_version.c          )    pcre_version.c          )
651    pcre_xclass.c           )    pcre_xclass.c           )
# Line 625  The distribution should contain the foll Line 654  The distribution should contain the foll
654    pcre.h.in               template for pcre.h when built by "configure"    pcre.h.in               template for pcre.h when built by "configure"
655    pcreposix.h             header for the external POSIX wrapper API    pcreposix.h             header for the external POSIX wrapper API
656    pcre_internal.h         header for internal use    pcre_internal.h         header for internal use
657    ucp.h                   ) headers concerned with    ucp.h                   header for Unicode property handling
   ucpinternal.h           )   Unicode property handling  
   ucptable.h              ) (this one is the data table)  
658    
659    config.h.in             template for config.h, which is built by "configure"    config.h.in             template for config.h, which is built by "configure"
660    
# Line 701  The distribution should contain the foll Line 728  The distribution should contain the foll
728    
729  (D) Auxiliary files for cmake support  (D) Auxiliary files for cmake support
730    
731      cmake/COPYING-CMAKE-SCRIPTS
732      cmake/FindPackageHandleStandardArgs.cmake
733      cmake/FindReadline.cmake
734    CMakeLists.txt    CMakeLists.txt
735    config-cmake.h.in    config-cmake.h.in
736    
# Line 725  The distribution should contain the foll Line 755  The distribution should contain the foll
755  Philip Hazel  Philip Hazel
756  Email local part: ph10  Email local part: ph10
757  Email domain: cam.ac.uk  Email domain: cam.ac.uk
758  Last updated: 21 September 2007  Last updated: 27 February 2009

Legend:
Removed from v.260  
changed lines
  Added in v.376

  ViewVC Help
Powered by ViewVC 1.1.5