How to install a Ruby .so extension into GEM/lib/SOME_DIR/ rather than GEM/lib
Hi, supposing a gemspec containing:
Gem::Specification.new do |spec|
spec.name = "xxx-handler"
[...]
spec.extensions = ["ext/xxx_parser/extconf.rb"]
end
when running "gem install xx-handler" the compiled extension xxx_parser.so is installed into GEMS_DIR/xxx-handler/lib/ directory.
Is it possible to tell the gemspec file to install the extension in a subdirectory within GEMS_DIR/xxx-handler/lib/ ?
Thanks a lot.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Luis Lavena on 28 Feb, 2011 03:12 PM
Hello,
Please read mkmf documentation about
create_makefileSee examples like sqlite3-ruby, mysql gem or others.
Luis Lavena closed this discussion on 28 Feb, 2011 03:12 PM.
Iñaki Baz Castillo re-opened this discussion on 28 Feb, 2011 03:25 PM
3 Posted by Iñaki Baz Castillo on 28 Feb, 2011 03:25 PM
Thanks, using "create_makefile(dir/name)" does the work.
Nick Quaranto closed this discussion on 17 Mar, 2011 03:34 PM.