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

iam installing File::LibMagic on open suse 13.1 and I getting the following error
cpan[2]> install -f File::LibMagic Warning: Cannot install -f, don't know what it is. Try the command i /-f/ to find objects with matching identifiers.Running install for module ' +File::LibMagic' Running make for D/DR/DROLSKY/File-LibMagic-1.12.tar.gz Checksum for /root/.cpan/sources/authors/id/D/DR/DROLSKY/File-LibMagic +-1.12.tar.gz ok Scanning cache /root/.cpan/build for sizes ...................................................................... +......DONE CPAN.pm: Building D/DR/DROLSKY/File-LibMagic-1.12.tar.gz Checking for magic.h... no This module requires the libmagic.so library and magic.h header. See INSTALL.md for more details on installing these. Warning: No success on command[/usr/bin/perl Makefile.PL] 'YAML' not installed, will not store persistent state DROLSKY/File-LibMagic-1.12.tar.gz /usr/bin/perl Makefile.PL -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: DROLSKY/File-LibMagic-1.12.tar.gz : writemakefile NO '/usr +/bin/perl Makefile.PL' returned status 256
  • Comment on installing File::LibMagic and getting error /usr/bin/perl Makefile.PL -- NOT OK
  • Download Code

Replies are listed 'Best First'.
Re: installing File::LibMagic and getting error /usr/bin/perl Makefile.PL -- NOT OK
by marto (Cardinal) on Apr 18, 2015 at 11:32 UTC

    Welcome. The error thrown explains what is missing, the documentation explains what package you have to install, and how to do it for some OS. Use your OS package management tool to install the dependencies. See INSTALL.md for further details.

    When installing modules ensure you have read and understood the documentation and understand how to satisfy the prerequisites. When posting here please use the appropriate formatting as indicated. See also How do I post a question effectively?.

      cpan[1]> install File::LibMagic Reading '/root/.cpan/Metadata' Database was generated on Fri, 17 Apr 2015 22:53:31 GMT Running install for module 'File::LibMagic' Running make for D/DR/DROLSKY/File-LibMagic-1.12.tar.gz Checksum for /root/.cpan/sources/authors/id/D/DR/DROLSKY/File-LibMagic +-1.12.tar.gz ok Scanning cache /root/.cpan/build for sizes ...................................................................... +.....-DONE DEL(1/2): /root/.cpan/build/Variable-Magic-0.56-TZYdhq DEL(2/2): /root/.cpan/build/Sub-Exporter-Progressive-0.001011-IsxIxf CPAN.pm: Building D/DR/DROLSKY/File-LibMagic-1.12.tar.gz Checking for magic.h... no This module requires the libmagic.so library and magic.h header. See INSTALL.md for more details on installing these. Warning: No success on command[/usr/bin/perl Makefile.PL] 'YAML' not installed, will not store persistent state DROLSKY/File-LibMagic-1.12.tar.gz /usr/bin/perl Makefile.PL -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: DROLSKY/File-LibMagic-1.12.tar.gz : writemakefile NO '/usr +/bin/perl Makefile.PL' returned status 256 ...

      I'm trying to install on open suse 13.1 I have enabled cpan to allow to install dependencies "cpan> o conf prerequisites_policy 'follow' cpan> o conf build_requires_install_policy yes cpan> o conf commit" but Iam seeing the following error when I run

        The missing dependency here is not a perl library, and not stored on the CPAN. The cpan client can not install this for you. Please refer to the documentation as previously suggested.

        Update: For clarity, occasionaly you'll find a module which offers to build third party dependencies from source, but in my experience they are the exception. The module you are installing does not provide this facility.