LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-02-2011, 04:42 PM   #1
gginnj
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Rep: Reputation: Disabled
Trying to install PerlMagick (ImageMagick) - where do I find values for LIB / INC?


I downloaded, configured and installed ImageMagic-6.7 without too much trouble.

I'm trying to install the perl module Image::Magick,
and using MCPAN just errors out big time.

I read in the docs for installing ImageMagic, that I need to edit the Makefile.PL in the PerlMagick directory before I can do a make / make install.

I'm supposed to change the LIBS and INC, but I have no idea what I'm supposed to change them to? Do I just add to what's there? Where do I find the values to add/change to?

I'm guessing once this is in place correctly, I should be able to compile/install the module.

Thanks
 
Old 06-02-2011, 06:06 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what OS are you using ?? magick++ will be in the repos
and so will be the perl modules
 
Old 06-02-2011, 08:12 PM   #3
gginnj
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
The OS is Fedora 13

The goal was to compile a perl program which decodes a barcode image, which
required both Image::Magick and Barcode::ZBar

No, the PERL module Image::Magick was not in the distro, so I tried to install it
and it gave a flurry of warnings, and would not make.

Thinking that since MCPAN was installing the latest perlmagick, which was not the
same level as the imagemagick, I tried yum install, which wasn't installing a
high enough level to match the perlmagick, so I needed to download and manually
install the imagemagick, which went fine.

the .configure / make and install of imagemagick when great.
however, in order to make and install the perlmagick portion, you need to replace
two values in the Makefile.PL file (INC and LIBS), however, I don't know where to
get the values to put in there?
 
Old 06-02-2011, 08:25 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
fedora 13
you do know that in a few days fedora 13 hits it's END OF LIFE
there will be NO support for it ever again .
you might want to install fedora 14 or the current fedora 15


Quote:
the goal was to compile a perl program which decodes a barcode image
can you post a link to this unnamed software
That way we can help with the code .Other wise it is just guessing

the lib and inc are ( i am guessing ) the NOT fedora perl programs that you DID install into there OWN folder and did NOT install that DIFFERENT version system wide ???

you said you installed a DIFFERENT imagemagick that is in the repos so YOU DID install it in it's OWN FOLDER RIGHT ????

that folder has a include and lib folder
you use that path for those variables .
 
Old 06-02-2011, 10:08 PM   #5
gginnj
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
URL http://sourceforge.net/apps/mediawik..._using_the_API

Yes, the imagemagick was installed into it's own location /usr/local/imagemagick/imagemagick-version#

The perlmagick is in a subdirectory of the imagemagick, and the
current LIBS/INC use a "../" notation which, the make expands properly.
 
Old 06-02-2011, 11:03 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
I am on OpenSUSE 11.3 - or ScientificLinux-6 and not the near EOL fedora 13


zbar-0.10.tar.bz2
last modified in Oct.2009
IM 6.7 is mostlikely to new .The README uses IM 6.2.6
IM6.7 might not work for this older program

so the IM in the fedora 13 repo should be fine for this

for imagemagick you might need to install "magick++ "
Code:
yum search Magick++
-- be sure that the "package.rpm" and "package-devel.rpm" are installed
video4linux - should be in rpmforge or rpmfusion repos ?
QT - fedoras kde qt4 will be fine( make sure the -devel is installed )
GTK - Gnomes will be fine ( make sure the -devel is installed )
PyGTK - this i think had a renaming use a yum search for gtk should find it as something "python-gtk-devel"&"python-gtk" or something like that

The Python bindings... DO NOT CHANGE FEDORAS PYTHON !!! you might kill the os !!!
use the version of python in fedora 13 repo!!!!!!!!!!!!

Perl ( yum install perl)

also fedora 13 gcc 4.4.5 might be too new ? ( just built in with gcc 4.5 - it builds )


some basics for fedora :
you might want the gnome and kde software development packages
you also will want to have installed the "development tools" and "development librarys"
see:
Code:
yum grouplist
for the available software groups then
example
Code:
yum groupinstall "Development Tools" "Development Librarys"
 
Old 06-02-2011, 11:32 PM   #7
gginnj
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Possibly IM too new for ZBar...I can always try building a lower version of the IM.
this project is low priority, and right now, it will have to be tabled for a couple weeks.

Thanks for the input.

As for python....I upgraded that months ago - no problems.
I already yum'd perl

I rarely use the gnome interface, not KDE at all), I mostly use the Command line anyway.
Some of the administrative tasks I'll use the GUI for, but usually command line, since I usually
hook up to the system remotely - xwindows over the internet tends to get a little slow at times.

Not sure what imagek++ is...I'll look into it. This might be my problem if it is what I think it is.

the goal is to pass QRcode images into the perl program to extract their contents.
I've already got the qrencode setup to go the other way.

Summer project: Upgrade to Fedora 14 then to Fedora 15

It will need to be a slow process, I've got a Couple DBMS's running and a bunch
of perl programs that would have to be tested on each upgrade to see if I need to upgrade any
of those modules as well.
 
Old 06-02-2011, 11:46 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Upgrade to Fedora 14 then to Fedora 15
do not
backup data and reformat and do a clean install of 15 or 16 ( if you wait for 5.5 months)

the zbar code i just built ( did not install or test )
-- all default --
cd ~/Download/zbar-0.10
./configure
make
-- all below are in my repos---
with imagemagick 6.6 & libmagick -( aka magick++ ) & perl-magick 6.6
video4linux ( libv4l 6.4)
gnome and KDE development code - for current
python-gtk 2.17
 
Old 06-03-2011, 01:07 AM   #9
gginnj
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
I hate upgrades!

it's all the crap in the /etc that needs to be moved back over that is worst of it.

Then reloading all the perl modules.
and re-installing the DBMS' (MySQL is the easy one).

Generally, I'll try the upgrade method first, if there are any issues, then I do the clean install. But either way...I do a final full backup, and inventory the /etc files I need to copy back.
 
Old 06-03-2011, 01:10 AM   #10
gginnj
LQ Newbie
 
Registered: Jun 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Oh, btw, the zbar code built fine...actually I used yum to install that.

It was the Perl Module Barcode::ZBar that I was unable to load with MCPAN, had to install the .pm manually.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
imagemagick to find duplicate images leupi Linux - Software 1 11-18-2010 02:54 PM
I can't find imagemagick package in the repositories iqbala Ubuntu 7 04-30-2010 11:23 AM
install ImageMagick-6.5.1-2 & ImageMagick-devel-6.5.1.2 in red hat mokkai Linux - Enterprise 4 04-16-2009 12:04 PM
where would I find ImageMagick's convert program? kuplo Linux - Software 1 01-12-2006 12:00 AM
DVDRIP does not find transcode and Imagemagick t2dreamer Linux - Software 3 10-25-2005 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration