Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CPAN Stopped being Recognized (MAC)

27 views
Skip to first unread message

David Warner

unread,
Apr 16, 2012, 8:07:10 PM4/16/12
to
Hello Group,

Not sure if this is the place to post this question/issue, so here we go.

I ran the cpan utility (/usr/bin/cpan) on my Mac OSX 10.6.8 to install
the WWW::Mechanize perl package. After installing the necessary
supporting perl package libraries to support WWW::Mechanize, I cannot
run cpan again.

This is what I have tried:

cpan Package
sudo cpan Package
/usr/bin/cpan Package
sudo cpan Package
/usr/bin/sudo /usr/bin/cpan Package

All attempts returns the errors.

$ sudo cpan Scrape::USPS
Password:
sudo: cpan: command not found
$ cpan Scrape::USPS
-bash: /usr/bin/cpan: Permission denied
$ type sudo
sudo is hashed (/usr/bin/sudo)
$ type cpan
cpan is hashed (/usr/bin/cpan)
$ /usr/bin/sudo /usr/bin/cpan Scrape::USPS
sudo: /usr/bin/cpan: command not found


To install WWW::Mechanize, all that I typed originally was:

sudo cpan WWW::Mechanize

Suggestions?

Thanks,

David

David Warner

unread,
Apr 16, 2012, 8:12:49 PM4/16/12
to
0 new messages