Reputation: 435
I am running perl using CGI on OS X Mavericks.
When I run the perl script it throws following error
Can't locate Email/Sender/Simple.pm in @INC (@INC contains: ../shared ../shared /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16
When I try to install Email sender module using cpan
cpan> install Email::Sender::Simple
It says
Email::Sender::Simple is up to date (1.300016).
Any help will be really appreciated.
Upvotes: 0
Views: 1720
Reputation: 385496
You're using the cpan
from one install of Perl, and you're running your script using another. Instead of cpan Email::Sender::Simple
, execute the following
perl -MCPAN -e'shell'
then
install Email::Sender::Simple
and
quit
Ensure that the same perl
is used as the one that is used to run your script by providing the full path to perl
if necessary.
Upvotes: 1