7

I am trying to use git send-mail, but I am getting this error:

Can't locate Net/SMTP/SSL.pm in @INC (@INC contains:
/Library/Developer/CommandLineTools/usr/../Library/Perl/5.16/darwin-thread-multi-2level
/Library/Developer/CommandLineTools/usr/share/git-core/perl
/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 .) at
/Library/Developer/CommandLineTools/usr/libexec/git-core/git-send-email
line 1232.

I use Mac OS X v10.9 (Mavericks) recently upgraded from Mac OS X v10.7 (Lion)!!!

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197

1 Answers1

8

You need to install SSL.

Use cpanminus for working with CPAN modules. You can install it with Homebrew using brew install cpanminus.

After installing cpanminus, try this:

sudo cpanm Net::SMTP::SSL
slhck
  • 36,575
  • 28
  • 148
  • 201
glebaty
  • 200
  • 8
  • i ran the following: ` sudo -H cpan -fi IO::Socket::SSL` then ` sudo -H perl -MCPAN -e '$ENV{FTP_PASSIVE} = 1; install CPAN'` but I am still out of luck – Ciasto piekarz Jan 23 '14 at 12:18
  • 1
    tried cpanm ! Finding Net::SMPT::SSL on cpanmetadb failed. ! Finding Net::SMPT::SSL () on mirror http://www.cpan.org failed. ! Couldn't find module or a distribution Net::SMPT::SSL – Ciasto piekarz Jan 23 '14 at 12:51
  • If I manually copy Net/SMTP/SSL.pm to the directories in the above error message will that help, so far I have copied to `/Library/Developer/CommandLineTools/usr/` but still I am getting the same error, Do i have to restart the terminal ? – Ciasto piekarz Jan 23 '14 at 13:17
  • Hm... Work for me: cpanm Net::SMTP::SSL --> Working on Net::SMTP::SSL Fetching http://www.cpan.org/authors/id/C/CW/CWEST/Net-SMTP-SSL-1.01.tar.gz ... OK Configuring Net-SMTP-SSL-1.01 ... OK Building and testing Net-SMTP-SSL-1.01 ... OK Successfully installed Net-SMTP-SSL-1.01 1 distribution installed – glebaty Jan 23 '14 at 13:26
  • You need root access for this action – glebaty Jan 23 '14 at 13:28
  • 1
    yes i manually copied the downloaded SSL.pm to all the directories worked, downloaded from metacpan – Ciasto piekarz Jan 23 '14 at 13:47