CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[Other] Dakota 6.4 installation on ubuntu 16.04

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes
  • 6 Post By chienfm
  • 1 Post By hiuluom
  • 2 Post By randolph
  • 2 Post By najimaddin96

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2016, 03:13
Default Dakota 6.4 installation on ubuntu 16.04
  #1
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 21
Bloerb will become famous soon enough
I have just updated my system and freshly installed a clean ubuntu 16.04. I can't manage to install dakota. A few years ago i was able to compile dakota v5 with the hints on the openfoam wiki. Is there still a problem with shared libaries?
The pre-compiled versions of v6 do not work and I am not advanced enough to build it from source myself. Could someone give me some hints on how to do this? Any help would be greatly appreciated, since dakota will really help me in the long run.
Bloerb is offline   Reply With Quote

Old   August 2, 2016, 09:21
Default
  #2
Member
 
Join Date: Dec 2015
Posts: 74
Rep Power: 10
WhiteW is on a distinguished road
Hi I'm also trying to install Dakota on Ubuntu 16.04.
However when I run dakota -v I get the following error:

dakota: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory

Is it possible to install it on Ubuntu 16.04?
Thanks!
WhiteW
WhiteW is offline   Reply With Quote

Old   August 4, 2016, 12:52
Default
  #3
New Member
 
Ngo Bao Chung
Join Date: Sep 2012
Posts: 14
Rep Power: 14
chienfm is on a distinguished road
Hi,
Here is the step by step to install dakota 6.4.0 in Ubuntu 16.04

Warning: Dakota 6.4 and Foam won't work together by this built. i'm figuring out what happen.
Update: Instead of exporting PATH in bashrc file in step 10 below, I put them in /etc/environment then restart machine.And problem's gone
Quote:
$sudo nano /etc/environment
insert PATH and LD_LIBRARY_PATH.


1. Install some necessary packages:
Quote:
sudo apt-get install gcc g++ gfortran cmake cmake-curses-gui libboost-dev libboost-all-dev libblas-dev liblapack-dev libopenmpi-dev openmpi-bin openmpi-doc xorg-dev libmotif-dev
Explain:
Quote:
  • GNU 4.8 compilers: gcc g++ gfortran
  • CMake 2.8.12: cmake cmake-curses-gui
  • Boost: libboost-dev libboost-all-dev
  • Linear Algebra: libblas-dev liblapack-dev
  • OpenMPI: libopenmpi-dev openmpi-bin openmpi-doc
  • X Windows: xorg-dev libmotif-dev
  • Python (optional): Python development dependencies (if using direct Python interface): python-dev, and python-numpy if you'd like a NumPy interface.
2. Create the installation directory ($DAKOTA), and copy DAKOTA source code on it.

