Index Animi Mei
Google


Search WWW Search Index Animi Mei
  
home :: tech :: dreamhost-and-svn-perl-bindings
2007 Mar 11 (Sun)

Dreamhost and SVN Perl bindings
Dreamhost already has Python bindings installed for SVN, but not the Perl ones. So it took some fitzing around to make git-svn work on my DH account. git-svn was giving an error that SSL wasn't supported, and after I tried installing subversion-1.4.3, it was saying that there was an SVN library mismatch. So, I just decided to installed the subversion version that was installed on the DH machine already (version 1.4.2).
The first thing I did was compile and install some dependencies: autoconf, curl, and libtool. I installed all of these under my home directory. After that, I downloaded neon-0.25.5, since that specific version is required by subversion. I compiled neon like so:

./configure --prefix=$HOME --with-ssl --with-libs=/usr --enable-shared
. After installing neon, I installed my own version of swig, configuring it with:
./configure --prefix=$HOME 
. I then downloaded subversion-1.4.2 (to match the version installed on the dreamhost machine) and configured it with:
./configure --prefix=$HOME --with-swig=$HOME --with-neon=$HOME
. I edited the Makefile to change line 604 to read:
cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL PREFIX=$(HOME) SITELIBEXP=$(HOME)/share/perl/5.8.4 SITEARCHEXP=$(HOME)/lib/perl5
. I had to make sure to add $HOME/lib/perl/5.8.4 to the $PERL5LIB, since SVN::Core was being installed there (and not in $HOME/lib/perl5).
I then ran make && make install && make swig-pl, and watched everything compile and install. When I ran make check-swig-pl, I got an error:
/tmp/subversion-1.4.2/subversion/libsvn_ra_dav/.libs/libsvn_ra_dav-1.so.0:
undefined symbol: SSL_load_error_strings at /usr/lib/perl/5.8/DynaLoader.pm
line 225.
. So I deleted
subversion/libsvn_ra_dav/.libs/libsvn_ra_dav-1.so.0
, ran make check-swig-pl again, and the tests passed. git-svn now works :-)

[all posts in /tech/]  [permanent link]