jump-dev / CPLEX.jl

A Julia interface to the CPLEX solver
https://www.ibm.com/products/ilog-cplex-optimization-studio
MIT License
134 stars 63 forks source link

Installation problems with Apple M1 and CPLEX 22.1.1 #439

Closed ZacharieALES closed 9 months ago

ZacharieALES commented 10 months ago

I have two students with an Apple M1 who are not able to build the package. They are using CPLEX 22.1.1 which is supposed to be compatible with M1.

Here is the results of commands versioninfo() and Pkg.status("CPLEX") for both of them:

> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 1 on 4 virtual cores

> Pkg.status("CPLEX")
Status `~/.julia/environments/v1.9/Project.toml`
  [a076750e] CPLEX v1.0.1

The folder indicated in variable ENV["CPLEX_STUDIO_BINARIES"] contains the following files:

They installed CPLEX version 12.10 first but I checked that ENV["CPLEX_STUDIO_BINARIES"] points toward the folder of version 22.1.1.

Any idea what could be wrong?

odow commented 10 months ago

Did they download and install the M1 version of CPLEX? What is the full output of import Pkg; Pkg.build("CPLEX")?

ZacharieALES commented 9 months ago

It worked with the arm version. Sorry about that, they told me they already tried before I made the issue...

ZacharieALES commented 9 months ago

Closing