WebFaction
Community site: login faq

I need libmagic for a python library I am using. I can find it in most UBuntu distributions, but can't find one for CentOS. I tried installing this:

http://sourceforge.net/projects/libmagicengine/

but the instructions that came with it seems to not work with the package's contents.

Any other alternatives, or maybe something that I have missed?

Thanks in advance!

asked 12 Dec '12, 19:32

Ygam Retuta
136
accept rate: 0%

edited 12 Dec '12, 19:32

This source package looks broken to me. It has a configure.in, which autoconf would use to create the configure script which you could then run as ./configure --prefix=$HOME.

The configure.in is broken, though:

configure.in:46: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:55: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.in:62: error: possibly undefined macro: AM_CONFIG_HEADER

The package also hasn't been updated since 2005, so that might be why. Are you sure this is the package you need?

(12 Dec '12, 21:14) ryans ♦♦

I am not sure. Ubuntu has packages for libmagic, any ideas for the CentOS ones?

(16 Dec '12, 04:21) Ygam Retuta

I think you're talking about the RPM package file-libs-5.04-13.el6.x86_64, and that's already installed (that's different than the software from the link you provided). This package provides /usr/lib64/libmagic.so.1.0.0.

If you need the header file, you can get it from this package: http://rpmfind.net/linux/RPM/centos/6.3/x86_64/Packages/file-devel-5.04-13.el6.x86_64.html

extract it using this:

rpm2cpio < file-devel-5.04-13.el6 | cpio -i --make-directories
(16 Dec '12, 18:18) ryans ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×44
×9

question asked: 12 Dec '12, 19:32

question was seen: 7,016 times

last updated: 16 Dec '12, 18:18

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM