ruby-c-extension

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.

error: failed to build gem native extension when installing rails on mac mountian lion os

落花浮王杯 提交于 2019-11-27 19:19:53
I've recently updated to Mountain Lion and re-installed Ruby, but when I try to run a test Rails app, I get an error message that says that "Rails is not currently installed" on my system. I do what it says, type sudo gem install rails and get: cleared faster_require caches due to new gem install... Successfully installed rails-3.2.7 1 gem installed Installing ri documentation for rails-3.2.7... Installing RDoc documentation for rails-3.2.7... But when I check to see which rails version is install, here is what I get: Rails is not currently installed on this system. To get the latest version,

error: failed to build gem native extension when installing rails on mac mountian lion os

早过忘川 提交于 2019-11-27 04:21:58
问题 I've recently updated to Mountain Lion and re-installed Ruby, but when I try to run a test Rails app, I get an error message that says that "Rails is not currently installed" on my system. I do what it says, type sudo gem install rails and get: cleared faster_require caches due to new gem install... Successfully installed rails-3.2.7 1 gem installed Installing ri documentation for rails-3.2.7... Installing RDoc documentation for rails-3.2.7... But when I check to see which rails version is