require 'rbconfig' dest_path = "./.gem.20130619-26424-1cqb0f6" RbConfig::MAKEFILE_CONFIG['sitearchdir'] = dest_path RbConfig::CONFIG['sitearchdir'] = dest_path RbConfig::MAKEFILE_CONFIG['sitelibdir'] = dest_path RbConfig::CONFIG['sitelibdir'] = dest_path