HackerMusic icon indicating copy to clipboard operation
HackerMusic copied to clipboard

Installing libshout on Snow Leopard

Open alx opened this issue 15 years ago • 3 comments

Have someone succeeded in installing libshout on Snow Leopard?

Current output:

/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require': no such file to load -- shout (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:inrequire' from hacker_music.rb:6

Steps tried:

  • sudo port install rb-shout
  • sudo port install libshout
  • direct complation from sources

alx avatar Dec 29 '09 12:12 alx

$ sudo gem install ruby-shout
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-shout:
        ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for oggpack_writeinit() in -logg... no
checking for vorbis_dsp_clear() in -lvorbis... no
checking for pthread_create() in -lpthread... yes
checking for shout_init() in -lshout... no
*** 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=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
        --with-shout-dir
        --without-shout-dir
        --with-shout-include
        --without-shout-include=${shout-dir}/include
        --with-shout-lib
        --without-shout-lib=${shout-dir}/lib
        --with-ogglib
        --without-ogglib
        --with-vorbislib
        --without-vorbislib
        --with-pthreadlib
        --without-pthreadlib
        --with-shoutlib
        --without-shoutlib
*** ERROR: need to have libshout and shout/shout.h to compile this module


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ruby-shout-2.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/ruby-shout-2.1/ext/gem_make.out

alx avatar Dec 29 '09 13:12 alx

I've got the app running successfully on Snow Leopard:

macbook ~/HackerMusic $ sudo port installed | grep libshout
libshout2 @2.2.2_1 (active)

Have you tried installing libshout2?

dabeeeenster avatar Dec 29 '09 18:12 dabeeeenster

yes, same here:

$ sudo port installed | grep libshout
  libshout2 @2.2.2_1 (active)

It's just that ruby-shout doesn't compile, because shout_init() can't be found (even if lib is inside the right directories...).

If any help? I'll continue to dig this issue.

alx avatar Dec 29 '09 21:12 alx