I have a simple extension in ext/Q/flagvalue.c
My ext/Q/extconfig.rb looks like this:
require 'mkmf'
create_makefile('Q/flagvalue')
The task in Rakefile is set-up just so:
Rake::ExtensionTask.new("Q") do |extension|
extension.lib_dir = 'lib/Q'
end
when I rake build
, i get the following output:
mkdir -p tmp/x86_64-linux/Q/1.9.3 cd tmp/x86_64-linux/Q/1.9.3 /usr/local/rvm/rubies/ruby-1.9.3-p286/bin/ruby -I. ../../../../ext/Q/extconf.rb creating Makefile cd - cd tmp/x86_64-linux/Q/1.9.3 make compiling ../../../../ext/Q/flagvalue.c linking shared-object Q/flagvalue.so cd - install -c tmp/x86_64-linux/Q/1.9.3/Q.so lib/Q/Q.so rake aborted! No such file or directory - tmp/x86_64-linux/Q/1.9.3/Q.so
So it seems like the compiler compiles and links flagvalue.so and the installer tries to install non-existent Q.so… where does this error come from and what can I do about it?