I'm trying to install tag lib-ruby on my Mac with Lion, ruby 1.9.2 installed with RVM and taglib installed with MacPorts.
After typing "gem install taglib-ruby" I have "Failed to build gem native extension".
This is the logs :
Building native extensions. This could take a while...
ERROR: Error installing taglib-ruby:
ERROR: Failed to build gem native extension.
checking for main() in -lstdc++... yes
checking for main() in -ltag... no
You must have taglib installed in order to use taglib-ruby.
Debian/Ubuntu: sudo apt-get install libtag1-dev
Fedora/RHEL: sudo yum install taglib-devel
Brew: brew install taglib
MacPorts: sudo port install taglib
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
Gem files will remain installed in /Users/jerry/.rvm/gems/ruby-1.9.2-p290/gems/taglib-ruby-0.3.0 for inspection.
Results logged to /Users/jerry/.rvm/gems/ruby-1.9.2-p290/gems/taglib-ruby-0.3.0/ext/taglib_base/gem_make.out
Can you help me to solve this problem?
Thanks a lot.
Mkmf probably can't find taglib. Do you know where MacPorts installs the library (e.g. where is include/taglib/taglib.h)? /usr/local, /opt/local, /sw?
If you know that, you can re-run the command like this:
CONFIGURE_ARGS="--with-opt-dir=/usr/local" gem install taglib-ruby
Thank you it works perfactly with :
CONFIGURE_ARGS="--with-opt-dir=/opt/local/" gem install taglib-ruby
Default opt dirs in extconf to help mkmf find taglib (#7)
Same issue when deploying on Heroku. Would I fix this by following the commands above?
Please open a new issue! Either you don't have taglib installed or extconf can't find it.