bin vs ext diretcory
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!
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Eric Hodel on 14 Nov, 2011 08:41 PM
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.
3 Posted by coder on 14 Nov, 2011 09:42 PM
Thank you for clarifying.
Nick Quaranto closed this discussion on 08 Dec, 2011 02:32 AM.