Skip to content

Instantly share code, notes, and snippets.

@capoferro
Created May 9, 2012 20:56
Show Gist options
  • Save capoferro/2648755 to your computer and use it in GitHub Desktop.
Save capoferro/2648755 to your computer and use it in GitHub Desktop.
jkiehl@JKIEHL-3 ~/Desktop/dep-selector (master)
$ gem i dep_selector -- --with-gecode-lib="$GECODEDIR"
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing dep_selector:
ERROR: Failed to build gem native extension.
c:/Ruby193/bin/ruby.exe extconf.rb --with-gecode-lib=C:\Program Files\Gecode\
checking for main() in -lgecodesearch... no
=========================================================================================
Gecode >3.5 must be installed (http://www.gecode.org/).
OSX:
brew install gecode
For convenience, we have built Gecode for Debian/Ubuntu (<release> is lucid or maverick):
Add the following two lines to /etc/apt/sources.list.d/opscode.list:
deb http://apt.opscode.com <release> main
deb-src http://apt.opscode.com <release> main
Then run:
curl http://apt.opscode.com/[email protected] | sudo apt-key add -
sudo apt-get update
sudo apt-get install libgecode-dev
Other distributions can build from source.
=========================================================================================
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=c:/Ruby193/bin/ruby
--with-gecodesearchlib
--without-gecodesearchlib
extconf.rb:57:in `<main>': Gecode not installed (RuntimeError)
Gem files will remain installed in c:/Ruby193/lib/ruby/gems/1.9.1/gems/dep_selector-0.0.8 for inspection.
Results logged to c:/Ruby193/lib/ruby/gems/1.9.1/gems/dep_selector-0.0.8/ext/dep_gecode/gem_make.out
jkiehl@JKIEHL-3 ~/Desktop/dep-selector (master)
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment