Hi, I'm trying to use Perl's File::MimeInfo. But even though I have the package installed it can't seem to find the database: $ perl -MFile::MimeInfo -le '$t = File::MimeInfo::globs( "abc.css" )' search [/Users/moseley/.local/share/mime/globs] # Debugging I added search [/usr/local/share/mime/globs] search [/usr/share/mime/globs] WARNING: You don't seem to have a mime-info database. The shared-mime-info package is available from http://freedesktop.org/ . There's no "globs" here: moseley@bair ~ $ ls -l /usr/local/share/mime lrwxr-xr-x 1 moseley staff 42 Aug 2 22:08 /usr/local/share/mime -> ../Cellar/shared-mime-info/0.90/share/mime moseley@bair ~ $ ls /usr/local/share/mime packages But, I have the package installed: $ brew install shared-mime-info Warning: Formula already installed: shared-mime-info So, I thought I'd try to install shared-mime-info from source: moseley@bair ~/Downloads/shared-mime-info-0.90 $ ./configure >/dev/null configure: error: GNU gettext tools not found; required for intltool No gettext? Seems odd, brew thinks I have it installed: moseley@bair ~/Downloads/shared-mime-info-0.90 $ brew install gettext Warning: Formula already installed: gettext Where's "globs"? Should that be part of the shared-mime-info package? Can anyone help? Thanks, -- Bill Moseley moseley@hank.org
On Thu, Sep 15, 2011 at 6:34 AM, Bill Moseley <moseley@hank.org> wrote: > > So, I thought I'd try to install shared-mime-info from source: > > moseley@bair ~/Downloads/shared-mime-info-0.90 $ ./configure >/dev/null > configure: error: GNU gettext tools not found; required for intltool > > No gettext? Seems odd, brew thinks I have it installed: > > moseley@bair ~/Downloads/shared-mime-info-0.90 $ brew install gettext > Warning: Formula already installed: gettext > > > Where's "globs"? Should that be part of the shared-mime-info package? > > Can anyone help? > > Thanks, > No idea about most of the other errors---but the failure to find gettext is due to gettext being keg-only. If you do `brew install -i shared-mime-info` you should land in a shell where gettext and iconv have been temporarily added to the PATH. -Charlie > -- > Bill Moseley > moseley@hank.org >