# Statically link a rubygem? (Rubygame)

**URL:** <https://www.ruby-forum.com/t/statically-link-a-rubygem-rubygame/177787>\
**Category:** Ruby\
**Created:** [October 23, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/statically-link-a-rubygem-rubygame/177787 "2009-10-23T17:49:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravishi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@ravishi](https://www.ruby-forum.com/u/ravishi)\
**Post date:** [October 23, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/statically-link-a-rubygem-rubygame/177787/1 "2009-10-23T17:49:07Z")

</div>

Is there a way to statically link a rubygem? I want to play with  
Rubygame in my handheld. I can build ruby to it, but how will I use  
Rubygame?

I think that I can embedd a ruby interpreter in a program and use  
Rubygame like if it was a Ruby extension. But there’s trouble in the  
process because I don’t know how to do that. I mean, Rubygame have some  
scripts in a folder “lib/rubygame/\*.rb” and I dont know how to include  
that in the static library. But I don’t want to have the “rubygame”  
folder in my program.

Is there any documentation about Ruby extensions development that is not  
like “your ruby extension in 30 seconds” and really explain how to do it  
right?

Thank you

---

<div class="post-metadata">

**Author:** ![ravishi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@ravishi](https://www.ruby-forum.com/u/ravishi)\
**Post date:** [October 23, 2009, 8:58pm UTC](https://www.ruby-forum.com/t/statically-link-a-rubygem-rubygame/177787/2 "2009-10-23T20:58:45Z")

</div>

I don’t have a clue how to answer your question but it may be worth  
popping  
into #rubygame on freenode or posting on [Rubygame: The Blog](http://rubygame.org/forums)

/Shawn
