IF you are using the gem "ruby-mp3info", it will work well in windows. but in linux, it wont. Coz mp3info will throw errors on 64 bit versions of Ruby.
To clear this problem, you have to apply the following patch which allows mp3info to work on 64 bit versions of Ruby...
Remove the NumericBits module from extension_modules.rb.
Remove "head.extend(NumericBits)" from mp3info.rb
Add this to the top of mp3info.rb
-class Bignum
- def bits(b, a)
- t = 0
- b.downto(a){ |i| t += t + self[i] }
- t
- end
-end
And the most important point is
you have to include "rubygems" while including "mp3info"
like this
require "rubygems"
require "mp3info"
otherwise it will throw "no such file to load" error....
Saturday, February 17, 2007
Subscribe to:
Post Comments (Atom)



0 comments:
Post a Comment