Skip to content

Commit 4f52b2a

Browse files
committed
Update solver installation instructions
Move cplex (deprecated, legacy) to a separate file to not clutter our main docs.
1 parent 9937824 commit 4f52b2a

File tree

2 files changed

+116
-104
lines changed

2 files changed

+116
-104
lines changed

documentation/basics/installation.md

+11-104
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,17 @@ History of supported solver versions
108108
{:.table.table-striped}
109109
| ilastik version | GUROBI version | CPLEX version |
110110
|:----------------|:---------------|:--------------|
111-
| 1.4.1 (in beta) | 9.5.1 | not supported |
111+
| 1.4.1 | 12.0.0 | not supported |
112112
| 1.4.0 | 9.5.1 | not supported |
113113
| 1.3.3 | 8.1.1 | 1290 |
114114
| 1.3.2 | 8.0.1 | 1280 |
115115
| 1.3.0 | 7.5.2 | 1260 |
116116

117117
We'll go through the installation in the following sections.
118118

119+
For instructions on installing CPLEX in one of the old ilastik versions, please see [our legacy installation instructions][legacy installation].
120+
121+
[legacy installation]: {{site.baseurl}}/documentation/basics/installation_legacy_cplex#solver-setup
119122
[tracking with learning]: {{site.baseurl}}/documentation/tracking/tracking#sec_structured_learning
120123

121124
### GUROBI Installation and Setup
@@ -137,7 +140,7 @@ The following sections contain platform-specific instructions for GUROBI install
137140

138141
#### Installation on Windows {#gurobi-setup-windows}
139142

140-
Double click the `Gurobi-9.0.3-win64.msi` installer to go through the installation process.
143+
Double click the `Gurobi-12.0.0-win64.msi` installer to go through the installation process.
141144
Restart your computer to complete the installation.
142145
Once the installation is complete, you need to activate the license.
143146
You can review all your current licenses [here][gurobi-licenses].
@@ -161,11 +164,11 @@ With that you should be able to use the "Calculate Tracking Weights" functionali
161164
In case of problems, please take a look at the [GUROBI installation documentation][gurobi-install-win].
162165

163166
Note: Due to a bug in ilastik `1.3.3` the solver library is not recognized.
164-
If you absolutely have to use this version then a solution is to manually copy `C:\gurobi811\win64\bin\gurobi811.dll` to your ilastik installation folder, e.g. `C:\Program Files\ilastik-1.3.3post3\Library\bin`.
167+
If you absolutely have to use this version then a solution is to manually copy `C:\gurobi811\win64\bin\gurobi1200.dll` to your ilastik installation folder, e.g. `C:\Program Files\ilastik-1.4.1\Library\bin`.
165168

166169
#### Installation on MacOSX and Linux {#gurobi-setup-linux-mac}
167170

168-
On MacOSX you can start the installation process by clicking on the downloaded file `gurobi9.5.1_macos_universal2.pkg`.
171+
On MacOSX you can start the installation process by clicking on the downloaded file `gurobi12.0.0_macos_universal2.pkg`.
169172

170173
On linux you have to unpack the downloaded archive:
171174

@@ -189,10 +192,10 @@ For the activation you'll have to open a terminal and follow this sequence of co
189192

190193
```bash
191194
# Linux
192-
cd /your/target/directory/gurobi951/linux64/bin
195+
cd /your/target/directory/gurobi1200/linux64/bin
193196
# OSX
194197
# on OSX gurobi is installed to /Library/ per default.
195-
cd /Libary/gurobi951/macos_universal2/bin
198+
cd /Libary/gurobi1200/macos_universal2/bin
196199

197200
# use the obtained license key here
198201
./grbgetkey aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
@@ -217,9 +220,9 @@ chmod +x install-gurobi-symlinks.sh
217220

218221
# link the installed gurobi libraries to the ilastik installation
219222
# Linux
220-
bash install-gurobi-symlinks.sh /your/target/directoy/gurobi951/linux64 /path/to/ilastik-1.*-Linux
223+
bash install-gurobi-symlinks.sh /your/target/directoy/gurobi1200/linux64 /path/to/ilastik-1.*-Linux
221224
# Mac
222-
bash install-gurobi-symlinks.sh /your/target/directoy/gurobi951/macos_universal2/ /path/to/ilastik-1.*-OSX.app
225+
bash install-gurobi-symlinks.sh /your/target/directoy/gurobi1200/macos_universal2/ /path/to/ilastik-1.*-OSX.app
223226
```
224227

