Re: [pcre-dev] Different Versions Of PCRE for pcretest, pcre…

Kezdőlap
Üzenet törlése
Szerző: Simeon F. Willbanks
Dátum:  
Címzett: pcre-dev
Tárgy: Re: [pcre-dev] Different Versions Of PCRE for pcretest, pcregrep & pcre-config
Philip,

Here is the output from make install:

$ make install
make[1]: Entering directory `/home/simeon/pcre-7.6'
test -z "/usr/lib" || /bin/mkdir -p "/usr/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libpcre.la'
'/usr/lib/libpcre.la'
/usr/bin/install -c .libs/libpcre.so.0.0.1 /usr/lib/libpcre.so.0.0.1
(cd /usr/lib && { ln -s -f libpcre.so.0.0.1 libpcre.so.0 || { rm -f
libpcre.so.0 && ln -s libpcre.so.0.0.1 libpcre.so.0; }; })
(cd /usr/lib && { ln -s -f libpcre.so.0.0.1 libpcre.so || { rm -f
libpcre.so && ln -s libpcre.so.0.0.1 libpcre.so; }; })
/usr/bin/install -c .libs/libpcre.lai /usr/lib/libpcre.la
/usr/bin/install -c .libs/libpcre.a /usr/lib/libpcre.a
chmod 644 /usr/lib/libpcre.a
ranlib /usr/lib/libpcre.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'


See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ./libtool --mode=install /usr/bin/install -c
'libpcreposix.la' '/usr/lib/libpcreposix.la'
libtool: install: warning: relinking `libpcreposix.la'
(cd /home/simeon/pcre-7.6; /bin/sh ./libtool --tag=CC --mode=relink
gcc -O2 -version-info 0:0:0 -o libpcreposix.la -rpath /usr/lib
pcreposix.lo libpcre.la )
gcc -shared .libs/pcreposix.o -L/usr/lib -lpcre -Wl,-soname
-Wl,libpcreposix.so.0 -o .libs/libpcreposix.so.0.0.0
/usr/bin/install -c .libs/libpcreposix.so.0.0.0T /usr/lib/libpcreposix.so.0.0.0
(cd /usr/lib && { ln -s -f libpcreposix.so.0.0.0 libpcreposix.so.0 ||
{ rm -f libpcreposix.so.0 && ln -s libpcreposix.so.0.0.0
libpcreposix.so.0; }; })
(cd /usr/lib && { ln -s -f libpcreposix.so.0.0.0 libpcreposix.so || {
rm -f libpcreposix.so && ln -s libpcreposix.so.0.0.0 libpcreposix.so;
}; })
/usr/bin/install -c .libs/libpcreposix.lai /usr/lib/libpcreposix.la
/usr/bin/install -c .libs/libpcreposix.a /usr/lib/libpcreposix.a
chmod 644 /usr/lib/libpcreposix.a
ranlib /usr/lib/libpcreposix.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'


