# OCRA with Prawn (or other libraries that require non-Ruby files)

**URL:** <https://www.ruby-forum.com/t/ocra-with-prawn-or-other-libraries-that-require-non-ruby-files/183520>\
**Category:** Ruby\
**Created:** [February 16, 2010, 2:16am UTC](https://www.ruby-forum.com/t/ocra-with-prawn-or-other-libraries-that-require-non-ruby-files/183520 "2010-02-16T02:16:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [February 16, 2010, 2:16am UTC](https://www.ruby-forum.com/t/ocra-with-prawn-or-other-libraries-that-require-non-ruby-files/183520/1 "2010-02-16T02:16:25Z")

</div>

I’m trying to package a script into an .exe using OCRA. My script uses  
Prawn, and it uses the font Helvetica. The problem is that the script  
therefore requires the Helvetica.afm file found in  
RUBYDIR\lib\ruby\gems\1.9.1\gems\prawn-core-0.7.2\data\fonts.  
Similarly, it seems to need  
RUBYDIR\lib\ruby\gems\1.9.1\gems\prawn-core-0.7.2\data\encodings\win\_ansi.txt.  
I know I can package extra files with OCRA, but they go in the src  
directory along with the Ruby script (or whatever subdirectory of that  
you specify), rather than under the OCRAized copy of the Ruby  
directory.

Is there any way to get it to include additional files under the  
proper directory hierarchy?

---

<div class="post-metadata">

**Author:** ![ericrchr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Post date:** [February 16, 2010, 4:09am UTC](https://www.ruby-forum.com/t/ocra-with-prawn-or-other-libraries-that-require-non-ruby-files/183520/2 "2010-02-16T04:09:58Z")

</div>

I was wondering the same thing. I was contemplating a rake task to  
compose  
all my dependencies into a build directory. Seems like OCRA should have  
an  
easy way to address this. I was also looking for a way to have OCRA load  
in  
DLLs that are in system32.

/Shawn

On Mon, Feb 15, 2010 at 8:15 PM, Eric C. \<
