I am trying to install bugzilla and I keep getting the error that the required module Email::MIME is not found.

However, when I run the install command I get:

/usr/bin/perl install-module.pl Email::MIME
Checking for CPAN (v1.81) ok: found v1.93
Checking for YAML (any) ok: found v0.71
CPAN: Storable loaded ok (v2.21)
Going to read /home/thethewr/.cpan/Metadata
Database was generated on Mon, 23 Aug 2010 00:30:03 GMT
Installing Email::MIME version 1.903...
Email::MIME is up to date (1.903).

Yet bugzilla says

Checking for          Email-MIME (v1.861)   not found

Email::MIME uses Email::Address.

A recent update to Email::Address accidently included a feature which requires Perl 5.10 (Perl Bug 60765).

You can check if this issue is impacting you by running the following from the Bugzilla directory:

perl -Mlib=lib -MEmail::MIME -e1

If you see a Sequence (?|...) not recognized in regex error, then that's what is going on with your installation.

An updated Email::Address is due "in a few days".

  • A version of Email-Address which fixes this was released to CPAN on the 30th of August. – glob Sep 6 '10 at 1:07
  • so here it is two years later and I've found the same bug =/ – ZeroDivide Jul 18 '12 at 14:40

It appears as if Bugzilla is perhaps looking for a specific version of Email::MIME: v1.861, and you have 1.903 installed.

  • That's sorta what I was thinking. – Brooke. Aug 23 '10 at 3:01
  • no, bugzilla will work with more recent versions of modules – glob Aug 23 '10 at 4:56

Like glob said, it is from a bug in Email::Address. A work around is to wipe your bugzilla lib folder, and then use the "manual installation instructions" in the docs to install the previous release of Email::Address


Then run 'perl install-module.pl Email::MIME', then checksetup.pl should pick it up. I got the tip from #mozwebtools on irc.mozilla.org.


I deleted the bugzilla/lib/Email directory and that fixed it for me.


Ha, looks like it was fixed yesterday, Email-Address-1.891 was posted aug 30th.



What I did (following xp314a's tip) was download the older version of Email::Address (Email-Address-1.889.tar.gz)

Then from the shell:

cd /tmp
tar /directory-where-you-downloaded-it/Email-Address-1.889.tar.gz
cd Email-Address-1.889
perl Makefile.PL
make test
make install

At this point it should create an Email directory under /tmp/Email-Address-1.889/lib. Move that to your bugzilla/lib directory.

After that, I was able to install the remaining modules.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.