3.Extract file in terminal.
Quote:
tar -xzf dakota-6.4.0-public-src.tar.gz
4. Create and go to dakota-6.4.0 folder
Quote:
cd DAKOTA
mkdir dakota-6.4.0
cd dakota-6.4.0
5. Copy file BuildDakotaTemplate.cmake and rename it to BuildDakotaCustom.cmake. You can edit some features if you want, check the content inside for detail.
Quote:
cp ~/DAKOTA/dakota-6.4.0.src/cmake/BuildDakotaTemplate.cmake ~/DAKOTA/dakota-6.4.0.src/cmake/BuildDakotaCustom.cmake
6. Run ccmake
Quote:
ccmake -C ~/DAKOTA/dakota-6.4.0.src/cmake/BuildDakotaCustom.cmake ~/DAKOTA/dakota-6.4.0.src -DCMAKE_INSTALL_PREFIX=~/DAKOTA/dakota-6.4.0
Quote:
  • Cmake shows a simply GUI and when you enter in ccmake, first press the key "c" to configure the script.
  • If any error appears, go to the last line to check. If no, press "e" to return the main GUI.
  • In main GUI, press "t" to toggle some features. Now you can move down and up the cursor. You can turn ON and OFF the features by press Enter.
  • Go down, find BUILD_SHARE_LIBS and turn it OFF (by default: it's turned ON). We turn off this since it conflicts with a library in OPENFOAM (libsampling.io).
  • You also can move down to check the HAVE_X_GRAPHICS feature ON or OFF. This function shows a graph when u run dakota.
  • All finish, press "c" again to configure all scripts. If no error appears, you can press "e" to back to the main menu.
  • Finally press "g" to start generating the configuration.
7. Run make (The -j options is to compile in parallel, in this case I am compiling with 4 processors.)
Code:
make -j4
8. Install
Code:
make install
9. When you finish the compilation, do not forget to add the following environment variables to your .bashrc file.
Code:
gedit ~/.bashrc
10. Add the following lines at the end of bashrc and save.
Quote:
export PATH=~/DAKOTA/dakota-6.4.0/bin:~/DAKOTA/dakota-6.4.0/test
export LD_LIBRARY_PATH=~/DAKOTA/dakota-6.4.0/bin:~/DAKOTA/dakota-6.4.0/lib
11. Test by typing: Dakota -v. The version number and build date should appear on the terminal.

This all steps based on the hint by Dakota and the guide by Joegi in wikifoam.

Best regards,
B.Chien.

Last edited by chienfm; August 4, 2016 at 23:28. Reason: Update fix
chienfm is offline   Reply With Quote

Old   September 11, 2016, 17:10
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick note: I've added a link to the this thread here: http://openfoamwiki.net/index.php/In...n_Ubuntu_16.04
wyldckat is offline   Reply With Quote

Old   October 19, 2016, 04:53
Default
  #5
New Member
 
Ngo Bao Chung
Join Date: Sep 2012
Posts: 14
Rep Power: 14
chienfm is on a distinguished road
I could not edit my post in #3.

If you follow this guide, in step 10. The correct path in bashrc is:
Quote:
export PATH=$PATH:~/DAKOTA/dakota-6.4.0/bin:~/DAKOTA/dakota-6.4.0/test
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/DAKOTA/dakota-6.4.0/bin:~/DAKOTA/dakota-6.4.0/lib
So you no need to add the PATH in environment as I mentioned in the warning.

Reply on this topic if you get any trouble, I'm very glad to help you.
chienfm is offline   Reply With Quote

Old   March 9, 2017, 12:15
Default
  #6
Member
 
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10
CFD-Lover is on a distinguished road
I followed your step on Ubuntu 14 but still is not working.

Best,

Last edited by CFD-Lover; March 9, 2017 at 14:19.
CFD-Lover is offline   Reply With Quote

Old   March 25, 2017, 19:32
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

Several months ago while I was developing the image for the OFW11 USB stick, I used the pre-built Dakota 6.3 with Ubuntu 15.10.

Today I've re-adapted and updated the instructions for Dakota 6.3 to 6.5 and tested it on Ubuntu 16.04, all documented here: https://openfoamwiki.net/index.php/I...y_Installation

@CFD-Lover: Please test the instructions for the Dakota version that you prefer and please let us know if this works for you as well or not!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 2, 2017, 05:50
Default
  #8
New Member
 
muhammet çevik
Join Date: Oct 2016
Location: turkey
Posts: 5
Rep Power: 10
muhmt.cvk is on a distinguished road
Hi

I used ubuntu 16.04 and i followed yr instruction (dakota6.5) but there is error
libmpi.so.3: cannot open shared object file: No such file or directory.
muhmt.cvk is offline   Reply With Quote

Old   April 2, 2017, 19:54
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by muhmt.cvk View Post
I used ubuntu 16.04 and i followed yr instruction (dakota6.5) but there is error
Code:
libmpi.so.3: cannot open shared object file: No such file or directory.
Quick questions:
  1. Did you follow the instructions given in section "3.1 libmpi.so.1 not found" at the wiki page? Namely here: https://openfoamwiki.net/index.php/I...so.1_not_found
  2. What does the following command give you?
    Code:
    ls -l /etc/alternatives/libmpi.so
wyldckat is offline   Reply With Quote

Old   May 2, 2017, 08:29
Default
  #10
New Member
 
muhammet çevik
Join Date: Oct 2016
Location: turkey
Posts: 5
Rep Power: 10
muhmt.cvk is on a distinguished road
thank you ıt Works fine now
muhmt.cvk is offline   Reply With Quote

Old   August 1, 2017, 06:26
Default
  #11
Senior Member
 
Huynh Phong Thanh
Join Date: Aug 2013
Location: Ho Chi Minh City
Posts: 105
Rep Power: 13
hiuluom is on a distinguished road
in the step 10 make problem with bash command, so the path should insert like this:

Code:
export PATH=~/DAKOTA/dakota-6.4.0/bin:~/DAKOTA/dakota-6.4.0/test:$PATH
export LD_LIBRARY_PATH=~/DAKOTA/dakota-6.4.0/bin:~/DAKOTA/dakota-6.4.0/lib:$LD_LIBRARY_PATH
chienfm likes this.
hiuluom is offline   Reply With Quote

Old   June 23, 2019, 14:45
Default
  #12
Senior Member
 
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11
randolph is on a distinguished road
For whoever joins the party late like me,

I successfully compiled the newest version of Dakota 6.10.0 with Ubuntu 18.04.2 LTS by following the guidance of chienfm (post # 3) and hiuluom (post #11).

Code:
Dakota version 6.10 released May 15 2019.
Repository revision c963f6c (2019-05-14) built Jun 23 2019 13:16:32.
wyldckat and FRANZAF like this.
randolph is offline   Reply With Quote

Old   November 1, 2019, 12:26
Default [Other] Dakota 6.4 installation on ubuntu 16.04
  #13
New Member
 
Mahesh
Join Date: Aug 2018
Posts: 1
Rep Power: 0
kdMahi is on a distinguished road
Greeting to All above,


I followed the advice given or post #3 and of wyldcat's thread http://openfoamwiki.net/index.php/In...n_Ubuntu_16.04



First following advice in post #3, I tried to build the latest DAKOTA 6.10 in Ubuntu 18.04 LTS. It showed an error while configuring the script ( step 6 of post #3). The error I recieve is

"

CMake Error at /usr/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
boost_find_component Macro invoked with incorrect arguments for macro
named: boost_find_component
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindBoost.cmake:242 (find_package)
CMakeLists.txt:362 (find_package)
"
this further does nothing while generating the script. I have no idea how to correct it. Can someone please guide where i made the mistake and how to correct it?


2) Following Wyldcat's thread I did not recieve any error but writing the command dakota6100 ( I used 6.10.0 so changed the varibale name from dakota650 to 6100)
it says dakota command not found. Neither it loads dakota while starting with a new terminal!




any suggestion as how to solve any of these problems. thanks in advance!
kdMahi is offline   Reply With Quote

Old   November 11, 2019, 11:45
Default
  #14
New Member
 
Najmiddin
Join Date: Dec 2018
Posts: 16
Rep Power: 7
najimaddin96 is on a distinguished road
Hi everyone, when I try install usign instructions in post#3 I get the following error:
Code:
Installing: /home/usr/DAKOTA/dakota_installation/bin/dakota
CMake Error at src/cmake_install.cmake:81 (file):
  file RPATH_CHANGE could not write new RPATH:

    $ORIGIN:$ORIGIN/../lib:$ORIGIN/../bin

  to the file:

    /home/usr/DAKOTA/dakota_installation/bin/dakota

  No valid ELF RPATH or RUNPATH entry exists in the file; Error reading ELF
  identification.
Call Stack (most recent call first):
  cmake_install.cmake:61 (include)
 


Makefile:93: recipe for target 'install' failed
make: *** [install] Error 1
I have tried to install different version of Dakota, but still come across this error. Anybode came across with this?

Najmiddin
gcengineer and CFD_10 like this.
najimaddin96 is offline   Reply With Quote

Old   May 21, 2020, 12:55
Default
  #15
Member
 
CFD USER
Join Date: May 2019
Posts: 40
Rep Power: 7
CFD_10 is on a distinguished road
Quote:
Originally Posted by kdMahi View Post
Greeting to All above,


I followed the advice given or post #3 and of wyldcat's thread http://openfoamwiki.net/index.php/In...n_Ubuntu_16.04



First following advice in post #3, I tried to build the latest DAKOTA 6.10 in Ubuntu 18.04 LTS. It showed an error while configuring the script ( step 6 of post #3). The error I recieve is

"

CMake Error at /usr/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component):
boost_find_component Macro invoked with incorrect arguments for macro
named: boost_find_component
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindBoost.cmake:242 (find_package)
CMakeLists.txt:362 (find_package)
"
this further does nothing while generating the script. I have no idea how to correct it. Can someone please guide where i made the mistake and how to correct it?



