2016-11-15 12 views
-2

私はマックの端末に小枝をインストールしようとしていますが、次のようにエラーがたくさんあるようです:XMLは::小枝は、Mac用端末にインストールに失敗

Admins-MBP:~ admin$ cpan install XML::Twig 
    CPAN: Storable loaded ok (v2.34) 
    Reading '/Users/admin/.cpan/Metadata' 
     Database was generated on Mon, 15 Aug 2016 09:17:02 GMT 
    CPAN: Time::HiRes loaded ok (v1.9725) 
    Warning: You are not allowed to write into directory "/Users/admin/.cpan/sources/authors". 




     I'll continue, but if you encounter problems, they may be due 
     to insufficient permissions. 
    CPAN: HTTP::Tiny loaded ok (v0.017) 
    Fetching with HTTP::Tiny: 
    http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz 
    Error downloading with HTTP::Tiny: Error: Could not open temporary file /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123482202692 for downloading: Permission denied 
    at /Users/admin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/CPAN/HTTP/Client.pm line 41. 


    Trying with 
     /usr/bin/curl -L -f -s -S --netrc-optional 
    to get 
     http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz 
    sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

     Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
     returned status 1 (wstat 256) 
    Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 
     Warning: no success downloading '/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123'. Giving up on it. 
    Fetching with HTTP::Tiny: 
    http://www.cpan.dk/authors/01mailrc.txt.gz 
    Error downloading with HTTP::Tiny: Error: Could not open temporary file /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp221231577050846 for downloading: Permission denied 
    at /Users/admin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/CPAN/HTTP/Client.pm line 41. 


    Trying with 
     /usr/bin/curl -L -f -s -S --netrc-optional 
    to get 
     http://www.cpan.dk/authors/01mailrc.txt.gz 
    sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

     Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://www.cpan.dk/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
     returned status 1 (wstat 256) 
    Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 
     Warning: no success downloading '/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123'. Giving up on it. 
    Fetching with HTTP::Tiny: 
    http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz 
    Error downloading with HTTP::Tiny: Error: Could not open temporary file /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123669027792 for downloading: Permission denied 
    at /Users/admin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/CPAN/HTTP/Client.pm line 41. 


    Trying with 
     /usr/bin/curl -L -f -s -S --netrc-optional 
    to get 
     http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz 
    sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

     Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
     returned status 1 (wstat 256) 
    Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 
     Warning: no success downloading '/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123'. Giving up on it. 
    Warning: You are not allowed to write into directory "/Users/admin/.cpan/sources/authors". 
     I'll continue, but if you encounter problems, they may be due 
     to insufficient permissions. 

    Trying with 
     /usr/bin/curl -L -f -s -S --netrc-optional 
    to get 
     http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz 
    sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

     Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
     returned status 1 (wstat 256) 
    Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 

    Trying with 
     /usr/bin/curl -L -f -s -S --netrc-optional 
    to get 
     http://www.cpan.dk/authors/01mailrc.txt.gz 
    sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

     Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://www.cpan.dk/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
     returned status 1 (wstat 256) 
    Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 

    Trying with 
     /usr/bin/curl -L -f -s -S --netrc-optional 
    to get 
     http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz 
    sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

     Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
     returned status 1 (wstat 256) 
    Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 
     Warning: no success downloading '/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123'. Giving up on it. 
    Warning: You are not allowed to write into directory "/Users/admin/.cpan/sources/authors". 
     I'll continue, but if you encounter problems, they may be due 
     to insufficient permissions. 
    No external ftp command available 

    Warning: You are not allowed to write into directory "/Users/admin/.cpan/sources/authors". 
     I'll continue, but if you encounter problems, they may be due 
     to insufficient permissions. 
    Fetching with HTTP::Tiny: 
    http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz 
    Error downloading with HTTP::Tiny: Error: Could not open temporary file /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp221231089200351 for downloading: Permission denied 
    at /Users/admin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/CPAN/HTTP/Client.pm line 41. 


    Trying with 
     /usr/bin/curl -L -f -s -S --netrc-optional 
    to get 
     http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz 
    sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

     Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
     returned status 1 (wstat 256) 
    Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 
     Warning: no success downloading '/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123'. Giving up on it. 
    Fetching with HTTP::Tiny: 
    http://www.cpan.dk/authors/01mailrc.txt.gz 
    Error downloading with HTTP::Tiny: Error: Could not open temporary file /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp221231652346630 for downloading: Permission denied 
    at /Users/admin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/CPAN/HTTP/Client.pm line 41. 


    Trying with 
     /usr/bin/curl -L -f -s -S --netrc-optional 
    to get 
     http://www.cpan.dk/authors/01mailrc.txt.gz 
    sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

     Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://www.cpan.dk/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
     returned status 1 (wstat 256) 
    Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 
     Warning: no success downloading '/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123'. Giving up on it. 
    Fetching with HTTP::Tiny: 
    http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz 
    Error downloading with HTTP::Tiny: Error: Could not open temporary file /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123742645488 for downloading: Permission denied 
    at /Users/admin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/CPAN/HTTP/Client.pm line 41. 





