====== PECL Package svn - subversion access ====== ===== Overview ===== //This extension implements PHP bindings for ยป Subversion (SVN), a version control system, allowing PHP scripts to communicate with SVN repositories and working copies without direct command line calls to the svn executable. // ===== Links ===== http://pecl.php.net/package/svn ===== Installation ===== aptitude install re2c subversion libsvn-dev pecl install svn-beta downloading svn-0.5.1.tgz ... Starting to download svn-0.5.1.tgz (23,563 bytes) ........done: 23,563 bytes 4 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 Please provide the prefix of Subversion installation [autodetect] : Please provide the prefix of the APR installation used with Subversion [autodetect] : building in /var/tmp/pear-build-root/svn-0.5.1 running: /tmp/pear/temp/svn/configure --with-svn --with-svn-apr checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 checking for PHP extension directory... /usr/lib/php5/20060613+lfs checking for PHP installed headers prefix... /usr/include/php5 checking for re2c... re2c checking for re2c version... 0.13.5 (ok) checking for gawk... gawk checking for svn support... yes, shared checking for specifying the location of apr for svn... yes, shared checking for svn includes... Found libsvn 1.5.1 checking for apr and apr-util... Found apr 1.2.12 libsvn includes: "-I/usr/include/subversion-1 -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE" libsvn ldflags: "-lsvn_client-1 -lsvn_fs-1 -lsvn_repos-1 -lsvn_subr-1 -L/usr/lib -lapr-1" checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 98304 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool appending configuration tag "F77" to libtool configure: creating ./config.status config.status: creating config.h running: make /bin/sh /var/tmp/pear-build-root/svn-0.5.1/libtool --mode=compile gcc -I/usr/include/subversion-1 -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I. -I/tmp/pear/temp/svn -DPHP_ATOM_INC -I/var/tmp/pear-build-root/svn-0.5.1/include -I/var/tmp/pear-build-root/svn-0.5.1/main -I/tmp/pear/temp/svn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/subversion-1 -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/svn/svn.c -o svn.lo mkdir .libs gcc -I/usr/include/subversion-1 -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I. -I/tmp/pear/temp/svn -DPHP_ATOM_INC -I/var/tmp/pear-build-root/svn-0.5.1/include -I/var/tmp/pear-build-root/svn-0.5.1/main -I/tmp/pear/temp/svn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/subversion-1 -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/svn/svn.c -fPIC -DPIC -o .libs/svn.o /bin/sh /var/tmp/pear-build-root/svn-0.5.1/libtool --mode=link gcc -DPHP_ATOM_INC -I/var/tmp/pear-build-root/svn-0.5.1/include -I/var/tmp/pear-build-root/svn-0.5.1/main -I/tmp/pear/temp/svn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/subversion-1 -I/usr/include/apr-1.0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -g -O2 -o svn.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-root/svn-0.5.1/modules svn.lo -lsvn_client-1 -lsvn_fs-1 -lsvn_repos-1 -lsvn_subr-1 -lapr-1 gcc -shared .libs/svn.o /usr/lib/libsvn_client-1.so /usr/lib/libsvn_fs-1.so /usr/lib/libsvn_repos-1.so /usr/lib/libsvn_subr-1.so /usr/lib/libapr-1.so -Wl,-soname -Wl,svn.so -o .libs/svn.so creating svn.la (cd .libs && rm -f svn.la && ln -s ../svn.la svn.la) /bin/sh /var/tmp/pear-build-root/svn-0.5.1/libtool --mode=install cp ./svn.la /var/tmp/pear-build-root/svn-0.5.1/modules cp ./.libs/svn.so /var/tmp/pear-build-root/svn-0.5.1/modules/svn.so cp ./.libs/svn.lai /var/tmp/pear-build-root/svn-0.5.1/modules/svn.la PATH="$PATH:/sbin" ldconfig -n /var/tmp/pear-build-root/svn-0.5.1/modules ---------------------------------------------------------------------- Libraries have been installed in: /var/tmp/pear-build-root/svn-0.5.1/modules 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. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. running: make INSTALL_ROOT="/var/tmp/pear-build-root/install-svn-0.5.1" install Installing shared extensions: /var/tmp/pear-build-root/install-svn-0.5.1/usr/lib/php5/20060613+lfs/ running: find "/var/tmp/pear-build-root/install-svn-0.5.1" | xargs ls -dils 215582 4 drwxr-xr-x 3 root root 4096 2009-11-11 20:04 /var/tmp/pear-build-root/install-svn-0.5.1 215603 4 drwxr-xr-x 3 root root 4096 2009-11-11 20:04 /var/tmp/pear-build-root/install-svn-0.5.1/usr 215604 4 drwxr-xr-x 3 root root 4096 2009-11-11 20:04 /var/tmp/pear-build-root/install-svn-0.5.1/usr/lib 215605 4 drwxr-xr-x 3 root root 4096 2009-11-11 20:04 /var/tmp/pear-build-root/install-svn-0.5.1/usr/lib/php5 215606 4 drwxr-xr-x 2 root root 4096 2009-11-11 20:04 /var/tmp/pear-build-root/install-svn-0.5.1/usr/lib/php5/20060613+lfs 215602 156 -rwxr-xr-x 1 root root 153530 2009-11-11 20:04 /var/tmp/pear-build-root/install-svn-0.5.1/usr/lib/php5/20060613+lfs/svn.so Build process completed successfully Installing '/usr/lib/php5/20060613+lfs/svn.so' install ok: channel://pecl.php.net/svn-0.5.1 configuration option "php_ini" is not set to php.ini location You should add "extension=svn.so" to php.ini echo "extension=svn.so" > /etc/php5/conf.d/svn.ini /etc/init.d/apache2 restart ===== phpinfo ===== svn svn support enabled svn client version 1.5.1 svn extension version 0.5.1