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

CPLEX does not work with version 22.1.1 #426

Closed
RaimundK2 opened this issue Mar 20, 2023 · 14 comments
Closed

CPLEX does not work with version 22.1.1 #426

RaimundK2 opened this issue Mar 20, 2023 · 14 comments

Comments

@RaimundK2
Copy link

After installing and calling using CPLEX, I get

ERROR: LoadError: You have installed version 22.1.1 of CPLEX, which is not supported
by CPLEX.jl. We require CPLEX version 12.10 or 20.1.

After installing CPLEX, run:

import Pkg
Pkg.rm("CPLEX")
Pkg.add("CPLEX")

etc ...

Interestingly CPLEX.jl worked without problems with the same CPLEX version until two days ago.

@odow
Copy link
Member

odow commented Mar 20, 2023

You need CPLEX.jl v0.9.6 or v0.9.7 to use CPLEX 22.1.1.

Check import Pkg; Pkg.status().

@RaimundK2
Copy link
Author

RaimundK2 commented Mar 21, 2023 via email

@odow
Copy link
Member

odow commented Mar 21, 2023

Yes, another package is likely holding you back. You can see which if you run import Pkg; Pkg.pkg"add [email protected]"..

@odow
Copy link
Member

odow commented Mar 28, 2023

Any update on this?

@odow
Copy link
Member

odow commented Apr 5, 2023

Closing as stale. The latest version of CPLEX.jl does with 22.1.1, so anyone experiencing this in future should update their packages.

@odow odow closed this as completed Apr 5, 2023
@harshangrjn
Copy link

@odow I still get this issue on Mac M2 with CPLEX 22.1 and CPLEX.jl v1.0.2. I have the ENV["CPLEX_STUDIO_BINARIES"] set up correctly. But build CPLEX keeps giving this error and doesn't build:

ERROR: Error building `CPLEX`: 
You should set the `CPLEX_STUDIO_BINARIES` environment variable 

Is there something I am missing?

@odow
Copy link
Member

odow commented Dec 6, 2023

What is ENV["CPLEX_STUDIO_BINARIES"]? Did you install the aarch64 build of CPLEX?

@harshangrjn
Copy link

ENV["CPLEX_STUDIO_BINARIES"] = "/Applications/CPLEX_Studio221/cplex/bin/x86-64_osx/"

Not sure of aarch64 build. Installed the version from the IBM website for Mac OS and didn't throw any error during installation.

@odow
Copy link
Member

odow commented Dec 6, 2023

This looks like you installed the intel version: x86-64

@harshangrjn
Copy link

I see! Let me try the ARM version.

@odow
Copy link
Member

odow commented Dec 6, 2023

It wouldn't error on install because Apple has a compatibility layer called Rosetta. But you need to make sure that the build of CPLEX is the same as the build of Julia. So both x86 or both aarch64. If you have a mis-match they can't find each other.

@harshangrjn
Copy link

Which version of CPLEX.jl is compatible with x86? ARM build installation is crashing for some reason on M2.

@odow
Copy link
Member

odow commented Dec 6, 2023

Which version of CPLEX.jl is compatible with x86?

You have two options for downloading Julia: https://julialang.org/downloads/

image

  • If you install macOS x86, then you must also install the x86 version of CPLEX
  • If you install macOS (Apple silicon), then you must also install the arm/aarch64/silicon version of CPLEX

You don't need a specific version of CPLEX.jl

ARM build installation is crashing for some reason on M2

What's the error? And what is the filename that you tried to install?

@harshangrjn
Copy link

Great - that works! I had installed the Apple Silicon version of Julia, but the CPLEX-ARM installation crashes without giving any specific error. But Julia-rosetta + CPLEX-22.1-rosetta with recent CPLEX.jl all work fine.

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

No branches or pull requests

3 participants