# Ruby-shout installation issue

**URL:** <https://www.ruby-forum.com/t/ruby-shout-installation-issue/79913>\
**Category:** Ruby\
**Created:** [December 20, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/ruby-shout-installation-issue/79913 "2006-12-20T17:33:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vivek](https://www.ruby-forum.com/u/vivek)\
**Post date:** [December 20, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/ruby-shout-installation-issue/79913/1 "2006-12-20T17:33:24Z")

</div>

Hi,  
I am trying to install ruby-shout(used to serve audio to icecast  
server) .I have libshout,vorbis and liboggz  
But I get this error

ERROR: While executing gem … (RuntimeError)  
ERROR: Failed to build gem native extension.  
Gem files will remain installed in  
/usr/lib/ruby/gems/1.8/gems/ruby-shout-2.1 fo  
r inspection.

Results logged to  
/usr/lib/ruby/gems/1.8/gems/ruby-shout-2.1/ext/gem\_make.out

I am not sure what the "failed to build native extension " means.  
Any ideas  
vivek

---

<div class="post-metadata">

**Author:** ![vivek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vivek](https://www.ruby-forum.com/u/vivek)\
**Post date:** [December 20, 2006, 6:20pm UTC](https://www.ruby-forum.com/t/ruby-shout-installation-issue/79913/2 "2006-12-20T18:20:16Z")

</div>

Vivek wrote:

> I am trying to install ruby-shout(used to serve audio to icecast  
> server) .I have libshout,vorbis and liboggz  
> But I get this error
> 
> ERROR: While executing gem … (RuntimeError)  
> ERROR: Failed to build gem native extension.  
> Gem files will remain installed in  
> /usr/lib/ruby/gems/1.8/gems/ruby-shout-2.1 fo  
> r inspection.
> 
> Results logged to  
> /usr/lib/ruby/gems/1.8/gems/ruby-shout-2.1/ext/gem\_make.out
> 
> I am not sure what the "failed to build native extension " means.

That means the ruby-shout gem comes with some C code. The gem  
installation was trying to compile that C code but the compilation  
failed for some reason. That reason is shown in that gem\_make.out log  
file.

Usually the problem is that you’re missing some C libraries. In some  
GNU/Linux distros, it’s common that you’re missing a C compiler  
altogether because it’s not installed by default.

---

<div class="post-metadata">

**Author:** ![vivek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vivek](https://www.ruby-forum.com/u/vivek)\
**Post date:** [December 20, 2006, 7:10pm UTC](https://www.ruby-forum.com/t/ruby-shout-installation-issue/79913/3 "2006-12-20T19:10:17Z")

</div>

On 12/19/06, Vivek [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Results logged to  
> /usr/lib/ruby/gems/1.8/gems/ruby-shout-2.1/ext/gem\_make.out
> 
> I am not sure what the "failed to build native extension " means.  
> Any ideas  
> vivek

The gem you are trying to install contains a piece of C code that  
needs to be compiled.  
You are missing either the compile environment (gcc, make, etc., if on  
debian/ubuntu: apt-get install build-essential) or some of the  
libraries the extension is dependent on (maybe you need to install the  
dev package of the library - with headers and such).  
Or you are experiencing another error. See the log for details.

---

<div class="post-metadata">

**Author:** ![vivek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vivek](https://www.ruby-forum.com/u/vivek)\
**Post date:** [December 20, 2006, 8:05pm UTC](https://www.ruby-forum.com/t/ruby-shout-installation-issue/79913/4 "2006-12-20T20:05:22Z")

</div>

Hi

> –  
> I checked it and found that the the message says it cant find libshout  
> library…but then i installed the libshout library and still gives same  
> error. however libshout is installed in ./usr/lib and  
> /usr/local/lib.could this be a problem?

thanks
