mkmf

Error installing gem failed to build gem native extensions — cannot load such file — mkmf

时光怂恿深爱的人放手 提交于 2019-12-07 05:21:13
问题 RoR is nice, but sometimes makes me want to bang my head against the wall (and it's probably my fault anyway). I'm simply trying to install the Thin web-client gem, and when I run sudo gem install thin , I get the following error (it requires the installation of the eventmachine gem first): sudo gem install thin Fetching: eventmachine-1.0.1.gem (100%) Building native extensions. This could take a while... ERROR: Error installing thin: ERROR: Failed to build gem native extension. /usr/bin

mkmf ignores files in sub-folders when it compiles the C extension

纵然是瞬间 提交于 2019-11-30 17:01:57
问题 I'd like to organize the C source code like this: + / | |___ + ext | | | |___ + native_extension | | | |___ + lib | | | | | |___ (Source files are kept in here - may contain sub-folders) | | | |___ native_extension.c | |___ native_extension.h | |___ extconf.rb | |___ + lib | | | |___ (Ruby source code) | |___ Rakefile I'm having trouble getting this setup to work correctly with mkmf . The files in native_extension/lib , which are included by native_extension.c , are being completely ignored.