Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
No such thing as a small change
 
PerlMonks  

Re: Error trying to install Image::Magick on Strawberry Perl

by Anonymous Monk
on Aug 06, 2012 at 03:08 UTC ( #985594=note: print w/ replies, xml ) Need Help??


in reply to Error trying to install Image::Magick on Strawberry Perl

How do I pass the hint to gcc about where to find MagickCore.h?

Add to %PATH% so the .dll's can be found

cpanp -z Image::Magick

perl Makefile.PL LIBS="-Lpath\to\directory -llibname -libname... " INC="-Ipath/to/includes -Ipath/to/other/includes"

If your Makefile.PL is being too clever, you should edit Makefile.PL and prefix :nosearch

For microsoft you could set (like PATH) env vars INCLUDE= for .h-headers and LIB= for .lib's -- I can't remember if mingw/gcc also respects this, so if it doesn't, you'd set C_INCLUDE_PATH/LIBRARY_PATH, see http://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html


Comment on Re: Error trying to install Image::Magick on Strawberry Perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-04-20 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls