There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

MooseX::Compile::Compiler - The Moose metaclass .pmc compiler

SYNOPSIS

my $compiler = MooseX::Compile::Compiler->new();

$compiler->compile_class(
    class => "Foo::Bar",
    file  => $INC{"Foo/Bar.pm"},
    pmc_file => "my/pmc/lib/Foo/Bar.pmc",
);

DESCRIPTION

This class does the heavy lifting of emitting a .pmc and a .mopc for a given class.

HERE BE DRAGONS

This is alpha code. You can tinker, subclass etc but beware that things definitely will change in the near future.

When a final version comes out there will be a documented process for how to extend the compiler to handle your classes, whether by subclassing or using various hooks.