How do I install Perl's SVN::Client?

前端 未结 4 820
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-02 02:31

I want to use the SVN::Client cpan module to check out code from a repository.

But how to install and use this module? The documentation is kind of no existing.

相关标签:
4条回答
  • 2021-01-02 03:03

    Install the package subversion-perl.

    0 讨论(0)
  • 2021-01-02 03:04

    As best I can tell, Alien::SVN and its constituent modules are no longer maintained. The subversion binary it compiles is extremely old (1.4, circa 2006). You may be better off piping to a pre-installed (and up-to-date) binary.

    0 讨论(0)
  • 2021-01-02 03:12

    Follow following steps to install Alien-SVN module on you system:

    1) Download the latest Alien-SVN module from CPAN http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/Alien-SVN-v1.6.12.1.tar.gz

    2) Untar the file using taz-zxf <Package_name>

    3) cd Alien-SVN-v1.6.12.1

    4) The Apache Portable Runtime is required by the Alien-SVN. To download APR and APR-Util run time run the following commands while inside Alien-SVN-v1.6.12.1 directory

    svn co http://svn.apache.org/repos/asf/apr/apr/branches/1.2.x \apr
    svn co  http://svn.apache.org/repos/asf/apr/apr-util/branches/1.2.x \apr-util
    

    5) Now run perl Build.PL which is inside Alien-SVN-v1.6.12.1 directory

    6) It will ask for some options

    7) It will ask whether you would like to pass some arguments to configure. Give arguments as follows

    --with-apr=<path_where_you_chechek_out_apr> --with-apr-util=<path_where_you_chechek_out_apr-util>

    8) After successfully running Build.PL, run ./Build Alien-SVN-v1.6.12.1 directory.

    9) After running ./Build, successfully, open native directory which is located as Alien-SVN-v1.6.12.1/src/subversion/subversion/bindings/swig/perl/native

    10) Run following commands: perl Makefile.PL make make install

    11) This will install Alien-SVN on your system :)

    0 讨论(0)
  • 2021-01-02 03:23
    cpan> install SVN::Client 
    
    0 讨论(0)
提交回复
热议问题