Installing CPLEX 12.2 on Debian amd64 and MacOSX 10.6 (64-bit)

IBM now gives CPLEX to academics for free; as I am computing LP bounds for quantum codes, I got myself one. However, it refused to install on my amd64 Debian system, saying

"libgcc_s.so.1 must be installed for pthread_cancel to work".

After much googling, it turned out that the installer is a 32-bit program, that needs the right 32-bit libgcc_s.so to work.
To get this on Debian (squeeze), I just did
$ apt-get install ia32-libs
Then
$ LD_LIBRARY_PATH=/usr/lib32;
sh cplex_studio122.acad.linux-x86.bin

worked as it should.

The installation goes smoothly on a 64-bit MacOSX 10.6. But running is not: one has problems when doing

>>> import cplex
...
from cplex._internal.py1013_cplex122 import *
ImportError: dlopen(/Library/Python/2.6/site-packages/cplex/_internal/py1013_cplex122.so, 2): no suitable image found. Did find:
/Library/Python/2.6/site-packages/cplex/_internal/py1013_cplex122.so: mach-o, but wrong architecture

One can make it work on by setting
$ export VERSIONER_PYTHON_PREFER_32_BIT=yes
before starting the Python session (as IBM/CPLEX Support kindly told me; they promised a fix in an upgrade, too).

About these ads

Tags: ,

3 Responses to “Installing CPLEX 12.2 on Debian amd64 and MacOSX 10.6 (64-bit)”

  1. Installing CPLEX 12.2 on Debian amd64 | Debian-News.net - Your one stop for news about Debian Says:

    [...] IBM now gives CPLEX to academics for free; as I am computing LP bounds for quantum codes, I got myself one. However, it refused to install on my amd64 Debian system, saying “libgcc_s.so.1 must be installed for pthread_cancel to work”. More here [...]

  2. Ian Says:

    Thanks!!!

  3. Matthias Says:

    Thanks!

    On opensuse 11.4 (as root) “zypper install libgcc45-32bit” will do the trick.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: