French Forest Sector Model (FFSM++)Laboratoire d'Economie Forestière - LEF - Nancy, France
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:dev:development [2024/04/30 07:14] – [Ipopt] removed direct link to our server HSL libraries Antonello Lobianco | en:dev:development [2026/09/09 08:42] (current) – [Getting the source code] Antonello Lobianco | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| The following packages and their prerequisites should be installed: | The following packages and their prerequisites should be installed: | ||
| <code bash> | <code bash> | ||
| - | sudo apt-get install build-essential gfortran gcc g++ gcc-12 | + | sudo apt-get install build-essential gfortran gcc g++ |
| - | sudo apt-get install libtool git patch wget pkg-config | + | sudo apt-get install libtool |
| - | sudo apt-get install zlib1g-dev libboost-all-dev | + | sudo apt-get install zlib1g-dev libboost-all-dev |
| sudo apt-get install qtbase5-dev qtbase5-dev-tools qtchooser qt5-qmake qtcreator | sudo apt-get install qtbase5-dev qtbase5-dev-tools qtchooser qt5-qmake qtcreator | ||
| </ | </ | ||
| Line 41: | Line 41: | ||
| mkdir Ipopt | mkdir Ipopt | ||
| cd Ipopt | cd Ipopt | ||
| - | wget https:// | + | wget https:// |
| - | tar -xzf 3.14.16.tar.gz | + | tar -xzf 3.14.20.tar.gz |
| cd ~/ | cd ~/ | ||
| Line 48: | Line 48: | ||
| cd ThirdParty-ASL | cd ThirdParty-ASL | ||
| ./get.ASL | ./get.ASL | ||
| - | ./configure | + | ./ |
| make | make | ||
| sudo make install | sudo make install | ||
| Line 54: | Line 54: | ||
| git clone https:// | git clone https:// | ||
| cd ThirdParty-HSL | cd ThirdParty-HSL | ||
| - | [extract the HSL archive as `~/programs/Ipopt/ThirdParty/HSL/coinhsl`] | + | mkdir coinhsl |
| - | ./configure | + | wget https://nc.beta-lorraine.fr/s/w5M9ESpFWafK5H7/download -O coinhsl/ |
| + | unzip coinhsl/ | ||
| + | ./ | ||
| make | make | ||
| sudo make install | sudo make install | ||
| - | cd ../ | + | cd ../ |
| mkdir build | mkdir build | ||
| cd build | cd build | ||
| Line 65: | Line 67: | ||
| sudo make install | sudo make install | ||
| cd ../../.. | cd ../../.. | ||
| - | make | ||
| - | sudo make install | ||
| </ | </ | ||
| Line 73: | Line 73: | ||
| * Needed ColPack >= 1.0.8 | * Needed ColPack >= 1.0.8 | ||
| * Type:< | * Type:< | ||
| - | sudo apt-get install libtool | + | git clone https:// |
| - | git clone https:// | + | cd ColPack/ |
| - | cd ColPack | + | autoreconf -vif |
| - | git checkout 10b780b52a25c6ccef3d2abc12055ee85b7e8667 # checkout a version know to works | + | mkdir mybuilds |
| - | autoreconf -vif | + | cd mybuilds |
| - | ./configure --prefix=/ | + | ../configure --prefix=/ |
| - | make | + | make -j 8 |
| sudo make install | sudo make install | ||
| + | cd ../../../.. | ||
| </ | </ | ||
| + | |||
| ==== ADOL-C ==== | ==== ADOL-C ==== | ||
| - | * Download ADOL-C (ADOL-C-2.X.X.tgz) from http:// | ||
| * Type:< | * Type:< | ||
| - | ./configure --enable-docexa --enable-addexa --enable-sparse --prefix=/ | + | mkdir ADOL-C |
| + | cd ADOL-C | ||
| + | wget https:// | ||
| + | unzip ADOL-C-2.7.2.zip | ||
| + | cd ADOL-C-2.7.2/ | ||
| + | ./ | ||
| make | make | ||
| sudo make install | sudo make install | ||
| </ | </ | ||
| + | |||
| + | ==== Symlinks ==== | ||
| * On 64 bits Linux, symlink all libadoc.* libraries from /usr/lib64 to / | * On 64 bits Linux, symlink all libadoc.* libraries from /usr/lib64 to / | ||
| Line 98: | Line 106: | ||
| sudo ln -s ../ | sudo ln -s ../ | ||
| sudo ln -s ../ | sudo ln -s ../ | ||
| - | sudo ln -s ../ | + | sudo ln -s ../ |
| </ | </ | ||
| + | * Make a symlink in the include system directory to the new name of coin (coin-or):< | ||
| + | cd / | ||
| + | sudo ln -s coin-or coin | ||
| + | </ | ||
| + | |||
| + | ==== Libtool ==== | ||
| + | (may not be necessary) | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| ===== Windows (XP or 7) ===== | ===== Windows (XP or 7) ===== | ||
| Line 226: | Line 244: | ||
| * [[en: | * [[en: | ||
| * Type:< | * Type:< | ||
| - | git clone https://github.com/LEFNancy/ | + | git@github.com:LEFNancy/ |
| </ | </ | ||
| - | //Note: Git repository is currently | + | //Note: Git repository is set private |
| + | You need to have updated your public key to github in order for the command above to work | ||
| + | // | ||
| ====== Developing FFSM ====== | ====== Developing FFSM ====== | ||