2) Following Wyldcat's thread I did not recieve any error but writing the command dakota6100 ( I used 6.10.0 so changed the varibale name from dakota650 to 6100)
it says dakota command not found. Neither it loads dakota while starting with a new terminal!




any suggestion as how to solve any of these problems. thanks in advance!
I guess that error from CMake might be due to recent version of boost libraries. To overcome that, try to invoke cmake as follows:

Code:
cmake -DBoost_NO_BOOST_CMAKE=ON ..
CFD_10 is offline   Reply With Quote

Old   February 20, 2021, 05:45
Default
  #16
Member
 
Tom Lauriks
Join Date: Apr 2020
Posts: 34
Rep Power: 6
Tom Lauriks is on a distinguished road
Following the initiative of randolph (post #12), I'd like to report that I managed to build dakota 6.13.0 on ubuntu 18.04.5 LTS, by following the guidance of chienfm (post # 3) and hiuluom (post # 11).

Output generated by executing dakota -v:
Code:
Dakota version 6.13 released Nov. 16 2020.
Repository revision 457a5f3 (2020-11-12) built Feb 20 2021 10:00:53.
Tom Lauriks is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04 titanium OpenFOAM Installation 14 February 20, 2020 12:46
[OpenFOAM.org] Problem during installation of openfoam 2.3.0 on ubuntu 16.04 jarvis OpenFOAM Installation 2 March 20, 2018 09:32
[OpenFOAM.com] Installation of OpenFOAM 1.7.1 on Ubuntu 16.04 MM_Khan OpenFOAM Installation 11 September 3, 2017 10:22
[OpenFOAM.com] Ubuntu 16.04 OpenFOAM-v1706 ParaView Installation Error kaszt OpenFOAM Installation 4 August 25, 2017 19:01
[Other] Dakota 6.1 installation on ubuntu 14.04 aminem OpenFOAM Installation 2 July 8, 2015 15:53


All times are GMT -4. The time now is 22:59.