473,729 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem installing Image::Magick.

55 New Member
I downloaded the sorce from CPAN(PerlMagick-6.32.tar.gz).
I followed the normal procedure to install perl module on unix platform,
1) perl Makefile.PL
during the execution of this command i am getting error as:

Note (probably harmless): No library found for -lgvc
Writing Makefile for Image::Magick

during the execution of commands i am getting too many errors and warnings
but most are stating that the variables are undeclared
`Image' undeclared (first use in this function)
`ExceptionInfo' undeclared (first use in this function)

Does this module installation required libraries support which we need to export externally??
Mar 5 '07 #1
9 14562
55 New Member
problem continues..
I find out that this module needs library file libgvc.so
I tried to get this library file from rpm source but that version is not compactible with UBUNTU.
So that's why it's giving me error while installing rpm file

rpm file:
graphviz-2.8-8.el3.at.i386.r pm

linux version:

so could you please suggest me any site from which i can download the rpm
file compactible with my linux version.
Mar 5 '07 #2
55 New Member
I am trying to install Image::Magick Module but when i am giving make
i am getting bunch of errors, if any body installed this module previously,
help me for it's installation.

Expand|Select|Wrap|Line Numbers
  1. make
  2. cc -c  -I/usr/include/ -I../ -I.. -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/graphviz -I/usr/include/freetype2 -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -W -pthread -O2   -DVERSION=\"6.3.2\" -DXS_VERSION=\"6.3.2\" -fPIC "-I/usr/lib/perl/5.8/CORE"  -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
  3. Magick.xs:213: warning: missing initializer
  4. Magick.xs:1123: warning: implicit declaration of function ‚SetImageProperty‚
  5. Magick.xs:1123: warning: implicit declaration of function ‚InterpretImageProperties‚
  6. Magick.xs:1413: error: void value not ignored as it ought to be
  7. Magick.xs:1413: warning: statement with no effect
  8. Magick.xs:1493: warning: implicit declaration of function ‚SetImageMask‚
  9. Magick.xs:1584: error: ‚struct _Image‚ has no member named ‚origin‚
  10. Magick.xs:1584: warning: passing argument 3 of ‚ParsePageGeometry‚ from incompatible pointer type
  11. Magick.xs:1656: error: void value not ignored as it ought to be
  12. Magick.xs:1656: warning: statement with no effect
  13. Magick.xs:1855: error: ‚struct _ImageInfo‚ has no member named ‚transparent_color‚
  14. Magick.xs:1855: warning: statement with no effect
  15. Magick.xs:1857: error: ‚struct _Image‚ has no member named ‚transparent_color‚
  16. Magick.xs:1857: warning: statement with no effect
  17. Magick.xs:1966: error: ‚struct _ImageInfo‚ has no member named ‚virtual_pixel_method‚
  18. Magick.xs:2817: error: ‚MagickLayerMethod‚ undeclared (first use in this function)
  19. Magick.xs:2817: error: (Each undeclared identifier is reported only once
  20. Magick.xs:2817: error: for each function it appears in.)
  21. Magick.xs:2817: error: syntax error before ‚method‚
  22. Magick.xs:2852: error: ‚method‚ undeclared (first use in this function)
  23. Magick.xs:2852: error: ‚CompareAnyLayer‚ undeclared (first use in this function)
  24. Magick.xs:2852: warning: statement with no effect
  25. Magick.xs:2863: error: ‚MagickLayersOptions‚ undeclared (first use in this function)
  26. Magick.xs:2864: error: incompatible type for argument 1 of ‚ParseMagickOption‚
  27. Magick.xs:2871: error: syntax error before ‚option‚
  28. Magick.xs:2886: warning: implicit declaration of function ‚CompareImageLayers‚
  29. Magick.xs:3586: error: ‚struct _Image‚ has no member named ‚mask‚
  30. Magick.xs:3586: warning: comparison of distinct pointer types lacks a cast
  31. Magick.xs:3588: error: ‚struct _Image‚ has no member named ‚mask‚
  32. Magick.xs:3588: warning: comparison of distinct pointer types lacks a cast
  33. Magick.xs:3590: error: ‚struct _Image‚ has no member named ‚mask‚
  34. Magick.xs:3590: warning: passing argument 2 of ‚Perl_newSViv‚ makes integer from pointer without a cast
  35. Magick.xs:3677: warning: implicit declaration of function ‚GetImageProperty‚
  36. Magick.xs:3677: warning: assignment makes pointer from integer without a cast
  37. Magick.xs:3931: warning: implicit declaration of function ‚GetStringInfoDatum‚
  38. Magick.xs:3931: warning: implicit declaration of function ‚GetStringInfoLength‚
  39. Magick.xs:3998: error: void value not ignored as it ought to be
  40. Magick.xs:3998: warning: statement with no effect
  41. Magick.c: In function ‚XS_Image__Magick_Histogram‚:
  42. Magick.c:4544: warning: unused variable ‚ref‚
  43. Magick.c:4539: warning: unused variable ‚ix‚
  44. Magick.c: In function ‚XS_Image__Magick_GetPixels‚:
  45. Magick.c:4659: warning: unused variable ‚ref‚
  46. Magick.c:4654: warning: unused variable ‚ix‚
  47. Magick.c: In function ‚XS_Image__Magick_ImageToBlob‚:
  48. Magick.c:4898: warning: unused variable ‚ref‚
  49. Magick.c:4893: warning: unused variable ‚ix‚
  50. Magick.xs: In function ‚XS_Image__Magick_Layers‚:
  51. Magick.xs:5065: error: ‚MagickLayerMethod‚ undeclared (first use in this function)
  53. Magick.xs:6926: warning: implicit declaration of function ‚PaintOpaqueImageChannel‚
  54. Magick.xs:6934: warning: implicit declaration of function ‚AcquireQuantizeInfo‚
  55. Magick.xs:6934: warning: assignment makes pointer from integer without a cast
  56. Magick.xs:6952: error: ‚struct _Image‚ has no member named ‚transparent_color‚
  57. Magick.xs:6952: warning: passing argument 2 of ‚QueryColorDatabase‚ from incompatible pointer type
  58. Magick.xs:7139: error: ‚struct _Image‚ has no member named ‚interpolate‚
  59. Magick.xs:7140: error: syntax error before ‚argument_list‚
  60. Magick.xs:7257: error: ‚struct _Image‚ has no member named ‚black_point_compensation‚
  61. Magick.xs:7258: warning: statement with no effect
  62. Magick.xs:7277: warning: passing argument 3 of ‚ProfileImage‚ makes pointer from integer without a cast
  63. Magick.xs:7300: warning: passing argument 3 of ‚ProfileImage‚ makes pointer from integer without a cast
  64. Magick.xs:7361: warning: implicit declaration of function ‚OrderedPosterizeImageChannel‚
  65. Magick.xs:7539: error: ‚struct _Image‚ has no member named ‚interpolate‚
  66. Magick.xs:7540: error: syntax error before ‚argument_list‚
  67. Magick.xs:7819: warning: implicit declaration of function ‚ExtentImage‚
  68. Magick.xs:7819: warning: assignment makes pointer from integer without a cast
  69. Magick.xs:7907: warning: implicit declaration of function ‚AdaptiveSharpenImageChannel‚
  70. Magick.xs:7908: warning: assignment makes pointer from integer without a cast
  71. Magick.xs:8075: error: ‚struct _Image‚ has no member named ‚mask‚
  72. Magick.xs:8076: warning: statement with no effect
  73. Magick.xs:8077: error: ‚struct _Image‚ has no member named ‚mask‚
  74. Magick.xs:8077: warning: passing argument 1 of ‚NegateImage‚ from incompatible pointer type
  75. Magick.c: In function ‚XS_Image__Magick_Mosaic‚:
  76. Magick.c:8461: warning: unused variable ‚ref‚
  77. Magick.c:8456: warning: unused variable ‚ix‚
  78. Magick.c: In function ‚XS_Image__Magick_Ping‚:
  79. Magick.c:8544: warning: unused variable ‚ref‚
  80. Magick.c:8539: warning: unused variable ‚ix‚
  81. Magick.c: In function ‚XS_Image__Magick_Preview‚:
  82. Magick.c:8743: warning: unused variable ‚ref‚
  83. Magick.c:8738: warning: unused variable ‚ix‚
  84. Magick.c: In function ‚XS_Image__Magick_QueryColor‚:
  85. Magick.c:8836: warning: unused variable ‚ref‚
  86. Magick.xs:10094: error: ‚TypeMetric‚ has no member named ‚origin‚
  87. Magick.xs:10094: error: request for member ‚x‚ in something not a structure or union
  88. Magick.xs:10094: error: incompatible type for argument 2 of ‚Perl_newSVnv‚
  89. Magick.xs:10095: error: ‚TypeMetric‚ has no member named ‚origin‚
  90. Magick.xs:10095: error: request for member ‚y‚ in something not a structure or union
  91. Magick.xs:10095: error: incompatible type for argument 2 of ‚Perl_newSVnv‚
  92. Magick.c:9455: warning: unused variable ‚ref‚
  93. Magick.c:9450: warning: unused variable ‚ix‚
  94. Magick.c: In function ‚XS_Image__Magick_QueryFormat‚:
  95. Magick.c:9819: warning: unused variable ‚ref‚
  96. Magick.c:10519: warning: unused variable ‚ix‚
  97. Magick.c: In function ‚boot_Image__Magick‚:
  98. Magick.c:10618: warning: unused parameter ‚cv‚
  99. make: *** [Magick.o] Error 1
