Another example:

ryan-munsons-macbook-pro:bin barracuda$ cpanm MIME::Entity
-bash: /usr/local/bin/cpanm: /usr/bin/perl: bad interpreter: No such file or
directory

This was not installed. When using sudo, however:

ryan-munsons-macbook-pro:bin barracuda$ cpanm MIME::Entity
-bash: /usr/local/bin/cpanm: /usr/bin/perl: bad interpreter: No such file or
directory
ryan-munsons-macbook-pro:bin barracuda$ sudo cpanm MIME::Entity
Password:
--> Working on MIME::Entity
Fetching 
http://search.cpan.org/CPAN/authors/id/D/DS/DSKOLL/MIME-tools-5.502.tar.gz
... OK
Configuring MIME-tools-5.502 ... OK
==> Found dependencies: Test::Deep, Mail::Header, Mail::Field,
Mail::Internet
--> Working on Test::Deep
Fetching 
http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-Deep-0.108.tar.gz ...
OK
Configuring Test-Deep-0.108 ... OK
==> Found dependencies: Test::Tester, Test::NoWarnings
--> Working on Test::Tester
Fetching 
http://search.cpan.org/CPAN/authors/id/F/FD/FDALY/Test-Tester-0.108.tar.gz
... OK
Configuring Test-Tester-0.108 ... OK
Building and testing Test-Tester-0.108 ... OK
Successfully installed Test-Tester-0.108
--> Working on Test::NoWarnings
Fetching 
http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Test-NoWarnings-1.04.tar.g
z ... OK
Configuring Test-NoWarnings-1.04 ... OK
Building and testing Test-NoWarnings-1.04 ... OK
Successfully installed Test-NoWarnings-1.04
Building and testing Test-Deep-0.108 ... OK
Successfully installed Test-Deep-0.108
--> Working on Mail::Header
Fetching 
http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-2.08.tar.gz ...
OK
Configuring MailTools-2.08 ... OK
==> Found dependencies: Date::Format, Test::Pod, Date::Parse
--> Working on Date::Format
Fetching 
http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/TimeDate-1.20.tar.gz ...
OK
Configuring TimeDate-1.20 ... OK
Building and testing TimeDate-1.20 ... OK
Successfully installed TimeDate-1.20
--> Working on Test::Pod
Fetching 
http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/Test-Pod-1.45.tar.gz
... OK
Configuring Test-Pod-1.45 ... OK
Building and testing Test-Pod-1.45 ... OK
Successfully installed Test-Pod-1.45
Building and testing MailTools-2.08 ... OK
Successfully installed MailTools-2.08
Building and testing MIME-tools-5.502 ... FAIL
! Installing MIME::Entity failed. See /Users/barracuda/.cpanm/build.log for
details.
6 distributions installed

Looks like this had a failure anywayŠ

>From /Users/barracuda/.cpanm/build.log

accept failed: Operation timed out at t/Smtpsend.t line 46.
# Looks like your test exited with 60 before it could output anything.
t/Smtpsend.t ......................
Dubious, test returned 60 (wstat 15360, 0x3c00)
Failed 9/9 subtests
t/ticket-11901.t .................. ok
t/ticket-22684.t .................. ok
t/ticket-37139.t .................. ok
t/ticket-41632.t .................. ok
t/ticket-43439.t .................. ok
t/ticket-52924.t .................. ok
t/ticket-60931.t .................. ok
t/ticket-65681.t .................. ok
t/ticket-66025.t .................. ok
t/WordDecoder.t ................... ok
t/WordEncoder.t ................... ok
t/Words.t ......................... ok

Test Summary Report
-------------------
t/Smtpsend.t                    (Wstat: 15360 Tests: 0 Failed: 0)
  Non-zero exit status: 60
  Parse errors: Bad plan.  You planned 9 tests but ran 0.
Files=32, Tests=401, 15 wallclock secs ( 0.14 usr  0.07 sys +  3.23 cusr
0.44 csys =  3.88 CPU)
Result: FAIL
Failed 1/32 test programs. 0/401 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing MIME::Entity failed. See
/Users/barracuda/.cpanm/build.log for details.
6 distributions installed



Ryan

From:  Chankey Pathak <chankey...@gmail.com>
Date:  Wed, 21 Dec 2011 22:00:15 +0530
To:  Ryan Munson <ryan.barrac...@elboardo.com>
Subject:  Re: can only install cpan modules as sudo

Dude you have already installed that.

What's wrong now?

On Wed, Dec 21, 2011 at 9:57 PM, Ryan.Barracuda
<ryan.barrac...@elboardo.com> wrote:
> Hi all,
> 
> I can only install cpan modules as sudo. I installed ActiveState Perl
> v.5.14.2 and cpanm without a problem.
> 
> $ cpanm Net::SMTP
> -bash: /usr/local/bin/cpanm: /usr/bin/perl: bad interpreter: No such file or
> directory
> 
> However, with sudo
> 
> $ sudo cpanm Net::SMTP
> Net::SMTP is up to date. (2.31)
> 
> How do I install cpan modules without being sudo?
> 
> Ryan
> 
> 
> 



-- 
Regards,
Chankey Pathak <http://javaenthusiastic.blogspot.com>



Reply via email to