Closed keteracel closed 12 years ago
I'm also having this issue. Gecode installed without an issue but the gem can't find it even though it's on my path.
I have the same issue.
1.9.3p194 :001 > require 'dep_selector'
LoadError: libgecodeminimodel.so.23: cannot open shared object file: No such file or directory - /usr/local/rvm/gems/ruby-1.9.3-p194/gems/dep_selector-0.0.8/lib/dep_gecode.so
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/dep_selector-0.0.8/lib/dep_selector/gecode_wrapper.rb:20:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/dep_selector-0.0.8/lib/dep_selector/dependency_graph.rb:21:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/dep_selector-0.0.8/lib/dep_selector/selector.rb:20:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/dep_selector-0.0.8/lib/dep_selector.rb:22:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from (irb):1
from /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `<main>'
% file /usr/local/rvm/gems/ruby-1.9.3-p194/gems/dep_selector-0.0.8/lib/dep_gecode.so
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/dep_selector-0.0.8/lib/dep_gecode.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
Hey all, sorry for the late reply. I won't have a chance to look at this for a while. I left Opscode a while ago, but the guy I worked on it with, Mark Anderson, is still there. Take a look at https://github.com/opscode/dep-selector.
I try:
gem install dep_selector
and get an error:
c:/tools/Ruby192/bin/ruby.exe extconf.rb
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 ( is lucid or maverick):
Add the following two lines to /etc/apt/sources.list.d/opscode.list:
deb http://apt.opscode.com main
deb-src http://apt.opscode.com main
Then run:
curl http://apt.opscode.com/packages@opscode.com.gpg.key | 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:/tools/Ruby192/bin/ruby --with-gecodesearchlib --without-gecodesearchlib extconf.rb:57:in `': Gecode not installed (RuntimeError)
I have installed geocode using the windows installer and restarted CMD so I see it added to my path. But the install still does not work.