Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I found this thread after getting a similar error message about /usr/share/perl5/IO/Uncompress/RawInflate.pm, but lack of "make" wasn't my problem.

I built Perl 5.10.0 from source, installed it under /opt/local, and put /opt/local/bin at the front of my $PATH. Perl -V says my @INC is:

/opt/local/lib/perl5/5.10.0/i686-linux /opt/local/lib/perl5/5.10.0 /opt/local/lib/perl5/site_perl/5.10.0/i686-linux /opt/local/lib/perl5/site_perl/5.10.0 .

Yet I was still seeing this error when working in the CPAN shell:

Can't call method "value" on an undefined value at /usr/share/perl5/IO +/Uncompress/RawInflate.pm line 64.

/usr/share/perl5 ? I didn't ask for that (or maybe I inadvertently did by running "Configure -de" when I built it).

My kludge was to block Perl from even trying to look at /usr/share/perl5:

chmod 0000 /usr/share/perl5 && perl -MCPAN -eshell && chmod 0755 /usr/ +share/perl5

This was only necessary once. CPAN.pm learned its lesson and is now looking in the "correct" place for IO::Uncompress::RawInflate.

Update 5/1/2009: Scratch most of the above. It wasn't Perl 5.10's fault!

It was a PATH problem. Though /opt/local/bin was in my PATH as a 'normal' user, it wasn't under sudo (in some cases), so I was actually using the system Perl without knowing it:

% perl -v This is perl, v5.10.0 (GitLive-maint-5.10-1091-g36d9847*) built for i6 +86-linux [...] % sudo perl -v This is perl, v5.8.8 built for i486-linux-gnu-thread-multi [...]
So the real fix is to be explicit:
% sudo /opt/local/bin/perl -MCPAN -eshell

In reply to Re^2: Bundle::CPAN still failing. by drench
in thread Bundle::CPAN still failing. by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found