[Ruby] Getting icanhasaudio to Work
John Wulff
johnwulff at gmail.com
Tue Jul 31 19:13:36 PDT 2007
Looks like this may be the problem:
have_header: checking for lame/lame.h... -------------------- no
"gcc -E -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.7.1 -g -O2 -pipe
-fno-common conftest.c -o conftest.i"
conftest.c:1:23: error: lame/lame.h: No such file or directory
checked program was:
/* begin */
#include <lame/lame.h>
/* end */
--------------------
have_header: checking for ogg/ogg.h... -------------------- no
"gcc -E -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.7.1 -g -O2 -pipe
-fno-common conftest.c -o conftest.i"
conftest.c:1:21: error: ogg/ogg.h: No such file or directory
checked program was:
/* begin */
#include <ogg/ogg.h>
/* end */
--------------------
have_header: checking for vorbis/vorbisfile.h... -------------------- no
"gcc -E -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.7.1 -g -O2 -pipe
-fno-common conftest.c -o conftest.i"
conftest.c:1:31: error: vorbis/vorbisfile.h: No such file or directory
checked program was:
/* begin */
#include <vorbis/vorbisfile.h>
/* end */
--------------------
have_library: checking for main() in -lmp3lame... -------------------- no
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.7.1 -g -O2
-pipe -fno-common conftest.c -L"/usr/local/lib" -lruby-static
-lmp3lame -lpthread -ldl -lobjc "
/usr/bin/ld: can't locate file for: -lmp3lame
collect2: ld returned 1 exit status
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { main(); return 0; }
/* end */
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.7.1 -g -O2
-pipe -fno-common conftest.c -L"/usr/local/lib" -lruby-static
-lmp3lame -lpthread -ldl -lobjc "
/usr/bin/ld: can't locate file for: -lmp3lame
collect2: ld returned 1 exit status
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */
--------------------
have_library: checking for main() in -lvorbis... -------------------- no
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.7.1 -g -O2
-pipe -fno-common conftest.c -L"/usr/local/lib" -lruby-static -lvorbis
-lpthread -ldl -lobjc "
/usr/bin/ld: can't locate file for: -lvorbis
collect2: ld returned 1 exit status
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { main(); return 0; }
/* end */
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.7.1 -g -O2
-pipe -fno-common conftest.c -L"/usr/local/lib" -lruby-static -lvorbis
-lpthread -ldl -lobjc "
/usr/bin/ld: can't locate file for: -lvorbis
collect2: ld returned 1 exit status
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */
--------------------
have_library: checking for main() in -lvorbisfile... -------------------- no
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.7.1 -g -O2
-pipe -fno-common conftest.c -L"/usr/local/lib" -lruby-static
-lvorbisfile -lpthread -ldl -lobjc "
/usr/bin/ld: can't locate file for: -lvorbisfile
collect2: ld returned 1 exit status
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { main(); return 0; }
/* end */
"gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.7.1 -g -O2
-pipe -fno-common conftest.c -L"/usr/local/lib" -lruby-static
-lvorbisfile -lpthread -ldl -lobjc "
/usr/bin/ld: can't locate file for: -lvorbisfile
collect2: ld returned 1 exit status
checked program was:
/* begin */
/*top*/
int main() { return 0; }
int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */
--------------------
On 7/31/07, Aaron Patterson <aaron.patterson at gmail.com> wrote:
>
> On 7/31/07, John Wulff <johnwulff at gmail.com> wrote:
> >
> > I've got LAME. I've installed the gem. That's about as far as I've
> > gotten...
> > irb(main):001:0> require 'rubygems';require 'icanhasaudio'
> > => true
> > irb(main):002:0> Audio::MPEG::Decoder.new.decode
> > NoMethodError: undefined method `decode' for
> > #<Audio::MPEG::Decoder:0x726e8c
> > @bits=16>
> > from (irb):2
>
>
> Do you have any other information? Do you also have ogg/vorbisfile
> installed? Can you send in the mkrf.log from the gem build?
>
> Thanks!
>
> --
> Aaron Patterson
> http://tenderlovemaking.com/
> _______________________________________________
> Ruby at zenspider.com - Seattle.rb non-commercial list
> http://www.zenspider.com/seattle.rb
> http://www.zenspider.com/mailman/listinfo/ruby
>
--
John Wulff
More information about the Ruby
mailing list