Skip to content
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

Installation Notes #22

Closed
ankane opened this issue Jul 25, 2020 · 5 comments
Closed

Installation Notes #22

ankane opened this issue Jul 25, 2020 · 5 comments

Comments

@ankane
Copy link

ankane commented Jul 25, 2020

Hey @gverger, thanks for this great library! I wanted to share some notes about installation that can hopefully be incorporated into the readme.

I think this line is outdated with the release of cbc-wrapper 2.9.9.4.

The gem includes a version of the Coin-Or Cbc library. If the system on which it is installed is not Linux 64bits, it downloads the library sources and recompiles them at installation.

On Ubuntu, users need to do:

sudo apt install coinor-libcbc-dev

On Heroku, I was able to get it working with the Apt buildpack with an Aptfile of:

coinor-libcbc-dev

And setting LD_LIBRARY_PATH so it can find LAPACK and BLAS.

heroku config:set LD_LIBRARY_PATH=/app/.apt/usr/lib/x86_64-linux-gnu/lapack:/app/.apt/usr/lib/x86_64-linux-gnu/blas 

The last part is needed due to this issue, or it'll fail at runtime with liblapack.so.3: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.6.0/gems/cbc-wrapper-2.9.9.4/ext/cbc-wrapper/cbc_wrapper.so.

I also tried an older cbc-wrapper on Heroku without the Apt buildpack (gem "cbc-wrapper", "2.9.9.3"), and it installs, but fails at runtime with libCgl.so.1: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.6.0/gems/cbc-wrapper-2.9.9.3/ext/cbc-wrapper/cbc_wrapper.so (LoadError).

Hopefully this is helpful to other users.

@gverger
Copy link
Owner

gverger commented Jul 25, 2020

Hello @ankane, thank you for the feedback, it seems very useful indeed :)

Do you want to open a PR with the change to the readme? I can do it myself too, no problem

@ankane
Copy link
Author

ankane commented Jul 26, 2020

Thanks @gverger, will defer to you to incorporate in whichever way you think is best.

@ankane
Copy link
Author

ankane commented Aug 13, 2020

Quick follow up: Mac users can now install CBC with brew install cbc (and the gem picks it up).

gverger added a commit that referenced this issue Sep 11, 2020
Update the readme according to issue #22

Making sure we can use ruby-cbc on different linux distributions with
docker tests.
gverger added a commit that referenced this issue Sep 11, 2020
Update the readme according to issue #22

Making sure we can use ruby-cbc on different linux distributions with
docker tests.
gverger added a commit that referenced this issue Sep 11, 2020
Update the readme according to issue #22

Making sure we can use ruby-cbc on different linux distributions with
docker tests.
@gverger
Copy link
Owner

gverger commented Sep 11, 2020

Thanks @ankane I've updated the readme. Your feedback was precious

@gverger gverger closed this as completed Sep 11, 2020
@ankane
Copy link
Author

ankane commented Sep 11, 2020

Thanks @gverger, looks great. Love how easy the gem is to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants