[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 481
  • Last Modified:

Trouble installing ImageMagick module- Double points challenge

Hi all-
This is my second post regarding the same question, and the Accepted answer will surely get the points for both the questions (1000 points) Doing this because it is urgent.

Isolated the cause of my trouble installing ImageMagick module to be:
Error running nmake on windows and here is the error message.

C:\unzipped\PerlMagick-6.20>nmake

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cp Magick.pm blib\lib\Image\Magick.pm
AutoSplitting blib\lib\Image\Magick.pm (blib\lib\auto\Image\Magick)
        C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp  -typemap C:\Perl\lib\E
xtUtils\typemap  Magick.xs > Magick.xsc && C:\Perl\bin\perl.exe -MExtUtils::Comm
and -e mv Magick.xsc Magick.c
        cl -c  -I.. -I..\xlib\include  -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWI
N32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONT
EXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1
   -DVERSION=\"6.2.0\"  -DXS_VERSION=\"6.2.0\"  "-IC:\Perl\lib\CORE"  -D_VISUALC
_ -D_WINDOWS Magick.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1'
Stop.

Any idea on how to fix this?
Here is the url to the original post.

http://experts-exchange.com/Programming/Programming_Languages/Perl/Q_21382010.html
Thank you.
0
mytilig
Asked:
mytilig
  • 6
  • 5
  • 4
  • +1
2 Solutions
 
kanduraCommented:
Hi mytilig,
> 'cl' is not recognized as an internal or external command,

You need a linker. In fact, you probably need a complete c compiler.
Microsoft does offer its command line tools for the Visual C compiler as a free download. I suggest you google, or browse around microsoft.com.

Have you tried installing the binary package for Image Magick? Make sure it's in the path, reboot, then check the perl package installation. It should be somewhere in the isntallation.

HTH,
Kandura
0
 
mytiligAuthor Commented:
I do not have any knowledge about c compiler. Why should it be so difficult to install a perl module.
I am on windows and was hoping ppm would work. But turned out that ppm does not install the ImageMagick module.

The only one it installs is Apache-ImageMagick and that does not seem to compile the line Use Image::Magick

Can you explain how to install the binary package?
Thanks.
0
 
manav_mathurCommented:
Where did you obtain the source from? Was it in pm format or ppd format??
the nmake stuff that you do is from creating the ppd.

You can first of all check at
http://ppm.activestate.com/PPMPackages
for the corresponding zip
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
manav_mathurCommented:
Also, what version of Perl are you using, can you give the output of
perl -V

0
 
mytiligAuthor Commented:
Perl 5.8.6

This is perl, v5.8.6 built for MSWin32-x86-multi-thread
(with 3 registered patches, see perl -V for more detail)

Copyright 1987-2004, Larry Wall

Binary build 811 provided by ActiveState Corp. http://www.ActiveState.com
ActiveState is a division of Sophos.
Built Dec 13 2004 09:52:01

I did download it from
http://www.imagemagick.org/script/download.php

From this particular pc(windows 2000) ppm install Image::Magick gives the error "Module not found"
When I try from another pc that has XP, the module got installed succesfully.
Isn't that strange.
0
 
manav_mathurCommented:
The Image-Magick.ppd file will be a part of the zip. Once you have the Image-Magick.ppd direcotry unzipped in a particular directory, go to that directory, make sure that perl is in your path, and then give

ppm install Image-Magick.ppd

0
 
mytiligAuthor Commented:
ok will try and let you know after around 2 hours.
Thank you.
0
 
manav_mathurCommented:
Also,
get the precompiled binaries for imagemagick and perlmagick here

http://www.dylanbeattie.net/magick/downloads.html
0
 
kanduraCommented:
better get the installation from here: http://www.imagemagick.org/script/binary-releases.php#windows
0
 
kanduraCommented:
The binary installation says this in the notes (which it displays just before starting the real installation):

    The installation package includes the ImageMagick Perl extension ( PerlMagick <http://www.graphicsmagick.org/www/perl.html>) as an installation option. If you would like to use this extension, then you must install ActiveState ActivePerl <http://www.activestate.com/Products/ActivePerl/Download.html> prior to commencing with installation of ImageMagick.

So all you have to do to get PerlMagick installed, is select a checkbox!
0
 
inq123Commented:
Hi kandura,

Yeah you're right!  No wonder I never remembered that I had to go through much trouble installing PerlMagick on Windows last time I did it.  Bad memory on how I did installation though.

Cheers!
0
 
mytiligAuthor Commented:
Thanks, this whole perlmagic, imagemagic, graphicsmagic was confusing me!

OK I have installed it now.
Simple perl script runs fine using perl builder.

But when I run it as a command line, I get the following.

C:\Perl\eg>perl test.pl
Can't load 'c:/Perl/site/lib/auto/Image/Magick/Magick.dll' for module Image::Mag
ick: load_file:The specified module could not be found at c:/Perl/lib/DynaLoader
.pm line 230.
 at test.pl line 3
Compilation failed in require at test.pl line 3.
BEGIN failed--compilation aborted at test.pl line 3.


Maybe I need to set some path?

Thanks.

0
 
kanduraCommented:
I think you do, yes, but I was under the impression that the installer would have done that. Did you open a fresh command line after the installation? Have you tried rebooting?
0
 
mytiligAuthor Commented:
kandura can you please comment on my other qn so i can reward u the points
http://experts-exchange.com/Programming/Programming_Languages/Perl/Q_21382010.html
0
 
kanduraCommented:
you're most generous, and your generosity is highly appreciated :-)
0
 
mytiligAuthor Commented:
thanks to my ignorance I guess :)

I never realized until I saw your post (although now it seems obvious) that perlmagic was the perl module needed to run it. I somehow assumed imagemagick IS the perl module and was trying installing just that.

Now that I think about it, I do not even need the perlmagic. All I need is edit some images as a nightly job, and guess I can just run the convert command line tool on windows.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 5
  • 4
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now