Perl GD module won't install -

后端 未结 2 1634
暖寄归人
暖寄归人 2020-12-11 20:22

I\'m trying to figure out why I can\'t get the GD perl module to install on my Debian 7 server. Here is how I installed the core stuff:



        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 21:08

    The error you are getting is

    Unknown option: installdirs
    Usage: perl Build.PL [options]
    

    cpan expects Build.PL to pass its arguments to Module::Build, but GD has a funky Build.PL. Let's "fix" it.

    Execute the following from a temporary directory:

    wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.56.tar.gz
      -or-
    curl -L http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.56.tar.gz >GD-2.56.tar.gz
    
    tar xvzf GD-2.56.tar.gz
    cd GD-2.56
    perl -i~ -pE'say "Getopt::Long::Configure(qw( pass_through ));" if /GetOptions/;' Build.PL
    /usr/bin/perl Build.PL --installdirs site
    sudo ./Build.PL installdeps
    ./Build.PL make
    ./Build.PL test
    sudo ./Build.PL install
    

提交回复
热议问题