# Gem spec and C Ruby extension

**URL:** <https://www.ruby-forum.com/t/gem-spec-and-c-ruby-extension/66911>\
**Category:** Ruby\
**Created:** [August 30, 2006, 8:16am UTC](https://www.ruby-forum.com/t/gem-spec-and-c-ruby-extension/66911 "2006-08-30T08:16:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [August 30, 2006, 8:16am UTC](https://www.ruby-forum.com/t/gem-spec-and-c-ruby-extension/66911/1 "2006-08-30T08:16:11Z")

</div>

i’m reading both :  
Gemspec Reference [http://docs.rubygems.org/read/chapter/20#toc](http://docs.rubygems.org/read/chapter/20#toc) and  
DeveloperGuide  
[http://rubygems.rubyforge.org/wiki/wiki.pl?DeveloperGuide](http://rubygems.rubyforge.org/wiki/wiki.pl?DeveloperGuide)

however i don’t see any example to produce a “binary” gem from a \*.c  
file.

basically, i make use of a MakeFile (given an extconf.rb) and then  
compile (given a compil.rb) to produce a “raliasfile.bundle” which is  
the binary linked to the right dependencies over Mac OS X 10.4+.

i want this C ext to be installed in :

/path/to/lib/ruby/vendor\_ruby/1.8/powerpc-darwin8.7.0

(as rubycocoa.bundle)

is that the right place ?

where could be a test file (test.rb) installed ?

also i would like to install properly a exaple file (sample.rb) ?
