I'm writing an application that uses taglib-ruby, which in turn depends on Taglib. So that the user doesn't have to download and install taglib themselves, I want to bundle it with my application. I don't have much experience doing this kind of thing, but my sense is that I need to do the following:
- Compile Taglib to a folder within my app
- Compile taglib-ruby, pointing it to the local Taglib from the previous step
The problem I'm running into is that rake clean compile
in step 2 fails with the error:
checking for main() in -ltag... no
You must have taglib installed in order to use taglib-ruby.
If I simply brew install taglib
, then step 2 runs without a problem. I have tried step 1 in two ways: 1) simply copying the installed files from Homebrew's Cellar
directory after running brew install
, and 2) Downloading and running cmake
on the extracted contents of one of the tar files on Taglib's website.
Since this error obviously suggests that rake clean compile
can't find my non-Homebrew installed version of Taglib, I tried editing the opt_dirs
variable in the extconf_common.rb file in taglib-ruby, but no luck.
How can I get taglib-ruby to use a locally installed version of Taglib?