Alien-SVN
view release on metacpan or search on metacpan
src/subversion/subversion/bindings/swig/INSTALL view on Meta::CPAN
If you plan to build the Perl bindings, and have a system
with more than one version of perl installed, you may need
to pass
--with-perl5=/path/to/correct/perl/binary
to the configure script. You need Perl 5.8.0 or above.
* Build and install.
Run 'make && make install'
* To verify you have SWIG installed correctly, run "swig -version"
from the command line. SWIG should report that it is version 1.3.24
or newer.
Step 2: Build and Install Subversion.
See Subversion's own INSTALL file for details.
Make sure that Subversion's ./configure script sees your installed SWIG!
It tries to detect SWIG near the very end of its output.
Also make sure that the configure script sees the paths to the perl and/or
python executable you used to configure SWIG as above. If it does not then
you can specify the correct path by adding PYTHON=/path/to/python or
PERL=/path/to/perl onto the command line for configure. For example:
./configure PYTHON=/usr/bin/python2.5 PERL=/usr/bin/perl5.8.0
If Subversion's ./configure finds a SWIG that it's happy with, then
it will build special glue libraries to link svn to the swig bindings:
libsvn_swig_py.so (for Python)
libsvn_swig_perl.so (for Perl)
Step 3: Install Specific Language Bindings
* Python
1. Run 'make swig-py' from the top of the Subversion build tree,
to build the bindings.
(This will invoke SWIG on the *.i files, resulting in a collection
of .c source files. It will then compile and link those .c files into
Python libraries.)
2. Run 'make check-swig-py' from the top of the Subversion build
tree, to test the bindings
3. Run 'make install-swig-py' (as root, typically)
from the top of the Subversion build tree. This will copy
your new Python libraries into the appropriate system location.
Note: If you don't have access to install to Python's site-packages
directory, you can have the Python modules install to your home
directory. You can do this by running
'make install-swig-py swig_pydir=~'.
Note: If you want to install to an alternate prefix (usually only
if you are building packages), you can supply the prefix here. An
example of doing this for building rpms looks like
'make install-swig-py DESTDIR=$RPM_BUILD_ROOT/usr'.
4. Make sure that whatever directory the bindings got installed in
is in your Python search path. That directory depends on how you
installed; a typical location is /usr/local/lib/svn-python/.
There are several ways to do this. See Python's documentation for
'sys.path' and 'PYTHONPATH'. A nice way to do this is:
$ echo /usr/local/lib/svn-python \
> /usr/lib/python2.x/site-packages/subversion.pth
You may also need to update your operating system's dynamic linker
configuration to enable Python to load these new libraries. On some
systems this is done by running 'ldconfig'.
* Perl
Perl 5.8.0 is required. You can specify the perl binary by passing
PERL=/path/to/perl as part of the configure command in the top level
of the Subversion source tree. Make sure that the Perl version used
is the same one that you configured SWIG to run against during the
SWIG configure (see above).
1. Run `make swig-pl' from the top of the Subversion build tree.
2. Run `make check-swig-pl' from the top of the Subversion build
tree, to test the bindings
3. to install run `make install-swig-pl' from the top of the
Subversion build tree.
If you need to pass extra parameters to Perl build process (Makefile.PL),
then you need to do this process somewhat different:
1. Run `make swig-pl-lib' from the top of the Subversion build tree.
2. Run `make install-swig-pl-lib'
3. cd subversion/bindings/swig/perl/native
4. Run `perl Makefile.PL EXTRAOPTIONSHERE`
5. Run `make install'
To install the Perl bindings in a location other than the system
Perl directory, use the above instructions with the extra option
PREFIX=/your/prefix/here.
* Ruby
1. Run `make swig-rb' from the top of the Subversion build tree,
to build the bindings.
2. Run `make check-swig-rb' from the top of the Subversion build
tree, to test the bindings.
3. To install, run `make install-swig-rb' from the top of the
Subversion build tree.
( run in 0.552 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )