ankane / or-tools-ruby

Operations research tools for Ruby
Apache License 2.0
174 stars 24 forks source link

Using manylinux version for Apple Silicon #54

Closed trumbitta closed 10 months ago

trumbitta commented 10 months ago

Hey, about https://github.com/ankane/or-tools-ruby/issues/25#issuecomment-982355041 (i.e. adding a package once it's available)

I'm having issues getting the gem to install in docker (Debian Bullseye) on a MacBook M1 Max.

Someone from the ortools repo suggested using the manylinux package

Edit: what I mean is for you to make the gem to automatically use the manylinux package on arm64

Wdyt? Good idea? Did I misunderstand their answer?

ankane commented 10 months ago

Hi @trumbitta, OR-Tools doesn't provide a binary distribution of the C++ library for ARM for Debian Bullseye, so you'll need to build the OR-Tools C++ library from source and set:

bundle config build.or-tools --with-or-tools-dir=/path/to/or-tools

before installing the gem.

trumbitta commented 10 months ago

Thank you, I asked for the binary distribution https://github.com/google/or-tools/issues/4007#issuecomment-1835740767

trumbitta commented 10 months ago

@ankane things are in motion 🤞 https://github.com/google/or-tools/issues/4007#issuecomment-1836093254

trumbitta commented 10 months ago

@ankane here's the package 🙇 https://github.com/google/or-tools/issues/4007#issuecomment-1838033118

trumbitta commented 10 months ago

This one, specifically https://github.com/google/or-tools/releases/download/v9.8/or-tools_arm64_debian-11_cpp_v9.8.3296.tar.gz

ankane commented 10 months ago

Great, just pushed a new release with it.

trumbitta commented 10 months ago

Works like a charm 👍

tdegrunt commented 1 month ago

@trumbitta I'm basically running into the same thing. Were you using Docker Desktop? With me I'm getting: Binary installation not available for this platform: debian 12 aarch64 (RuntimeError) i.e. aarch64 - not amd64.

Did you specify arm64 like so? https://github.com/ankane/or-tools-ruby/issues/65#issuecomment-2325744650