the errors are more than shown above due to text limitation i made it
Mar 9 '07 #3
1 New Member
Hi, rahatekarabhije et

I also meet this issue, did you solve the problem?
Could you share your experience for me?

Thank you very much in advance!!!!!!
Mar 26 '07 #4
3 New Member
Package is missing a file but you can't catch it unless you save your session to an output file like putty or something:

gcc -c -I../ -I.. -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/graphviz -I/usr/include/freetype2 -I/usr/include/libxml2 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOU RCE -D_FILE_OFFSET_B ITS=64 -I/usr/include/gdbm -g -O2 -Wall -W -pthread -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURC E=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"6.3. 2\" -DXS_VERSION=\"6 .3.2\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
Magick.xs:64:31 : error: magick/MagickCore.h: No such file or directory
Mar 27 '07 #5
3 New Member
I downloaded the whole package from:


You have to compile the whole package first and then go into PerlMagick and compile that. You still get some errors but it finishes. I ran make test after it was done and got the following results:

Failed Test Stat Wstat Total Fail Failed List of Failed
t/x/read.t 1 1 100.00% 1
Failed 1/24 test scripts, 95.83% okay. 1/333 subtests failed, 99.70% okay.
Mar 27 '07 #6
3 New Member
At least 1 error so far while trying to use with Bugzilla R3C1 checksetup.pl script
Mar 27 '07 #7
4,059 Recognized Expert Specialist
ImageMagick has it's own support forum, you will probably get better answers on that forum as this is really not a perl issue.
Mar 27 '07 #8
kamil khushvaktov
1 New Member
If you are using Ubuntu, you can check your Synaptic Package Manager and search for imagemagick package and install

