Difference between revisions of "Installation/Dakota/Pre-built Binary Installation"

From OpenFOAMWiki
(Kicked off this page with adapted instructions from OFW11 USB stick creation guide)
 
(Dakota 6.3: added Note)
Line 18: Line 18:
  
 
''Side note'': These instructions have been adapted from the ones used for [[Installation/Live_Images/USB-Stick_for_OFW11/Creation_Guide#Dakota_6.3|creating the OFW11 USB stick, as instructed here]].
 
''Side note'': These instructions have been adapted from the ones used for [[Installation/Live_Images/USB-Stick_for_OFW11/Creation_Guide#Dakota_6.3|creating the OFW11 USB stick, as instructed here]].
 +
 +
;Note: These instructions have been tested on Ubuntu 16.04, but should work on any Linux Distribution.
  
 
Installation steps:
 
Installation steps:
Line 33: Line 35:
 
</li>
 
</li>
 
<li>Then add the alias {{tt|dakota630}} to the personal {{tt|.bashrc}} with the following command:
 
<li>Then add the alias {{tt|dakota630}} to the personal {{tt|.bashrc}} with the following command:
<bash>echo 'alias dakota630="$HOME/OpenFOAM/dakota-6.3.0/bashrc"' >> ~/.bashrc</bash>
+
<bash>echo 'alias dakota630="source $HOME/OpenFOAM/dakota-6.3.0/bashrc"' >> ~/.bashrc</bash>
 
</li>
 
</li>
 
</ol>
 
</ol>

Revision as of 22:56, 25 March 2017

1 Introduction

This page is dedicated to explaining how to install the pre-built binary packages that area available for Dakota to be used on Linux Distributions. This means that it's not necessary to build from source code, but it only provides the pre-built features that the Dakota packagers provided.

If you do not yet feel comfortable using Linux, then perhaps you better first read the page Working with the Shell and train a bit with the shell/terminal environments, so you can have a better perception of the steps shown below.


2 Copy-Paste steps

A few notes before you start copy-pasting:

  1. Lines that start with # don't have to be copy-pasted. They are just comments to let you know what's going on.
  2. One wrong character is enough for breaking this guide, so make sure you can read the characters properly or that the installed language system does not break the copied characters!


2.1 Dakota 6.3

Side note: These instructions have been adapted from the ones used for creating the OFW11 USB stick, as instructed here.

Note
These instructions have been tested on Ubuntu 16.04, but should work on any Linux Distribution.

Installation steps:

  1. Download Dakota 6.3 from here: Dakota Downloads page
  2. Unpack it within the folder ~/OpenFOAM, e.g.:
    cd ~/OpenFOAM
    tar -xf ~/Downloads/dakota-6.3-public-Linux.x86_64.tar.gz
  3. Rename the unpacked folder to dakota-6.3.0:
    mv dakota-6.3.0.Linux.x86_64 dakota-6.3.0
  4. The shell environment script code for loading this Dakota version can be placed inside the script dakota-6.3.0/bashrc with the following commands:
    echo 'DAKOTA_INSTALL=$HOME/OpenFOAM/dakota-6.3.0' > dakota-6.3.0/bashrc
    echo 'export PATH=$PATH:$DAKOTA_INSTALL/bin:$DAKOTA_INSTALL/test' >> dakota-6.3.0/bashrc
    echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DAKOTA_INSTALL/lib:$DAKOTA_INSTALL/bin' >> dakota-6.3.0/bashrc
  5. Then add the alias dakota630 to the personal .bashrc with the following command:
    echo 'alias dakota630="source $HOME/OpenFOAM/dakota-6.3.0/bashrc"' >> ~/.bashrc