LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   libmagic (https://www.linuxquestions.org/questions/slackware-14/libmagic-142079/)

ferreter 02-04-2004 12:09 AM

libmagic
 
Hello,

I'm a recent convert to Slack and am starting to get the hang of installing packages with swaret and checkinstall. But I'm running into issues getting giFT to install due to a package dependancy for libmagic (this is the only package that ./configure did not find).

I located the source for 4.07 of libmagic and libmagic-dev and installed them using checkinstall but am still getting this error when attempting to checkinstall gift:

Code:

meta_image.c:27:24: magick/api.h: No such file or directory
meta_image.c:33: syntax error before "ExceptionInfo"
meta_image.c: In function `set_image_info':
meta_image.c:35: `Image' undeclared (first use in this function)
meta_image.c:35: (Each undeclared identifier is reported only once
meta_image.c:35: for each function it appears in.)
meta_image.c:35: `img' undeclared (first use in this function)
meta_image.c:36: `ImageInfo' undeclared (first use in this function)
meta_image.c:36: `info' undeclared (first use in this function)
meta_image.c:39: warning: implicit declaration of function `CloneImageInfo'
meta_image.c:42: `path' undeclared (first use in this function)
meta_image.c:45: warning: implicit declaration of function `ReadImage'
meta_image.c:45: `excp' undeclared (first use in this function)
meta_image.c:49: warning: implicit declaration of function `DestroyImageInfo'
meta_image.c:53: `file' undeclared (first use in this function)
meta_image.c:56: warning: implicit declaration of function `DestroyImage'
meta_image.c: In function `meta_image_run':
meta_image.c:66: `ExceptionInfo' undeclared (first use in this function)
meta_image.c:66: syntax error before "excp"
meta_image.c:69: warning: implicit declaration of function `InitializeMagick'
meta_image.c:70: warning: implicit declaration of function `GetExceptionInfo'
meta_image.c:70: `excp' undeclared (first use in this function)
meta_image.c:76: warning: implicit declaration of function `DestroyExceptionInfo'
meta_image.c:77: warning: implicit declaration of function `DestroyMagick'
make[3]: *** [meta_image.lo] Error 1
make[3]: Leaving directory `/home/caesar/Applications/gift-0.11.5/src/meta'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/caesar/Applications/gift-0.11.5/src/meta'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/caesar/Applications/gift-0.11.5/src'
make: *** [install-recursive] Error 1

Any ideas?

acid_kewpie 02-04-2004 07:41 AM

well it can't find the api header.... this is for ImageMagick i take it? that would appear to be where the api.h is from, hence the errors. if you think you have all the files installed, run "updatedb" and then "locate api.h" to see if you really do have that file

ferreter 02-04-2004 09:03 AM

Will do, thanks acid_kewpie. :)

btw, I've never expected the install for Slack to go so smoothly and for it to run seemingly faster than other distros. After trying over a dozen distros for my main box I hope I've finally found a good medium between package management and usability.

ferreter 02-04-2004 06:48 PM

I believe I do in fact have ImageMagick but I'm still getting the error:

Code:

giFT 0.11.5

-------------------- core ---

giftd...................: yes
libgift.................: yes
libgiftproto............: yes
use ltdl................: yes

--------- meta data tools ---

use libvorbis...........: yes
use ImageMagick.........: yes
use libmagic............: no

-----------------------------

Any other thoughts?

Cerbere 02-05-2004 01:38 AM

When I installed giFT (on Slack 9.0) I had the same problem. I tried everything I could think of to get giFT to see libmagic but no luck, so eventually I just used './configure --disable-libmagic' and it compiled with no problems. I think that libmagic is only used to give additional info about whatever jpeg's, etc. that you are trading, so it's not really necessary.

Enjoy!
--- Cerbere

[edit] Try './configure --help' for more configure options. [/edit]


All times are GMT -5. The time now is 06:14 PM.