Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Cannot install UUID Module

by Corion (Pope)
on Dec 16, 2019 at 09:44 UTC ( #11110226=note: print w/replies, xml ) Need Help??

in reply to Cannot install UUID Module

The salient part is:

# It's likely the UUID prerequisite library isn't installed. # # On some platforms you can use your package manager to install these. # In particular, the uuid-dev, libuuid-devel, or uuid-devel packages # on Linux.

So, did you install uuid/uuid.h or any of the other fallback C libraries needed for the UUID module? If so, where?

<pIf you didn't install it, maybe it can simply be copied from, but I'm not sure that this is the canonical source for it.

Replies are listed 'Best First'.
Re^2: Cannot install UUID Module
by AndyR (Initiate) on Dec 16, 2019 at 10:27 UTC

    Thanks for responding so quickly.

    I've downloaded the uuid.h but not sure where it should go?

      I think you will need all files from that repository. If you're manually downloading them, I think you can put them into C:\StrawberryPerl\c\include and c:\StrawberryPerl\c\lib, but I'm not sure. Look at the directories where the Makefile.PL run looks and put them somewhere there maybe.

      This is somewhat out of my comfort zone for giving advice.


      I'm not familiar with the UUID module, so I can't provide you a simple answer. Looking over the debug log you'll see several messages starting with "# ===> Checking for" that tells you what the module needs in order to compile and link. Since Strawberry is using MinGW, I think Corion pointed you to a suitable library. I can't be sure, though, as I'm not using Strawberry Perl nor Windows 10.

      I was able to install UUID on my Windows machine (Windows 8, cygwin perl 5.26) and it used libuuid, so I think there's a chance you can download, compile and install that library. After that it should be possible to try the UUID install again. (I've (briefly) looked at the source code for the module, and it looks like it can use the Windows UUID calls, so I'm not sure why it's not trying to use those.)

      If you're not tied to that particular UUID module, you might try another, as there are several UUID modules available on cpan, including UUID::Tiny which (since it's pure perl) should install easily. Be sure to check the description of other UUID modules if you consider them, though, as they may have tradeoffs that you don't meet your requirements. UUID::Tiny, for example, mentions that it doesn't support "real MAC address in version 1 UUIDs, or an OO interface".


      When your only tool is a hammer, all problems look like your thumb.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11110226]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2020-05-25 03:01 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (143 votes). Check out past polls.