Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird error installing a module if I forget to type "install" #90

Open
steve-m-hay opened this issue Apr 29, 2015 · 2 comments
Open

Weird error installing a module if I forget to type "install" #90

steve-m-hay opened this issue Apr 29, 2015 · 2 comments

Comments

@steve-m-hay
Copy link
Contributor

If I accidentally forget to type "install" in "install MIME::Entity" then I get a weird error message from the cpan shell:

cpan[1]> MIME::Entity
Catching error: "Can't locate object method "Entity" via package "MIME" (perhaps you forgot to load "MIME"?) at C:/perl/lib/CPAN.pm line 376, line 1.\cJ" at C:/perl/lib/CPAN.pm line 392, line 1.
CPAN::shell() called at C:/perl/lib/App/Cpan.pm line 395
App::Cpan::_process_options("App::Cpan") called at C:/perl/lib/App/Cpan.pm line 492
App::Cpan::run("App::Cpan") called at C:\perl\bin/cpan line 10

(This is using CPAN.pm v2.10.)

@andk
Copy link
Owner

andk commented Apr 30, 2015

Same as:

% perl -E 'say bless({})->MIME::Entity'
Can't locate object method "Entity" via package "MIME" (perhaps you forgot to load "MIME"?) at -e line 1.

andreas

@steve-m-hay
Copy link
Contributor Author

Yes. Something like "Unrecognized command 'MIME::Entity'" would be friendlier though :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants