From: "Iñaki Baz Castillo" Date: 2011-02-28T22:32:18+09:00 Subject: gemspec: How to install a Ruby 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. -- Iñaki Baz Castillo