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

前端 未结 4 830
佛祖请我去吃肉
佛祖请我去吃肉 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: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

    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= --with-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 :)

提交回复
热议问题