Ruby-mp3info

i have checked around on the net, but have not found anything… i also
can’t get the search to work on this site either, so i decided to try
here…

i am trying to get this package to work… installed the gem…

then did this…

require “mp3info”

Mp3Info.open(“myfile.mp3”)

and all i get is this:

mp3.rb:4: uninitialized constant Mp3Info (NameError)

i am sure i am doing something really stupid… but i am stumped…

any ideas?

thanks!

Sergio R. wrote:

Mp3Info.open(“myfile.mp3”)
thanks
Use require ‘rubygems’ first.

-Justin

Use require ‘rubygems’ first.

-Justin

got it! thanks!

i tried that, mixed with other stuff i found via google… with no luck…

the winning combo is:

require “rubygems”
require “mp3info”

thanks again…

It didn’t find the package. It worked after I add the path of mp3info to
$:,
ie,

$:.push(“c:/ruby/lib/ruby/gems/1.8/gems/ruby-mp3info-0.5/lib”)
require “mp3info”

Nam

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs