编辑2012年4月5日
我发布了一个不正确的mkmf.log,它只与gecoder相关联,而不是gecoder与gecode。这是mkmf.log 的正确版本。 http://pastebin.com/3yNpkvzw
这是我的mkmf.log的链接。 http://pastebin.com/8Yv7Cqd6< - 错误的一个!
(我使用的是Ruby 1.9.3。)我使用的下载说明:http://gecoder.rubyforge.org/installation.html。
我按照此处的说明使用gecode安装 Gecoder ,它给了我下面的错误日志:
1 ROR: Error installing gecoder-with-gecode:
2 ERROR: Failed to build gem native extension.
3
4 /Users/cj3/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
5 checking for main() in -lgecodesupport... yes
6 checking for main() in -lgecodekernel... yes
7 checking for main() in -lgecodeint... yes
8 checking for main() in -lgecodeset... yes
9 checking for main() in -lgecodesearch... yes
10 checking for main() in -lgecodeminimodel... yes
11 checking for rust_conversions.hh in /Users/cj3/.rvm/gems/ruby-1.9.3-p0/gems/gecoder-with-gecode-1.0.0/vendor/rust/include... yes
12 checking for rust_checks.hh in /Users/cj3/.rvm/gems/ruby-1.9.3-p0/gems/gecoder-with-gecode-1.0.0/vendor/rust/include... yes
13 /Users/cj3/.rvm/gems/ruby-1.9.3-p0/gems/gecoder-with-gecode-1.0.0/vendor/rust/rust/class.rb:292: warning: else without rescue is useless
14 /Users/cj3/.rvm/gems/ruby-1.9.3-p0/gems/gecoder-with-gecode-1.0.0/vendor/rust/rust/class.rb:311: warning: else without rescue is useless
15 *** extconf.rb failed ***
16 Could not create Makefile due to some reason, probably lack of
17 necessary libraries and/or headers. Check the mkmf.log file for more
18 details. You may need configuration options.
有人有什么想法吗?另外,我已经安装了所有依赖项