Trying with 
    /usr/bin/curl -L -f -s -S --netrc-optional 
to get 
    http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz 
sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

機能システム( "は/ usr/binが/ curl -L -f -s -S --netrc-optional "http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz"> "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123" " ステータス1(wstat 256) 警告:期待されるファイル[/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123]は存在しません 警告:「/Users/admin/.cpan/sources/authors/01mailrc」をダウンロードできませんでした。 txt.gz.tmp22123 'それをあきらめる。 警告:ディレクトリ "/Users/admin/.cpan/sources/authors"に書き込むことはできません。 私は続行しますが、問題が発生した場合は、十分なアクセス許可がないために が原因である可能性があります。

Trying with 
    /usr/bin/curl -L -f -s -S --netrc-optional 
to get 
    http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz 
sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

    Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://cpan.mirrors.uk2.net/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
    returned status 1 (wstat 256) 
Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 

Trying with 
    /usr/bin/curl -L -f -s -S --netrc-optional 
to get 
    http://www.cpan.dk/authors/01mailrc.txt.gz 
sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

    Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://www.cpan.dk/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
    returned status 1 (wstat 256) 
Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 

Trying with 
    /usr/bin/curl -L -f -s -S --netrc-optional 
to get 
    http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz 
sh: /Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123: Permission denied 

    Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://mirror.met.hu/CPAN/authors/01mailrc.txt.gz" > "/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123"") 
    returned status 1 (wstat 256) 
Warning: expected file [/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123] doesn't exist 
    Warning: no success downloading '/Users/admin/.cpan/sources/authors/01mailrc.txt.gz.tmp22123'. Giving up on it. 
Warning: You are not allowed to write into directory "/Users/admin/.cpan/sources/authors". 
    I'll continue, but if you encounter problems, they may be due 
    to insufficient permissions. 
Warning: You are not allowed to write into directory "/Users/admin/.cpan/sources/authors". 
    I'll continue, but if you encounter problems, they may be due 
    to insufficient permissions. 
Warning: You are not allowed to write into directory "/Users/admin/.cpan/sources/authors". 
    I'll continue, but if you encounter problems, they may be due 
    to insufficient permissions. 
No external ftp command available 

Please check, if the URLs I found in your configuration file 
(http://cpan.mirrors.uk2.net/, http://www.cpan.dk/, 
http://mirror.met.hu/CPAN/) are valid. The urllist can be edited. E.g. with 
'o conf urllist push ftp://myurl/' 

Could not fetch authors/01mailrc.txt.gz 
+0

'警告:ディレクトリ「/Users/admin/.cpan/sources/authors」に書き込むことはできません。 – Sobrique

+0

@Sobriqueあなたは華麗です!ありがとう、私は 'sudo cpan install XML :: Twig'でインストールしていますが、それが動作しているかどうかを確認できますか? –

+2

@LearnerAlgorithm:プログラミングのスキルの一部は、エラーメッセージ:-)を読むことを学んでいます –

答えて

0

あなたのシステムにこのモジュールをインストールしない方がよいと思います。 perlbrewを試して、独自のperlをインストールしてください(必要な場合は、多くのperlを扱えます)。

次に、適切なperlに簡単に切り替え、必要なモジュール(cpanまたはcpanm)でカスタマイズします。

+0

私の問題は実際にはこれではない、この投稿を見てhttp://stackoverflow.com/questions/40607730/how-cani-i- parse-a-xml-file私は小枝をインストールした後、再び問題に直面しているこのスクリプトを実行する必要があります –

+0

@Miguel Prz私の評判は投票に少しです!私はあなたの答えに感謝していますが、私はまだそれについて読んでいて、私の評判はほとんどないので、私はそれを好きではありません –

関連する問題