# ID3Lib 0.5.0 problems installing on FreeBSD

**URL:** <https://www.ruby-forum.com/t/id3lib-0-5-0-problems-installing-on-freebsd/110999>\
**Category:** Ruby\
**Created:** [August 1, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/id3lib-0-5-0-problems-installing-on-freebsd/110999 "2007-08-01T20:08:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 1, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/id3lib-0-5-0-problems-installing-on-freebsd/110999/1 "2007-08-01T20:08:06Z")

</div>

Gems is not finding my id3.h file which is clearly inside of /usr/  
local/include/id3.h. When I try to install I get the following  
message:

> sudo gem install id3lib-ruby  
> Password:  
> Need to update 2 gems from [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> …  
> complete  
> Select which gem to install for your platform (i386-freebsd4)

1. id3lib-ruby 0.5.0 (ruby)
2. id3lib-ruby 0.5.0 (mswin32)
3. id3lib-ruby 0.4.1 (mswin32)
4. id3lib-ruby 0.4.1 (ruby)
5. Skip this gem
6. Cancel installation

> 1  
> Building native extensions. This could take a while…  
> ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)  
> ERROR: Failed to build gem native extension.

ruby extconf.rb install id3lib-ruby  
checking for main() in -lstdc++… yes  
checking for main() in -lz… yes  
checking for id3.h… no  
You must have id3lib installed in order to use id3lib-ruby.  
\*\*\* 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:  
–with-opt-dir  
–without-opt-dir  
–with-opt-include  
–without-opt-include=${opt-dir}/include  
–with-opt-lib  
–without-opt-lib=${opt-dir}/lib  
–with-make-prog  
–without-make-prog  
–srcdir=.  
–curdir  
–ruby=/usr/local/bin/ruby18  
–with-stdc++lib  
–without-stdc++lib  
–with-zlib  
–without-zlib

Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/  
id3lib-ruby-0.5.0 for inspection.  
Results logged to /usr/local/lib/ruby/gems/1.8/gems/id3lib-ruby-0.5.0/  
ext/gem\_make.out

I printed out the log and I get:  
have\_library: checking for main() in -lstdc++… --------------------  
yes

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-freebsd4 -I. -g -O  
-pipe -D$  
checked program was:  
/\* begin _/  
1: /top/  
2: int main() { return 0; }  
3: int t() { void ((volatile p)()); p = (void (()()))main; return  
0; }  
/_ end \*/

* * *

have\_library: checking for main() in -lz… -------------------- yes

"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-freebsd4 -I. -g -O  
-pipe -D$  
checked program was:  
/\* begin _/  
1: /top/  
2: int main() { return 0; }  
3: int t() { void ((volatile p)()); p = (void (()()))main; return  
0; }  
/_ end \*/

* * *

have\_header: checking for id3.h… -------------------- no

"cc -E -I. -I/usr/local/lib/ruby/1.8/i386-freebsd4 -I. -g -O -pipe -  
DISERVER $  
conftest.c:1: id3.h: No such file or directory  
checked program was:  
/\* begin _/  
1: #include \<id3.h\>  
/_ end \*/

* * *

any ideas? TIA!

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2007, 10:06am UTC](https://www.ruby-forum.com/t/id3lib-0-5-0-problems-installing-on-freebsd/110999/2 "2007-08-02T10:06:18Z")

</div>

Hi,

On 8/1/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Gems is not finding my id3.h file which is clearly inside of /usr/  
> local/include/id3.h. When I try to install I get the following  
> message:

You could try libmtag instead.  
[http://code.google.com/p/libmtag/](http://code.google.com/p/libmtag/)

I created that project so if you have any problems I’ll be glad to help  
you.

Cheers.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 2, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/id3lib-0-5-0-problems-installing-on-freebsd/110999/3 "2007-08-02T17:38:32Z")

</div>

I will definately check it out. I was using mp3info before id3lib but  
it was unreliable. ID3Lib produces the best results thusfar, but if  
your library works better I would be glad to use this one over any  
alternatives. I will let you know how it goes!

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 8, 2007, 10:01pm UTC](https://www.ruby-forum.com/t/id3lib-0-5-0-problems-installing-on-freebsd/110999/4 "2007-08-08T22:01:17Z")

</div>

btw, i figured it out. My comments on this page should help anyone  
that runs into this problem in the future:

[http://rubyforge.org/tracker/index.php?func=detail&aid=7031&group\_id=1384&atid=5449](http://rubyforge.org/tracker/index.php?func=detail&aid=7031&group_id=1384&atid=5449)
