IBM Support

Can't locate Mail/Send.pm or Date/Format.pm in @INC

Troubleshooting


Problem

This technote identifies a defect where the IBM Rational ClearCase ccperl utility on Microsoft Windows, UNIX and Linux is unable to send mail notifications due to a incorrect library pathing and provides a workaround to resolve the issue.

Symptom

The 2003.06.00 Managing Software Projects guide introduces a script named Postoperation Trigger Script on page 133 to send email notification.

The script begins with:

package SendMail;
use Config;
use Mail::Send;


Running the script results in the following error:

Windows example:

>ccperl mailtest.pl
Can't locate Mail/Send.pm in @INC (@INC contains: C:/Program
Files/Rational/Common/lib/perl5/5.6.1/MSWin32-x86-multi-thread
C:/Program Files/Rational/Common/lib/perl5/5.6.1
C:/Program Files/Rational/Common/lib/perl5
C:/Program Files/Rational/Common/lib/perl5/site_perl/5.6.1/MSWin32-x86-multi-thread
C:/Program Files/Rational/Common/lib/perl5/site_perl/5.6.1
C:/Program Files/Rational/Common/lib/perl5/site_perl
C:/Program Files/Rational/Common/lib/perl5/site_perl/5.6.1/MSWin32-x86-multi-thread
C:/Program Files/Rational/Common/lib/perl5/site_perl/5.6.1
C:/Program Files/Rational/Common/lib/perl5/site_perl .)



UNIX/Linux example:

Can't locate Date/Format.pm in @INC (@INC contains:
/opt/rational/common/lib/perl5/5.6.1/sun4-solaris-multi
/opt/rational/common/lib/perl5/5.6.1
/opt/rational/common/lib/perl5/site_perl/5.6.1/sun4-solaris-multi
/opt/rational/common/lib/perl5/site_perl/5.6.1
/opt/rational/common/lib/perl5/site_perl .) at
/commands/MakeBaselineWEB.pl line 14.
BEGIN failed--compilation aborted at /commands/MakeBaselineWEB.pl line
14.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Utilities and Tools","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.0.1.2","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
15 June 2026

UID

swg21215263