Package Details: cplex 20.10-2

Git Clone URL: https://aur.archlinux.org/cplex.git (read-only, click to copy)
Package Base: cplex
Description: A commercial solver for mathematical optimization problems.
Upstream URL: https://www.ibm.com/software/products/de/ibmilogcpleoptistud
Licenses: custom
Submitter: Viech
Maintainer: None
Last Packager: Viech
Votes: 3
Popularity: 0.000000
First Submitted: 2017-10-24 11:46 (UTC)
Last Updated: 2022-01-06 15:33 (UTC)

Dependencies (3)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

Viech commented on 2020-01-28 13:58 (UTC)

That should be easy: Just remove makedepends, optdepends, _pythonver and the "Install Python bindings." section.

fifr commented on 2020-01-28 13:56 (UTC)

@Viech: actually, I'm one of those who prefer to not install any python bindings at all ... is this easily possible with the current package?

Or maybe there should be two packages?

Viech commented on 2020-01-28 13:49 (UTC)

I tried myself to get it to work with Python 3.8 by patching the setup scripts, but CPLEX strongly refuses to run with it. If you urge me to I can implement @fifr's solution but I'm not sure if this is what many users want; some of you might prefer to not install any Python bindings at all instead. And maybe 12.11 shows up soon…

fifr commented on 2020-01-28 09:44 (UTC)

@alberto-santini: thanks. I modified the pkgbuild as follows and it seems to work (at least the package has been installed):

  • replaced dependencies python>=3.7 and python<3.8 by 'python37' (which is currently an aur package)
  • replaced the calls to 'python' and 'python3' by 'python3.7' everywhere

I have no idea if this has side effects, though.

alberto-santini commented on 2020-01-28 09:33 (UTC)

@fifr: As far as I remember, CPLEX 12.10 will refuse to work with python 3.8 and wants python 3.7. If your core's python is 3.8, no matter if you install 3.7, I think this still violates "python<3.8".

Maybe we could change the depends to "python<=3.7" only? But I am afraid there is no way to tell the cplex installer to use 3.7 and not the default on your system (3.8) so installation would still fail.

Could you try to change the pkgbuild to this end, and see if you manage to install and use cplex with a double 3.7/3.8 python install?

fifr commented on 2020-01-28 08:55 (UTC)

This is probably a dump question but ... when installing the package it complains about "python<3.8" required. I assume that means that Python 3.7 or so is needed.

The "python" package shipped from the core is 3.8, so I installed the "python37" aur package, but that seems to be insufficient.

So what is the preferred way to solve this problem?

Thanks in advance.

Viech commented on 2018-09-28 18:10 (UTC)

I can look into adding OPLIDE with the next CPLEX release where I have to make PKGBUILD changes anyway (as I'm expecting Python 3.7 support with that). While your approach does reliably install everyting, I'd rather not use /opt with this package.

gamezelda commented on 2018-09-27 23:12 (UTC) (edited on 2018-09-28 09:15 (UTC) by gamezelda)

After installing this package, I noticed that it does a "reduced" install, e.g. it does not install OPLIDE which is what I am interested in.

I decided to try to go for a more as-is install and changed all the copy commands in package() to:

mkdir -p "$pkgdir/opt/ibm/ILOG/CPLEX"
cp -R "." "$pkgdir/opt/ibm/ILOG/CPLEX/"

Except a few warnings, so far it seems to work, e.g. OPLIDE launches. I haven't had a chance to play too much with it yet, I will update if I have some improvement.

EDIT: If anyone is interested, this is the PKGBUILD I ended up using in the end to to get an unmodified, no warnings, install: https://pastebin.com/LsfDgsSp

EDIT: With /usr/bin shortcuts for some tools to avoid having to type: https://pastebin.com/TTffpjxK

Viech commented on 2018-08-27 16:16 (UTC)

Hello Luiz0tavio, the cplex installer .bin file is not available for download without logging in on the IBM website. As the PKGBUILD says: "You need to manually download the IBM ILOG CPLEX Optimization Studio installer and place it into the same directory as this PKGBUILD, before you proceed."

Luiz0tavio commented on 2018-08-27 15:29 (UTC)

Ran into a problem trying to

$ makepkg -sri

Error: -> Downloading cplex_studio128.linux-x86-64.bin... curl: (3) Invalid file://hostname/, expected localhost or 127.0.0.1 or none ==> ERROR: Failure while downloading file://cplex_studio128.linux-x86-64.bin Aborting...

$ uname -r 4.18.4-arch1-1-ARCH