Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
go ahead... be a heretic
 
PerlMonks  

[Solved] Help : I did a beginner stupid CPAN thingy thing

by mascip (Pilgrim)
on Nov 29, 2012 at 18:12 UTC ( #1006315=perlquestion: print w/ replies, xml ) Need Help??
mascip has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, I did

cpan> install Method::Signatures
It didn't work, because of a dependency not installing on Windows. That's fixed in the developer release, and that's why i want that release.

Then i did something stupid : i deleted the mod:://Method-Signatures directories that i had in C:/strawberry/cpan/source/ and C:/strawberry/cpan/build/
(you don't need to know why i did this stupid thing, to help me fix it)

And now when i try

cpan> install Method::Signatures
it says :
Running install for module 'Method::Signatures' Running Build for B/BA/BAREFOOT/Method-Signatures-20120523.tar.gz Has already been unwrapped into directory C:\strawberry\cpan\build\M +ethod-Signatures-20120523-iX8R5D Could not make: Unknown error Running Build test Can't test without successful make Running Build install Make had returned bad status, install seems impossible
=> it doesn't even try to install it anymore; apparently i broke something.
What shall i do ?

That is so stupid, sorry to take your time for this.

I guess, after fixing this problem i'll have to install this module manually; or to just wait until the developer version becomes the current version.

Comment on [Solved] Help : I did a beginner stupid CPAN thingy thing
Select or Download Code
Re: Help : I did a beginner stupid CPAN thingy thing
by Khen1950fx (Canon) on Nov 29, 2012 at 18:15 UTC
    Did you try "force"?.
    cpan> force install Method::Signatures

      I get the same result, but thanks for trying :)

Re: Help : I did a beginner stupid CPAN thingy thing
by prashantktyagi (Scribe) on Nov 29, 2012 at 18:27 UTC
    Try using cpanm. It is much better then cpan on strawberry perl.
    cpanm can be installed by running
    cpan App::cpanminus
Re: Help : I did a beginner stupid CPAN thingy thing
by davido (Archbishop) on Nov 29, 2012 at 18:30 UTC

    cpanm has a "--reinstall" option that occasionally gets me out of trouble. Sometimes just using an alternate installer (cpan vs cpanm, for example) is enough to get things sorted out. But you know, another method is to simply download the tarball, unpack it into a folder, enter that folder, and type the mantra.

    Look at the module's Build.PL to determine the dependencies it requires, and make sure first they're already installed. They probably mostly are, since you already tried installing it once. After you've got the dependencies figured out, you can type (windows):

    perl Build.PL Build Build test Build install

    ...on many platforms you would need to prepend the ./, but not for Windows.


    Dave

      cpanm works, cheers ! And as said below, i won't install the developer version finally.

Re: Help : I did a beginner stupid CPAN thingy thing
by marto (Chancellor) on Nov 29, 2012 at 18:30 UTC

    If you're looking to install the latest development release:

    cpan> install BAREFOOT/Method-Signatures-20121128.2139_001.tar.gz

    Or substitute the version for whatever one you want, you can see what these files are called via the 'Download' links.

      Thank you, i didn't know it was possible :)
      I just tried it, and understood why it's a developer version : part of the tests still don't pass. I won't force-install it.

        I'm not on a Microsoft Windows system right now, using the command I supplied it installs ok on Linux (after lot of prerequisites) with Perl 5.12. Perhaps you're facing some platform specific issue, if you specify what is failing someone may be able to help.

        Update: As follows is the tail end of the installation, note some test warnings:

Re: Help : I did a beginner stupid CPAN thingy thing
by Anonymous Monk on Nov 29, 2012 at 18:45 UTC
    cpanp -z Method::Signatures
Re: [Solved] Help : I did a beginner stupid CPAN thingy thing
by ikegami (Pope) on Dec 02, 2012 at 12:35 UTC

    This is wise and avoids "already unwrapped":

    cpan> o conf build_dir_reuse 0 cpan> o conf commit

      This also worked, cheers :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1006315]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-04-25 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (586 votes), past polls