# Adding a ruby library built using swig

**URL:** <https://www.ruby-forum.com/t/adding-a-ruby-library-built-using-swig/175545>\
**Category:** Ruby\
**Created:** [September 15, 2009, 1:09pm UTC](https://www.ruby-forum.com/t/adding-a-ruby-library-built-using-swig/175545 "2009-09-15T13:09:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ed8c4c/32.png) [@lyes](https://www.ruby-forum.com/u/lyes)\
**Post date:** [September 15, 2009, 1:09pm UTC](https://www.ruby-forum.com/t/adding-a-ruby-library-built-using-swig/175545/1 "2009-09-15T13:09:44Z")

</div>

Hello!

I have a pb with ruby rails and swig

I have wrapped a c library I have made into ruby using swig  
now I want to use it in a rails project

I have already tested my library with a ruby script and it worked well

I added the path to the swig generated library in my script and it  
recognized my library

but when I tired to call my library in my rails project, it did not  
recognize any of the generated files even when I added their path (using  
"$:  
\<\< “path/to/swig/library”)

have anyone an Idea on how to do that

I know that I have to post this message in the rails mailing list, but  
nobody has replied yet, so I try here

thank you
