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

不打扰是莪最后的温柔 提交于 2019-11-30 11:50:05

Install the package subversion-perl.

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

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.

cpan> install SVN::Client 
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!