title: How do I install Perl's SVN::Client?
body: <p>I want to use the <a href="http://search.cpan.org/~mschwern/Alien-SVN-1.4.6.0/src/subversion/subversion/bindings/swig/perl/native/Client.pm" rel="noreferrer">SVN::Client</a> cpan module to check out code from a repository.</p>
  
  <p>But how to install and use this module? The documentation is kind of no existing.</p>
  
  <p>I have tried install the Alien::SVN module both through cpan and build it myself.
  And it seems to install okay. No error messages, and when i go into cpan again and do the following it states that the Alien::SVN module is installed.</p>
  
  <pre><code>cpan&gt; install Alien::SVN 
  Alien::SVN is up to date. 
  </code></pre>
  
  <p>Here is my class that uses the SVN::Client:</p>
  
  <pre><code>use strict;
  use warnings;
  use Alien::SVN;
  use SVN::Client;
  
  
  sub new {
   my $self = {
    localpath =&gt; ''
   };
   bless($self);
   return $self;
  }
  
  sub update_repository{
   my ($self) = @_;
  
   my $svn = SVN::Client-&gt;new();
   return $svn-&gt;update($self-&gt;_getPath(), 'HEAD', 1);
  }
  sub _getPath{
   my ($self) = @_;
   return $self-&gt;{localpath};
  }
  </code></pre>
  
  <p>So when i use a script to call the update repository method of this class i get the following error:</p>
  
  <pre><code>Can't locate SVN/Client.pm in @INC (@INC contains: /opt/STS /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /
  usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /opt/STS/svn.pm line 7.
  </code></pre>
  
  <p>I have also tried changing use SVN::Client with use Alien::SVN but with no luck.</p>
  
  <p>Does anyone have a working example of code, or a helpful tip to make the Alien::SVN / SVN::Client work?</p>