See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libpcrecpp.la'
'/usr/lib/libpcrecpp.la'
libtool: install: warning: relinking `libpcrecpp.la'
(cd /home/simeon/pcre-7.6; /bin/sh ./libtool --tag=CXX --mode=relink
g++ -O2 -version-info 0:0:0 -o libpcrecpp.la -rpath /usr/lib
pcrecpp.lo pcre_scanner.lo pcre_stringpiece.lo libpcre.la )
g++ -shared -nostdlib
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o
/usr/lib/gcc/i386-redhat-linux/4.1.2/crtbeginS.o .libs/pcrecpp.o
.libs/pcre_scanner.o .libs/pcre_stringpiece.o -L/usr/lib -lpcre
-L/usr/lib/gcc/i386-redhat-linux/4.1.2
-L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. -lstdc++ -lm -lc
-lgcc_s /usr/lib/gcc/i386-redhat-linux/4.1.2/crtendS.o
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o -Wl,-soname
-Wl,libpcrecpp.so.0 -o .libs/libpcrecpp.so.0.0.0
/usr/bin/install -c .libs/libpcrecpp.so.0.0.0T /usr/lib/libpcrecpp.so.0.0.0
(cd /usr/lib && { ln -s -f libpcrecpp.so.0.0.0 libpcrecpp.so.0 || { rm
-f libpcrecpp.so.0 && ln -s libpcrecpp.so.0.0.0 libpcrecpp.so.0; }; })
(cd /usr/lib && { ln -s -f libpcrecpp.so.0.0.0 libpcrecpp.so || { rm
-f libpcrecpp.so && ln -s libpcrecpp.so.0.0.0 libpcrecpp.so; }; })
/usr/bin/install -c .libs/libpcrecpp.lai /usr/lib/libpcrecpp.la
/usr/bin/install -c .libs/libpcrecpp.a /usr/lib/libpcrecpp.a
chmod 644 /usr/lib/libpcrecpp.a
ranlib /usr/lib/libpcrecpp.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'


See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/bin" || /bin/mkdir -p "/usr/bin"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'pcretest'
'/usr/bin/pcretest'
/usr/bin/install -c .libs/pcretest /usr/bin/pcretest
/bin/sh ./libtool --mode=install /usr/bin/install -c 'pcregrep'
'/usr/bin/pcregrep'
/usr/bin/install -c .libs/pcregrep /usr/bin/pcregrep
test -z "/usr/bin" || /bin/mkdir -p "/usr/bin"
/usr/bin/install -c 'pcre-config' '/usr/bin/pcre-config'
test -z "/usr/share/doc/pcre" || /bin/mkdir -p "/usr/share/doc/pcre"
/usr/bin/install -c -m 644 'doc/pcre.txt' '/usr/share/doc/pcre/pcre.txt'
/usr/bin/install -c -m 644 'doc/pcre-config.txt'
'/usr/share/doc/pcre/pcre-config.txt'
/usr/bin/install -c -m 644 'doc/pcregrep.txt'
'/usr/share/doc/pcre/pcregrep.txt'
/usr/bin/install -c -m 644 'doc/pcretest.txt'
'/usr/share/doc/pcre/pcretest.txt'
/usr/bin/install -c -m 644 'AUTHORS' '/usr/share/doc/pcre/AUTHORS'
/usr/bin/install -c -m 644 'COPYING' '/usr/share/doc/pcre/COPYING'
/usr/bin/install -c -m 644 'ChangeLog' '/usr/share/doc/pcre/ChangeLog'
/usr/bin/install -c -m 644 'LICENCE' '/usr/share/doc/pcre/LICENCE'
/usr/bin/install -c -m 644 'NEWS' '/usr/share/doc/pcre/NEWS'
/usr/bin/install -c -m 644 'README' '/usr/share/doc/pcre/README'
test -z "/usr/share/doc/pcre/html" || /bin/mkdir -p "/usr/share/doc/pcre/html"
/usr/bin/install -c -m 644 'doc/html/index.html'
'/usr/share/doc/pcre/html/index.html'
/usr/bin/install -c -m 644 'doc/html/pcre.html'
'/usr/share/doc/pcre/html/pcre.html'
/usr/bin/install -c -m 644 'doc/html/pcre-config.html'
'/usr/share/doc/pcre/html/pcre-config.html'
/usr/bin/install -c -m 644 'doc/html/pcre_compile.html'
'/usr/share/doc/pcre/html/pcre_compile.html'
/usr/bin/install -c -m 644 'doc/html/pcre_compile2.html'
'/usr/share/doc/pcre/html/pcre_compile2.html'
/usr/bin/install -c -m 644 'doc/html/pcre_config.html'
'/usr/share/doc/pcre/html/pcre_config.html'
/usr/bin/install -c -m 644 'doc/html/pcre_copy_named_substring.html'
'/usr/share/doc/pcre/html/pcre_copy_named_substring.html'
/usr/bin/install -c -m 644 'doc/html/pcre_copy_substring.html'
'/usr/share/doc/pcre/html/pcre_copy_substring.html'
/usr/bin/install -c -m 644 'doc/html/pcre_dfa_exec.html'
'/usr/share/doc/pcre/html/pcre_dfa_exec.html'
/usr/bin/install -c -m 644 'doc/html/pcre_exec.html'
'/usr/share/doc/pcre/html/pcre_exec.html'
/usr/bin/install -c -m 644 'doc/html/pcre_free_substring.html'
'/usr/share/doc/pcre/html/pcre_free_substring.html'
/usr/bin/install -c -m 644 'doc/html/pcre_free_substring_list.html'
'/usr/share/doc/pcre/html/pcre_free_substring_list.html'
/usr/bin/install -c -m 644 'doc/html/pcre_fullinfo.html'
'/usr/share/doc/pcre/html/pcre_fullinfo.html'
/usr/bin/install -c -m 644 'doc/html/pcre_get_named_substring.html'
'/usr/share/doc/pcre/html/pcre_get_named_substring.html'
/usr/bin/install -c -m 644 'doc/html/pcre_get_stringnumber.html'
'/usr/share/doc/pcre/html/pcre_get_stringnumber.html'
/usr/bin/install -c -m 644
'doc/html/pcre_get_stringtable_entries.html'
'/usr/share/doc/pcre/html/pcre_get_stringtable_entries.html'
/usr/bin/install -c -m 644 'doc/html/pcre_get_substring.html'
'/usr/share/doc/pcre/html/pcre_get_substring.html'
/usr/bin/install -c -m 644 'doc/html/pcre_get_substring_list.html'
'/usr/share/doc/pcre/html/pcre_get_substring_list.html'
/usr/bin/install -c -m 644 'doc/html/pcre_info.html'
'/usr/share/doc/pcre/html/pcre_info.html'
/usr/bin/install -c -m 644 'doc/html/pcre_maketables.html'
'/usr/share/doc/pcre/html/pcre_maketables.html'
/usr/bin/install -c -m 644 'doc/html/pcre_refcount.html'
'/usr/share/doc/pcre/html/pcre_refcount.html'
/usr/bin/install -c -m 644 'doc/html/pcre_study.html'
'/usr/share/doc/pcre/html/pcre_study.html'
/usr/bin/install -c -m 644 'doc/html/pcre_version.html'
'/usr/share/doc/pcre/html/pcre_version.html'
/usr/bin/install -c -m 644 'doc/html/pcreapi.html'
'/usr/share/doc/pcre/html/pcreapi.html'
/usr/bin/install -c -m 644 'doc/html/pcrebuild.html'
'/usr/share/doc/pcre/html/pcrebuild.html'
/usr/bin/install -c -m 644 'doc/html/pcrecallout.html'
'/usr/share/doc/pcre/html/pcrecallout.html'
/usr/bin/install -c -m 644 'doc/html/pcrecompat.html'
'/usr/share/doc/pcre/html/pcrecompat.html'
/usr/bin/install -c -m 644 'doc/html/pcregrep.html'
'/usr/share/doc/pcre/html/pcregrep.html'
/usr/bin/install -c -m 644 'doc/html/pcrematching.html'
'/usr/share/doc/pcre/html/pcrematching.html'
/usr/bin/install -c -m 644 'doc/html/pcrepartial.html'
'/usr/share/doc/pcre/html/pcrepartial.html'
/usr/bin/install -c -m 644 'doc/html/pcrepattern.html'
'/usr/share/doc/pcre/html/pcrepattern.html'
/usr/bin/install -c -m 644 'doc/html/pcreperform.html'
'/usr/share/doc/pcre/html/pcreperform.html'
/usr/bin/install -c -m 644 'doc/html/pcreposix.html'
'/usr/share/doc/pcre/html/pcreposix.html'
/usr/bin/install -c -m 644 'doc/html/pcreprecompile.html'
'/usr/share/doc/pcre/html/pcreprecompile.html'
/usr/bin/install -c -m 644 'doc/html/pcresample.html'
'/usr/share/doc/pcre/html/pcresample.html'
/usr/bin/install -c -m 644 'doc/html/pcrestack.html'
'/usr/share/doc/pcre/html/pcrestack.html'
/usr/bin/install -c -m 644 'doc/html/pcresyntax.html'
'/usr/share/doc/pcre/html/pcresyntax.html'
/usr/bin/install -c -m 644 'doc/html/pcretest.html'
'/usr/share/doc/pcre/html/pcretest.html'
test -z "/usr/share/doc/pcre/html" || /bin/mkdir -p "/usr/share/doc/pcre/html"
/usr/bin/install -c -m 644 'doc/html/pcrecpp.html'
'/usr/share/doc/pcre/html/pcrecpp.html'
test -z "/usr/include" || /bin/mkdir -p "/usr/include"
/usr/bin/install -c -m 644 'pcreposix.h' '/usr/include/pcreposix.h'
/usr/bin/install -c -m 644 'pcrecpp.h' '/usr/include/pcrecpp.h'
/usr/bin/install -c -m 644 'pcre_scanner.h' '/usr/include/pcre_scanner.h'
test -z "/usr/share/man/man1" || /bin/mkdir -p "/usr/share/man/man1"
/usr/bin/install -c -m 644 './doc/pcre-config.1'
'/usr/share/man/man1/pcre-config.1'
/usr/bin/install -c -m 644 './doc/pcregrep.1' '/usr/share/man/man1/pcregrep.1'
/usr/bin/install -c -m 644 './doc/pcretest.1' '/usr/share/man/man1/pcretest.1'
test -z "/usr/share/man/man3" || /bin/mkdir -p "/usr/share/man/man3"
/usr/bin/install -c -m 644 './doc/pcrecpp.3' '/usr/share/man/man3/pcrecpp.3'
/usr/bin/install -c -m 644 './doc/pcre.3' '/usr/share/man/man3/pcre.3'
/usr/bin/install -c -m 644 './doc/pcre_compile.3'
'/usr/share/man/man3/pcre_compile.3'
/usr/bin/install -c -m 644 './doc/pcre_compile2.3'
'/usr/share/man/man3/pcre_compile2.3'
/usr/bin/install -c -m 644 './doc/pcre_config.3'
'/usr/share/man/man3/pcre_config.3'
/usr/bin/install -c -m 644 './doc/pcre_copy_named_substring.3'
'/usr/share/man/man3/pcre_copy_named_substring.3'
/usr/bin/install -c -m 644 './doc/pcre_copy_substring.3'
'/usr/share/man/man3/pcre_copy_substring.3'
/usr/bin/install -c -m 644 './doc/pcre_dfa_exec.3'
'/usr/share/man/man3/pcre_dfa_exec.3'
/usr/bin/install -c -m 644 './doc/pcre_exec.3'
'/usr/share/man/man3/pcre_exec.3'
/usr/bin/install -c -m 644 './doc/pcre_free_substring.3'
'/usr/share/man/man3/pcre_free_substring.3'
/usr/bin/install -c -m 644 './doc/pcre_free_substring_list.3'
'/usr/share/man/man3/pcre_free_substring_list.3'
/usr/bin/install -c -m 644 './doc/pcre_fullinfo.3'
'/usr/share/man/man3/pcre_fullinfo.3'
/usr/bin/install -c -m 644 './doc/pcre_get_named_substring.3'
'/usr/share/man/man3/pcre_get_named_substring.3'
/usr/bin/install -c -m 644 './doc/pcre_get_stringnumber.3'
'/usr/share/man/man3/pcre_get_stringnumber.3'
/usr/bin/install -c -m 644 './doc/pcre_get_stringtable_entries.3'
'/usr/share/man/man3/pcre_get_stringtable_entries.3'
/usr/bin/install -c -m 644 './doc/pcre_get_substring.3'
'/usr/share/man/man3/pcre_get_substring.3'
/usr/bin/install -c -m 644 './doc/pcre_get_substring_list.3'
'/usr/share/man/man3/pcre_get_substring_list.3'
/usr/bin/install -c -m 644 './doc/pcre_info.3'
'/usr/share/man/man3/pcre_info.3'
/usr/bin/install -c -m 644 './doc/pcre_maketables.3'
'/usr/share/man/man3/pcre_maketables.3'
/usr/bin/install -c -m 644 './doc/pcre_refcount.3'
'/usr/share/man/man3/pcre_refcount.3'
/usr/bin/install -c -m 644 './doc/pcre_study.3'
'/usr/share/man/man3/pcre_study.3'
/usr/bin/install -c -m 644 './doc/pcre_version.3'
'/usr/share/man/man3/pcre_version.3'
/usr/bin/install -c -m 644 './doc/pcreapi.3' '/usr/share/man/man3/pcreapi.3'
/usr/bin/install -c -m 644 './doc/pcrebuild.3'
'/usr/share/man/man3/pcrebuild.3'
/usr/bin/install -c -m 644 './doc/pcrecallout.3'
'/usr/share/man/man3/pcrecallout.3'
/usr/bin/install -c -m 644 './doc/pcrecompat.3'
'/usr/share/man/man3/pcrecompat.3'
/usr/bin/install -c -m 644 './doc/pcrematching.3'
'/usr/share/man/man3/pcrematching.3'
/usr/bin/install -c -m 644 './doc/pcrepartial.3'
'/usr/share/man/man3/pcrepartial.3'
/usr/bin/install -c -m 644 './doc/pcrepattern.3'
'/usr/share/man/man3/pcrepattern.3'
/usr/bin/install -c -m 644 './doc/pcreperform.3'
'/usr/share/man/man3/pcreperform.3'
/usr/bin/install -c -m 644 './doc/pcreposix.3'
'/usr/share/man/man3/pcreposix.3'
/usr/bin/install -c -m 644 './doc/pcreprecompile.3'
'/usr/share/man/man3/pcreprecompile.3'
/usr/bin/install -c -m 644 './doc/pcresample.3'
'/usr/share/man/man3/pcresample.3'
/usr/bin/install -c -m 644 './doc/pcrestack.3'
'/usr/share/man/man3/pcrestack.3'
/usr/bin/install -c -m 644 './doc/pcresyntax.3'
'/usr/share/man/man3/pcresyntax.3'
test -z "/usr/include" || /bin/mkdir -p "/usr/include"
/usr/bin/install -c -m 644 'pcre.h' '/usr/include/pcre.h'
/usr/bin/install -c -m 644 'pcrecpparg.h' '/usr/include/pcrecpparg.h'
/usr/bin/install -c -m 644 'pcre_stringpiece.h'
'/usr/include/pcre_stringpiece.h'
test -z "/usr/lib/pkgconfig" || /bin/mkdir -p "/usr/lib/pkgconfig"
/usr/bin/install -c -m 644 'libpcre.pc' '/usr/lib/pkgconfig/libpcre.pc'
/usr/bin/install -c -m 644 'libpcrecpp.pc' '/usr/lib/pkgconfig/libpcrecpp.pc'
make[1]: Leaving directory `/home/simeon/pcre-7.6'

I than ran pcretest from inside the source directory:

$ ./pcretest -C
PCRE version 7.6 2008-01-28
Compiled with
UTF-8 support
Unicode properties support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack

Next I ran it from the same directory, but called the system pcretest:

$ pcretest -C
PCRE version 6.6 06-Feb-2006
Compiled with
UTF-8 support
No Unicode properties support
Newline sequence is LF
\R matches CR, LF, or CRLF only
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack

One more time with the absolute path:

$ /usr/bin/pcretest -C
PCRE version 6.6 06-Feb-2006
Compiled with
UTF-8 support
No Unicode properties support
Newline sequence is LF
\R matches CR, LF, or CRLF only
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack

Again, thanks for taking the time to help me debug this installation.

Simeon