-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSX: With homebrew GeCode 4.x installed, gem doesn't work #22
Comments
@docwhat This is caused by an issue in ruby. On this line: https://github.com/opscode/dep-selector/blob/master/ext/dep_gecode/extconf.rb#L31 we ask ruby to check if it can find the gecode library in dep-selector-libgecode. Ruby uses the value of I'm at chefconf this week so I don't have a ton of free time, but I'd like to research whether there is a fix in ruby for this problem before trying to implement a workaround in dep-selector. |
Also, this is pretty weird (results of
Note this part:
That doesn't exist on my system. |
@lamont-granquist any thoughts? |
I was thinking about it on the way home. It can't just be an RPATH problem or brew uninstall would fix it. And brew installing gecode afterwards would break it. If your custom downloading/compiling gecode anyway, why not static link it? |
On my home laptop, I get: $ otool -L /usr/local/var/rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/dep_selector-1.0.2/lib/dep_gecode.bundle
/usr/local/var/rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/dep_selector-1.0.2/lib/dep_gecode.bundle:
/usr/local/var/rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/dep-selector-libgecode-1.0.0/lib/dep-selector-libgecode/vendored-gecode/lib/libgecodesearch.32.dylib (compatibility version 32.0.0, current version 32.0.0)
/usr/local/var/rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/dep-selector-libgecode-1.0.0/lib/dep-selector-libgecode/vendored-gecode/lib/libgecodeminimodel.32.dylib (compatibility version 32.0.0, current version 32.0.0)
/usr/local/var/rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/dep-selector-libgecode-1.0.0/lib/dep-selector-libgecode/vendored-gecode/lib/libgecodeint.32.dylib (compatibility version 32.0.0, current version 32.0.0)
/usr/local/var/rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/dep-selector-libgecode-1.0.0/lib/dep-selector-libgecode/vendored-gecode/lib/libgecodekernel.32.dylib (compatibility version 32.0.0, current version 32.0.0)
/usr/local/var/rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/dep-selector-libgecode-1.0.0/lib/dep-selector-libgecode/vendored-gecode/lib/libgecodesupport.32.dylib (compatibility version 32.0.0, current version 32.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0) |
Might be fixed by #26 |
Just as another data point, on a Fedora 20 box with gecode 4 system package installed I couldn't get dep-solver gem to correctly link until I removed the gecode package and It looks lie the the gecode 4 package provides |
I am also experiencing what appears to be this issue, but to no avail. When I try and run berks I get
Uninstall of the gecode doesn't do anything. When I reinstall the gem I get this
Hopefully this is relevant. |
All the stuff after |
@hntd187 I think your issue is different than this one. If you had this issue you'd be seeing |
@danielsdeleo Well you are correct, but also when I run something like kitchen list for chef test kitchen I get the symbol error that you are describing here. I'm just trying to add extra information to what you are talking about. |
Hi, any news about it ? |
The workaround listed at the top worked for me. |
Right ! sorry, I didn't see the workaround part but only the issue and the following posts .. ThanksCyril SCETBON On 05 May 2014, at 17:07, Peter Eisentraut [email protected] wrote:
|
you can lazy load the library with DL.dlopen instead of linking it at link-time: if you go down that route it has the advantage that when the dep-selector-libgecode gem is updated then it'll update the 'link' from dep-selector as well, rather than having dep-selector fixed to a version of libgecode at its install time. there's issues with windows begin stupid and needing a shim to be able to do lazy linking. latest ruby yanks DL.dlopen out of the standard library, however, and we have to use fiddle instead, and i haven't ported to that yet. |
I got the similar error here. and the workaround listed at the top doesn't work for me.
|
same problem here :( |
OSX
|
NOTE this is copied from chef/dep-selector-libgecode#10
What happened
brew install gecode
dep-selector-libgecode
1.0.0:gem install dep-selector-libgecode -v 1.0.0
berks
Workaround
gem uninstall dep-selector-libgecode dep_selector
brew uninstall gecode
dep-selector-libgecode
:gem install dep-selector-libgecode -v 1.0.0
Notes
I wonder if an
RPATH
isn't being set right or something.The text was updated successfully, but these errors were encountered: