I was trying to retrieve metadata from audio formats. For this I wanted to use taglib-ruby gem. While running command (gem install taglib-ruby) I was getting
ERROR: Error installing taglib-ruby:
ERROR: Failed to build gem native extension.
It is because I need to install taglib before I install taglib-ruby gem. However, this was not as easy as I thought it would be. In CentOS I could not compile the version 1.8. After trying different things, I tried and could compile it’s 1.7 version.
Today, I tried to install taglib and taglib-ruby in Debian (6x). I was getting similar issues. However, this is how I could sort it out.
The latest taglib-ruby was still causing problem. So, I installed taglib and taglib-ruby 0.4x.
sudo apt-get install libtag1-dev
sudo gem install taglib-ruby -v 0.4.0
This time the gem is installed successfully.