38,789
edits
No edit summary |
(Updating to match new version of source page) |
||
Line 16: | Line 16: | ||
{{Command|mkdir -p $HOME/modulefiles/mycplex}} | {{Command|mkdir -p $HOME/modulefiles/mycplex}} | ||
<div class="mw-translate-fuzzy"> | |||
In this directory, you should create a file (e.g. <tt>$HOME/modulefiles/mycplex/12.8.0</tt>) with the version number corresponding to the version you downloaded (e.g. 12.8.0) and with the following content: | In this directory, you should create a file (e.g. <tt>$HOME/modulefiles/mycplex/12.8.0</tt>) with the version number corresponding to the version you downloaded (e.g. 12.8.0) and with the following content: | ||
{{File | {{File | ||
|name=cplex_module.sh | |||
|lang="sh" | |||
|contents= | |||
</div> | |||
{{Fichier | |||
|name=cplex_module.sh | |name=cplex_module.sh | ||
|lang="sh" | |lang="sh" | ||
|contents= | |contents= | ||
<!--T:9--> | |||
#%Module1.0#### | #%Module1.0#### | ||
## | ## | ||
Line 29: | Line 36: | ||
global cplexversion | global cplexversion | ||
puts stderr "\tIBM ILOG cplex " | <!--T:10--> | ||
puts stderr "\tIBM ILOG cplex " | |||
puts stderr "\tThis module provides configuration for cplex, concert, cpoptimizer and opl" | puts stderr "\tThis module provides configuration for cplex, concert, cpoptimizer and opl" | ||
} | |||
< | <!--T:11--> | ||
module-whatis "IBM ILOG cplex (cplex, concert, cpoptimizer, opl). This version doesn't ask for a licence file." | module-whatis "IBM ILOG cplex (cplex, concert, cpoptimizer, opl). This version doesn't ask for a licence file." | ||
<!--T:12--> | |||
# for Tcl script use only | # for Tcl script use only | ||
set cplexversion XYZ | set cplexversion XYZ | ||
Line 46: | Line 54: | ||
<!--T:13--> | |||
set cplexbin x86-64_linux | set cplexbin x86-64_linux | ||
set cplexlib $cplexbin/static_pic | set cplexlib $cplexbin/static_pic | ||
Line 56: | Line 65: | ||
<!--T:14--> | |||
prepend-path PATH $cplexroot/bin/$cplexbin | prepend-path PATH $cplexroot/bin/$cplexbin | ||
prepend-path PATH $oplroot/bin/$oplbin | prepend-path PATH $oplroot/bin/$oplbin | ||
prepend-path PATH $cpoptimizerroot/bin/$cpoptimizerbin | prepend-path PATH $cpoptimizerroot/bin/$cpoptimizerbin | ||
<!--T:15--> | |||
prepend-path CPATH $cplexroot/include | prepend-path CPATH $cplexroot/include | ||
prepend-path CPATH $concertroot/include | prepend-path CPATH $concertroot/include | ||
Line 65: | Line 76: | ||
prepend-path CPATH $cpoptimizerroot/include | prepend-path CPATH $cpoptimizerroot/include | ||
<!--T:16--> | |||
prepend-path -d " " CPATH_EXPANDED -I$cplexroot/include | prepend-path -d " " CPATH_EXPANDED -I$cplexroot/include | ||
prepend-path -d " " CPATH_EXPANDED -I$concertroot/include | prepend-path -d " " CPATH_EXPANDED -I$concertroot/include | ||
Line 70: | Line 82: | ||
prepend-path -d " " CPATH_EXPANDED -I$cpoptimizerroot/include | prepend-path -d " " CPATH_EXPANDED -I$cpoptimizerroot/include | ||
<!--T:17--> | |||
prepend-path LIBRARY_PATH $cplexroot/lib/$cplexlib | prepend-path LIBRARY_PATH $cplexroot/lib/$cplexlib | ||
prepend-path LIBRARY_PATH $concertroot/lib/$concertlib | prepend-path LIBRARY_PATH $concertroot/lib/$concertlib | ||
Line 76: | Line 89: | ||
prepend-path LIBRARY_PATH $cpoptimizerroot/lib/$cpoptimizerlib | prepend-path LIBRARY_PATH $cpoptimizerroot/lib/$cpoptimizerlib | ||
<!--T:18--> | |||
prepend-path -d " " LIBRARY_PATH_EXPANDED -L$cplexroot/lib/$cplexlib | prepend-path -d " " LIBRARY_PATH_EXPANDED -L$cplexroot/lib/$cplexlib | ||
prepend-path -d " " LIBRARY_PATH_EXPANDED -L$concertroot/lib/$concertlib | prepend-path -d " " LIBRARY_PATH_EXPANDED -L$concertroot/lib/$concertlib | ||
Line 82: | Line 96: | ||
prepend-path -d " " LIBRARY_PATH_EXPANDED -L$cpoptimizerroot/lib/$cpoptimizerlib | prepend-path -d " " LIBRARY_PATH_EXPANDED -L$cpoptimizerroot/lib/$cpoptimizerlib | ||
<!--T:19--> | |||
prepend-path LD_LIBRARY_PATH $cplexroot/bin/$cplexbin | prepend-path LD_LIBRARY_PATH $cplexroot/bin/$cplexbin | ||
prepend-path LD_LIBRARY_PATH $oplroot/bin/$oplbin | prepend-path LD_LIBRARY_PATH $oplroot/bin/$oplbin | ||
<!--T:20--> | |||
prepend-path CLASSPATH $cplexroot/lib/cplex.jar | prepend-path CLASSPATH $cplexroot/lib/cplex.jar | ||
prepend-path MATLABPATH $cplexroot/matlab | prepend-path MATLABPATH $cplexroot/matlab | ||
<!--T:21--> | |||
}} | }} | ||
Ajustez les lignes qui correspondent aux variables <tt>cplexversion</tt> et <tt>studio_root</tt> afin qu'elles aient les bonnes valeurs : la version téléchargée et du chemin d'accès pour ce logiciel (c'est-à-dire le chemin que vous avez spécifié lors de l'extraction de l'archive). | |||
==Java== | ==Java== |