Difference between revisions of "Sig Numerical Optimization / DAKOTA installation issues"

From OpenFOAMWiki
(DAKOTA installation issues)
(DAKOTA installation issues)
Line 4: Line 4:
  
 
* Installing DAKOTA 6.0 in OpenSUSE 12.3
 
* Installing DAKOTA 6.0 in OpenSUSE 12.3
**Instructions soon
+
 
 +
To install DAKOTA in any directory of your preference, follow these steps:
 +
 
 +
1) Create the installation directory ($DAKOTA_INS), and copy DAKOTA source code on it
 +
 
 +
2) tar -xzf dakota-6.0.0-public-src.tar.gz
 +
 
 +
3) mkdir dakota-6.0.0
 +
 
 +
4) cd dakota-6.0.0
 +
 
 +
5) cp $DAKOTA_INS/dakota-6.0.0.src/cmake/BuildDakotaTemplate.cmake $DAKOTA_INS/dakota-6.0.0.src/cmake/BuildDakotaCustom.cmake
 +
 
 +
6) ccmake -C $DAKOTA_INS/dakota-6.0.0.src/cmake/BuildDakotaCustom.cmake $DAKOTA_INS/dakota-6.0.0.src -DCMAKE_INSTALL_PREFIX=$DAKOTA_INS/dakota-6.0.0
 +
 
 +
 
 +
**ccmake is the CMake curses interface. Project configuration settings may be specified interactively through this GUI.mCMake is a cross-platform build system generator. 
 +
 
 +
**As soon as you enter in ccmake, press first the key "c" to configure the script. After configuring all scripts you can start the installation. 
 +
**Press the key "t" to get the advanced options. Then turn off the flag BUILD_SHARED_LIBS.
 +
**We do this because there is a conflict in some libraries between openfoam and dakota (libsampling.so). 
 +
So we compile dakota as static library. 
 +
By the way you can configure the compilation here, so feel free to take a look at the output.
 +
Personally speaking I only need to do this change and maybe enable MPI.
 +
 
 +
make -j8
 +
 
 +
make install
 +
 
 +
 +
 
 +
***When you finish the compilation add the path to the .bashrc file.
 +
***In my case
 +
export PATH=$PATH:/home/joegi/dakota/dakota-6.0.0/bin:/home/joegi/dakota/dakota-6.0.0/test
 +
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/joegi/dakota/dakota-6.0.0/bin:/home/joegi/dakota/dakota-6.0.0/lib

Revision as of 14:21, 21 September 2014

DAKOTA installation issues

How to install DAKOTA in different Linux distributions:

  • Installing DAKOTA 6.0 in OpenSUSE 12.3

To install DAKOTA in any directory of your preference, follow these steps:

1) Create the installation directory ($DAKOTA_INS), and copy DAKOTA source code on it

2) tar -xzf dakota-6.0.0-public-src.tar.gz

3) mkdir dakota-6.0.0

4) cd dakota-6.0.0

5) cp $DAKOTA_INS/dakota-6.0.0.src/cmake/BuildDakotaTemplate.cmake $DAKOTA_INS/dakota-6.0.0.src/cmake/BuildDakotaCustom.cmake

6) ccmake -C $DAKOTA_INS/dakota-6.0.0.src/cmake/BuildDakotaCustom.cmake $DAKOTA_INS/dakota-6.0.0.src -DCMAKE_INSTALL_PREFIX=$DAKOTA_INS/dakota-6.0.0


    • ccmake is the CMake curses interface. Project configuration settings may be specified interactively through this GUI.mCMake is a cross-platform build system generator.
    • As soon as you enter in ccmake, press first the key "c" to configure the script. After configuring all scripts you can start the installation.
    • Press the key "t" to get the advanced options. Then turn off the flag BUILD_SHARED_LIBS.
    • We do this because there is a conflict in some libraries between openfoam and dakota (libsampling.so).

So we compile dakota as static library. By the way you can configure the compilation here, so feel free to take a look at the output. Personally speaking I only need to do this change and maybe enable MPI.

make -j8

make install


      • When you finish the compilation add the path to the .bashrc file.
      • In my case

export PATH=$PATH:/home/joegi/dakota/dakota-6.0.0/bin:/home/joegi/dakota/dakota-6.0.0/test export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/joegi/dakota/dakota-6.0.0/bin:/home/joegi/dakota/dakota-6.0.0/lib