bin vs ext diretcory

coder's Avatar


14 Nov, 2011 01:53 AM

Can someone please confirm if I am using the following directories correctly?

bin directory: purposed for executable files? I am planning on placing my C library in here
ext directory: purposed for extension files? I am planning on placing my ruby extension c files in here

Thanks in advance!

  1. Support Staff 1 Posted by Eric Hodel on 14 Nov, 2011 08:41 PM

    Eric Hodel's Avatar

    The bin should only contain executable ruby programs. If you place library files here they will not be usable by users. If you place non-ruby executable programs they will not be usable by users by default.

    The ext directory should contain your C extension. The extconf.rb and other files for the C extension should be in a subdirectory of ext/ like ext/my_extension/extconf.rb and ext/my_extension/my_extension.c

    If you're packaging as a precompiled extension you should place the compiled library in lib.

  2. 2 Posted by coder on 14 Nov, 2011 09:42 PM

    coder's Avatar

    Thank you for clarifying.

  3. Nick Quaranto closed this discussion on 08 Dec, 2011 02:32 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac