# Hoe or inline C question

**URL:** <https://www.ruby-forum.com/t/hoe-or-inline-c-question/154161>\
**Category:** Ruby\
**Created:** [November 26, 2008, 12:00am UTC](https://www.ruby-forum.com/t/hoe-or-inline-c-question/154161 "2008-11-26T00:00:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madiba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@madiba](https://www.ruby-forum.com/u/madiba)\
**Post date:** [November 26, 2008, 12:00am UTC](https://www.ruby-forum.com/t/hoe-or-inline-c-question/154161/1 "2008-11-26T00:00:46Z")

</div>

For some resons I need to use C code (don’t worry jruby code will be  
soon 😉 ). However I’d like to have it compiled (well - not evryone has  
Gentoo 😉 ). AFAIK the hoe is capable of doing it. However there is no  
migration doscumentation (currently I build gem on bases of gemspec in  
Rakefile).

1. Is the hoe only way of prebuilding it? If not what is the simplest  
way to do it from my situation.
2. How to migrate the config to hoe? Is it possible to use different  
file names then it is chosen (I have more unix-like names without .txt).

Regards

---

<div class="post-metadata">

**Author:** ![madiba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@madiba](https://www.ruby-forum.com/u/madiba)\
**Post date:** [November 26, 2008, 11:42am UTC](https://www.ruby-forum.com/t/hoe-or-inline-c-question/154161/2 "2008-11-26T11:42:43Z")

</div>

AFAIK you can build it and add generated .so file to your gem (as you  
do with regular .rb files).

–  
Pozdrawiam

Rados³aw Bu³at  
[http://radarek.jogger.pl](http://radarek.jogger.pl) - mój blog

---

<div class="post-metadata">

**Author:** ![madiba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@madiba](https://www.ruby-forum.com/u/madiba)\
**Post date:** [November 26, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/hoe-or-inline-c-question/154161/3 "2008-11-26T20:01:07Z")

</div>

RadosÅ‚aw BuÅ‚at [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> AFAIK you can build it and add generated .so file to your gem (as you  
> do with regular .rb files).

In the ext directory or somewhere else? AFAIU the building == running?

Regards
