perlwinky has asked for the wisdom of the Perl Monks concerning the following question:

Hello everybody, From last few weeks I have been trying really hard to get PBC installed in CYGWIN but failing to do so. I am a beginner in this area and really confused about the installation process. I have used CPAN to install Crypt::PBC after installing all of its dependencies like Math::BigInt, Math::BigInt::GMP, MIME::Base64, ExtUtils::MakeMaker, XSLoader, Devel::Checklib and now while I'm installing PBC it prompted me to download the tarball from "voltar.org" website but apparently the PBC file was not getting downloaded and unpacked. So i changed the code to request http://crypto.stanford.edu/pbc/files/ for the tarball. Now i get to unpack properly but while building it I'm facing a problem where it "Can't link/include GMP". I have installed GMP related files but still the error pops up. I would be immensely grateful if you could help me out with this. Thank you.

Replies are listed 'Best First'.
Re: Can't link/include GMP
by Anonymous Monk on Apr 24, 2014 at 10:55 UTC

    What are the paths of installed gmp files? What paths does make/install process output show while searching for gmp files?

      The makefile searches for gmp in the following paths: /usr/include/pbc /usr/local/include/pbc /usr/include /usr/local/include /lib/openssl-1.0.1/engine (this I appended in the INC because my libgmp.so file resides here) /lib And there are a loads of GMP files lying all around the cygwin64 folder. What gmp files are actually required?

        I cannot answer the question about the files required. You should be able to find that out by reading Makefile and any other files of the module.

        *sigh* To make the question explicit asked earlier, do the installed gmp files exist in the paths that are searched during the make/compile process?

        Also to explicitly note, if answer to above is no for any of the files, then you would need to specify the actual gmp file paths, via command line/environment variables and/or by editing Makefile.

Re: Can't link/include GMP
by Anonymous Monk on Apr 24, 2014 at 23:15 UTC

    I have installed GMP related files but still the error pops up. I would be immensely grateful if you could help me out with this. Thank you.

    How did you install GMP (not Math::GMP)? Where was GMP installed?