5
votes

I am running with Perl 5.10.1 installed using the package manager. I have successfully installed Moose from the CPAN shell, and I have tried to install the MooseX::Declare extention without success.. Here is what I have done:

$ sudo cpan > cpan.log
cpan[1]> install MooseX::Declare

Cannot determine perl version info from lib/MooseX/Declare.pm

Warning: prerequisite Devel::Declare 0.005011 not found.

Warning: prerequisite MooseX::Method::Signatures 0.30 not found.

This is what appears in the terminal at first before the installation lauches, I have posted the 'cpan.log' file here.

Now, I have tried installing the two prereqs above, the latter depends on the first one. But installing the first one gives me this:

cpan[6]> install Devel::Declare

 Running install for module 'Devel::Declare'

Running make for F/FL/FLORA/Devel-Declare-0.006000.tar.gz

Has already been unwrapped into directory /home/jfb/.cpan/build/Devel-Declare-0.006000-6qeuWN

'/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512, won't make

Running make test

Make had some problems, won't test

Running make install

Make had some problems, won't install

4
What output did you get from install MooseX::Declare? 1. were there test or installation failures? 2. what was the path that the cpan client printed for installing the library? (Incidentally, there is MooseX package, so typing install MooseX should give you an error.) - Ether
do you get any output from your cpan install commands? - ennuikiller
I have edited my question, this is what I obtain from the compilation of 'install MooseX::Declare' - JF Beaulieu
Are you sure that everything else before MooseX::Declare installed properly? e.g. the dependencies that MooseX::Declare depends on? Can you post the entire install log (you can use paste.scsys.co.uk with channel #moose-dev selected) so we can figure out the root problem here? - Ether
(Make that the #moose channel, #moose-dev doesn't have its own pastebin. But there is an issue that happened before MooseX::Declare, that isn't currently determinable by the information you have provided here.) - Ether

4 Answers

0
votes

It would appear that MooseX::Declare does not list the module named aliased as a dependency, while using it. Try install aliased from the CPAN shell, then try installing MooseX::Declare again.

0
votes

I had similar problems a few days ago, on OS X. In my case, either MooseX::Method::Signatures or MooseX::Declare depended on B::Hooks::OP::Check. Once I installed that, all problems went away.

0
votes

I have resolved this issue, with good advice from Ether. What happened is that the YAML prerequesite was not installed/not installed properly. What I did is to start over by deleting the build folder and reinstalling:

$ sudo rm /home/jfb/.cpan/build -rf
$ sudo cpan > cpan.log
cpan[1]> install YAML
cpan[2]> install MooseX::Declare

Now everything seems to work, see the log file here.

0
votes

I had to force install Test::Pod before MooseX::Declare would install in a VM running rPath version 1.0.7 and Perl v5.8.7. After that, and after blowing away the CPAN build directory (per Kaeso's suggestion), MooseX::Declare installed without any problems.

I had installed Moose earlier and that went well.