sudo apt-get install imagemagick

in shell.
May 1 '07 #9
1 New Member
problem: compile error -lgvc in installing PerlMagick
1. install graphviz-2.16.1-1.fc6.i386.rpm (http://www.graphviz.or g/Download_linux. php)
dependencies of graphviz: IPC-Run-0.80.tar.gz
2. install graphviz perl module (http://search.cpan.org/dist/GraphViz/)
3. recompile...

other alternative...
problem: PerlMagick error in compiling (http://search.cpan.org/~jcristy/PerlMagick-6.32/Magick.pm)
1. Install movable type Imagemagick(Per lMagick) http://wiki.movabletyp e.org/Installation_of _ImageMagick
2. yum install ImageMagick
yum install ImageMagick-perl
Feb 11 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

by: JaNE | last post by:
Can anyone give me some simple function for resizing images and thumbnail creation with image magick (I can't install GD2 on my Mac (OSX v.10.3.5))? I have functional upload function (well, not function, but part of script...) and now I need to create thumbnails. but how? I think I will use this set of lines: $smal = "150";
by: Eric McDaniel | last post by:
I am trying to read in a bunch of images and manipulate them using Image::Magick, then display them using Tk::Photo. I would like to do this without creating a temp file for each image, since there can be quite a few of them. However, I can't make Tk::Photo understand the data returned by Image::Magick's ImageToBlob() function. Here is the way I had hoped it would work: #!perl
by: Weapons of Mass Destruction | last post by:
Can anyone tell me why Image::Magick isn't loading? I keep getting the following error: Can't load 'd:/home/d83921/cgi-bin/photo/magick/Magick.dll' for module Image::Magick: load_file:The specified module could not be found at C:/Perl/lib/DynaLoader.pm line 206. I'm trying to get the module to work on a remote Win32 and IIS server that I do NOT have local access to.
by: aks1232001 | last post by:
Hello Everyone, I'm new to this place. Have a few doubts hoping to get some response soon :) 1. How can i convert a color BMP file into a monochrome black and white image (NOT GRAYSCALE) in C ??? 2. Are there any routines available which can display images in my C application?? I know CImg might help but it uses C++ :(
by: zacariaz | last post by:
I dont know, and i dont much like javascript, however, i am told that the only way to do want i want to do, is with javascript, so here goes. zoom and cut is the only features i need. 1. the image that need manipulating is places on the server. dont need js for that ;-) 2. the client has the oppotunity to manipulate the image. cut and zoom. 3. the image i saved on the server.
by: Freedolen | last post by:
Hi, Iam new to this forum. I need to find the given TIFF image is in CMYK or RGB. Though i have checked with Image::Magick, and used: my $img = new Image::Magick; $img->Read("Sample.tif"); my ($type) = $img->Get("type");
by: tolkienarda | last post by:
hi all i need to install imagemagick with my wamp install i've noticed that the .dll is already in place and i guess i just need to know how to activate itit isn't in the php.ini file and i am a complete beginer to php mods and add ons thanks for advice eric
by: amative | last post by:
Hi all, Can any one tell me pls how we can implement Image Magick with asp.net. I have download image magick dll file from: http://midimick.com/magicknet/magickDoc.html I want to resize the picture in my website can any one help me in this
by: Thomas Guettler | last post by:
Hi, I tried PIL for image batch processing. But somehow I don't like it - Font-Selection: You need to give the name of the font file. - Drawing on an image needs a different object that pasting and saving. - The handbook is from Dec. 2006. What image libraries do you suggest? I think there are these alternatives:
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectóplanning, coding, testing, and deploymentówithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Duprť who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.