225228
After a successful installation, learning the weights in the *Tracking with Learning Workflow* will be enabled.
@@ -243,99 +246,3 @@ Should you run into any problems, please [contact us]({{site.baseurl}}/community
243246
[gurobi-install-win]: https://www.gurobi.com/documentation/9.0/quickstart_windows/software_installation_guid.html
244247
[gurobi-install-link-script]: https://raw.githubusercontent.com/ilastik/ilastik/main/scripts/install-gurobi-symlinks.sh
245248
[ilastik-download]: {{site.baseurl}}/download.html
246-
247-
--------
248-
249-
### CPLEX Installation and Setup
250-
251-
#### Application for Academic License at IBM
252-
253-
IBM CPLEX is a commercial solver which is free for academic use.
254-
Details on the application for an academic license, may be found on
255-
[the IBM Academic Initiative website](https://developer.ibm.com/academic/).
256-
Please note that it might take some days until the application gets approved by IBM.
257-
258-
#### Download IBM CPLEX
259-
260-
Once the license has been approved by IBM, instructions for download will be provided.
261-
262-
The current version of ilastik works with
263-
**IBM ILOG CPLEX Optimization Studio V12.9**.
264-
After choosing the appropriate platform, you have to agree with the IBM license.
265-
Finally, CPLEX may be downloaded and is ready to install.
266-
267-
**Important note: It is not sufficient to download the Trial version of CPLEX since its solver can only handle
268-
very small problem sizes. Please make sure, the correct version is downloaded as described here.**
269-
270-
The following sections contain platform-specific instructions for CPLEX installation on [Windows](#cplex-setup-windows) as well as on [Linux and Mac](#cplex-setup-linux-mac).
271-
272-
#### Setup on Windows {#cplex-setup-windows}
273-
274-
Run the installer by double clicking the executable that you've downloaded.
275-
276-
On Windows, there are typically no further modifications needed after installing CPLEX.
277-
After a successful installation, learning the weights in the *Tracking with Learning Workflow* will be enabled.
278-
If it isn't, something went wrong with the CPLEX installation.
279-
To track down the problem, proceed like this:
280-
281-
* Make sure that the environment variable `CPLEX_STUDIO_DIR129` is set and points to the proper location.
282-
You can check this by typing `echo %CPLEX_STUDIO_DIR129%` at the DOS command prompt.
283-
The output should be something like `C:\Program Files\IBM\ILOG\CPLEX_Studio129`.
284-
* Make sure that `cplex` is in the PATH.
285-
Type `where cplex` at a DOS prompt.
286-
It should produce something like `C:\Program Files\ibm\ILOG\CPLEX_Studio129\cplex\bin\x64_win64\cplex.exe` (the path prefix should match the contents of the `CPLEX_STUDIO_DIR129` variable).
287-
* Make sure that the directory containing `cplex.exe` also contains `cplex129.dll`, `ILOG.CPLEX.dll`, and `ILOG.Concert.dll`.
288-
289-
Learning the weights in the *Tracking with Learning Workflow* should now be enabled.
290-
If it isn't, you may copy the files `cplex129.dll`, `ILOG.CPLEX.dll`, and `ILOG.Concert.dll` (if you can locate them somewhere) to the *binary* folder of the ilastik installation, usually located at `C:\Program Files\ilastik\bin`.
291-
If it still doesn't work, please [contact us]({{site.baseurl}}/community.html).
292-
293-
294-
#### Setup on Linux and Mac {#cplex-setup-linux-mac}
295-
296-
On Linux and Mac, the CPLEX installer comes as a commandline executable (`cplex-someversion.sh` on Linux and `cplex-someversion.bin` on Mac).
297-
To install it, open a terminal and run `bash /path/to/your/cplex-someversion.sh` (or `bash /path/to/your/cplex-someversion.bin` on Mac).
298-
299-
**Hint:** on Mac and most Linux distributions you can drag and drop the installer file into the terminal to get the full path appended to your command line.
300-
301-
CPLEX packages for Linux and Mac do not provide shared versions of all required libraries, but only static variants.
302-
In order to enable CPLEX with ilastik, the static libraries have to be converted.
303-
Before you can convert your static CPLEX libraries into shared library versions, you need to have a compiler installed on your machine.
304-
You can check whether you already have a compiler installed by running the following command in a terminal (open the Terminal app!).
305-
306-
gcc --version
307-
308-
If no compiler is installed, choose what to do depending on your OS version:
309-
310-
- For Linux, use your OS package manager (e.g. `apt-get`) to install the `gcc` package.
311-
- For all OSX < 10.9, so up to Mountain Lion, you need to install XCode from the AppStore.
312-
Then you need to go to XCode's Preferences, to the Downloads tab, and install the command line tools.
313-
- For OSX 10.9 Mavericks it suffices to install the command line tools using the following command without installing XCode.
314-
315-
xcode-select --install
316-
317-
Then you need to accept the XCode licence by running "sudo gcc" once.
318-
319-
Now you can run a script, that will convert your CPLEX static libraries into shared libraries, and install them into the appropriate directory of your ilastik directory.
320-
Starting with ilastik-1.1.7, this script can be found in ilastik-1.\*.\*/ilastik-meta/ilastik/scripts.
321-
Prior to that version the [script](https://github.com/ilastik/ilastik/blob/master/scripts/install-cplex-shared-libs.sh) needs to be downloaded manually in the terminal:
322-
323-
wget https://raw.githubusercontent.com/ilastik/ilastik/master/scripts/install-cplex-shared-libs.sh
324-
325-
Navigate to the directory containing the script and execute it:
326-
327-
# navigate to the script location, e.g. /path/to/ilastik-1.*-Linux/ilastik-meta/ilastik/scripts
328-
cd /path/to/script
329-
# Linux:
330-
bash install-cplex-shared-libs.sh /path/to/your/cplex-root-dir /path/to/ilastik-1.*-Linux
331-
# Mac:
332-
bash install-cplex-shared-libs.sh /path/to/your/cplex-root-dir /path/to/ilastik-1.*-OSX.app
333-
334-
In the command above, `/path/to/your/cplex-root-dir` is the location of your cplex studio installation. It should contain directories named `concert` and `cplex`, among others.
335-
336-
**Note:** The above script installs CPLEX directly into your ilastik installation.
337-
Once you've done that, you should not distribute your copy of ilastik to others, unless you have a license to distribute CPLEX.
338-
339-
After a successful installation, learning the weights in the *Tracking with Learning Workflow* will be enabled.
340-
341-
----------
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
---
2+
title: Installation
3+
tagline:
4+
category: "Documentation"
5+
group: "basic-documentation-legacy"
6+
weight: 0
7+
---
8+
9+
# Legacy Installation Instructions
10+
11+
## Commercial Solver Installation {#solver-setup}
12+
13+
### CPLEX Installation and Setup
14+
15+
Applies to ilastik versions `1.3.0` (cplex 1260), `1.3.2` (cplex 1280), and `1.3.3` (cplex 1290),
16+
17+
#### Application for Academic License at IBM
18+
19+
IBM CPLEX is a commercial solver which is free for academic use.
20+
Details on the application for an academic license, may be found on
21+
[the IBM Academic Initiative website](https://developer.ibm.com/academic/).
22+
Please note that it might take some days until the application gets approved by IBM.
23+
24+
#### Download IBM CPLEX
25+
26+
Once the license has been approved by IBM, instructions for download will be provided.
27+
28+
The current version of ilastik works with
29+
**IBM ILOG CPLEX Optimization Studio V12.9**.
30+
After choosing the appropriate platform, you have to agree with the IBM license.
31+
Finally, CPLEX may be downloaded and is ready to install.
32+
33+
**Important note: It is not sufficient to download the Trial version of CPLEX since its solver can only handle
34+
very small problem sizes. Please make sure, the correct version is downloaded as described here.**
35+
36+
The following sections contain platform-specific instructions for CPLEX installation on [Windows](#cplex-setup-windows) as well as on [Linux and Mac](#cplex-setup-linux-mac).
37+
38+
#### Setup on Windows {#cplex-setup-windows}
39+
40+
Run the installer by double clicking the executable that you've downloaded.
41+
42+
On Windows, there are typically no further modifications needed after installing CPLEX.
43+
After a successful installation, learning the weights in the *Tracking with Learning Workflow* will be enabled.
44+
If it isn't, something went wrong with the CPLEX installation.
45+
To track down the problem, proceed like this:
46+
47+
* Make sure that the environment variable `CPLEX_STUDIO_DIR129` is set and points to the proper location.
48+
You can check this by typing `echo %CPLEX_STUDIO_DIR129%` at the DOS command prompt.
49+
The output should be something like `C:\Program Files\IBM\ILOG\CPLEX_Studio129`.
50+
* Make sure that `cplex` is in the PATH.
51+
Type `where cplex` at a DOS prompt.
52+
It should produce something like `C:\Program Files\ibm\ILOG\CPLEX_Studio129\cplex\bin\x64_win64\cplex.exe` (the path prefix should match the contents of the `CPLEX_STUDIO_DIR129` variable).
53+
* Make sure that the directory containing `cplex.exe` also contains `cplex129.dll`, `ILOG.CPLEX.dll`, and `ILOG.Concert.dll`.
54+
55+
Learning the weights in the *Tracking with Learning Workflow* should now be enabled.
56+
If it isn't, you may copy the files `cplex129.dll`, `ILOG.CPLEX.dll`, and `ILOG.Concert.dll` (if you can locate them somewhere) to the *binary* folder of the ilastik installation, usually located at `C:\Program Files\ilastik\bin`.
57+
If it still doesn't work, please [contact us]({{site.baseurl}}/community.html).
58+
59+
60+
#### Setup on Linux and Mac {#cplex-setup-linux-mac}
61+
62+
On Linux and Mac, the CPLEX installer comes as a commandline executable (`cplex-someversion.sh` on Linux and `cplex-someversion.bin` on Mac).
63+
To install it, open a terminal and run `bash /path/to/your/cplex-someversion.sh` (or `bash /path/to/your/cplex-someversion.bin` on Mac).
64+
65+
**Hint:** on Mac and most Linux distributions you can drag and drop the installer file into the terminal to get the full path appended to your command line.
66+
67+
CPLEX packages for Linux and Mac do not provide shared versions of all required libraries, but only static variants.
68+
In order to enable CPLEX with ilastik, the static libraries have to be converted.
69+
Before you can convert your static CPLEX libraries into shared library versions, you need to have a compiler installed on your machine.
70+
You can check whether you already have a compiler installed by running the following command in a terminal (open the Terminal app!).
71+
72+
gcc --version
73+
74+
If no compiler is installed, choose what to do depending on your OS version:
75+
76+
- For Linux, use your OS package manager (e.g. `apt-get`) to install the `gcc` package.
77+
- For all OSX < 10.9, so up to Mountain Lion, you need to install XCode from the AppStore.
78+
Then you need to go to XCode's Preferences, to the Downloads tab, and install the command line tools.
79+
- For OSX 10.9 Mavericks it suffices to install the command line tools using the following command without installing XCode.
80+
81+
xcode-select --install
82+
83+
Then you need to accept the XCode licence by running "sudo gcc" once.
84+
85+
Now you can run a script, that will convert your CPLEX static libraries into shared libraries, and install them into the appropriate directory of your ilastik directory.
86+
Starting with ilastik-1.1.7, this script can be found in ilastik-1.\*.\*/ilastik-meta/ilastik/scripts.
87+
Prior to that version the [script](https://github.com/ilastik/ilastik/blob/master/scripts/install-cplex-shared-libs.sh) needs to be downloaded manually in the terminal:
88+
89+
wget https://raw.githubusercontent.com/ilastik/ilastik/master/scripts/install-cplex-shared-libs.sh
90+
91+
Navigate to the directory containing the script and execute it:
92+
93+
# navigate to the script location, e.g. /path/to/ilastik-1.*-Linux/ilastik-meta/ilastik/scripts
94+
cd /path/to/script
95+
# Linux:
96+
bash install-cplex-shared-libs.sh /path/to/your/cplex-root-dir /path/to/ilastik-1.*-Linux
97+
# Mac:
98+
bash install-cplex-shared-libs.sh /path/to/your/cplex-root-dir /path/to/ilastik-1.*-OSX.app
99+
100+
In the command above, `/path/to/your/cplex-root-dir` is the location of your cplex studio installation. It should contain directories named `concert` and `cplex`, among others.
101+
102+
**Note:** The above script installs CPLEX directly into your ilastik installation.
103+
Once you've done that, you should not distribute your copy of ilastik to others, unless you have a license to distribute CPLEX.
104+
105+
After a successful installation, learning the weights in the *Tracking with Learning Workflow* will be enabled.

0 commit comments

Comments
 (0)