Building OpenFOAM 3.0.1 on Ubuntu 16.04 - failed
1 Attachment(s)
Hello!
I followed the steps here, which is where I download the source too, my system is a 64-bit Ubuntu 16.04, 16 GB RAM. When I run ./Allwmake my build fails. It presents lots of errors instead of stopping on the first one, with the message : "undefined reference to `yyFlexLexer::yywrap" . I did: user@pc:~/OpenFOAM/OpenFOAM-3.0.1$ flex++ --version flex++ 2.6.0 user@pc:~/OpenFOAM/OpenFOAM-3.0.1$ which flex++ /usr/bin/flex++ What am I doing wrong here? Edit: also, is there a ppa available to install OpenFOAM without building on Ubuntu Xenial Xerus? |
Quick answers:
|
Thanks Bruno! Will try this as soon as possible!
I notice you answer most things here. I am still learning OpenFoam but been a linux USER for some time. How can one help with the OpenFoam project? |
Quote:
|
Let me add something to this. If you are using wmakeScheduler to compile, you will get the following error:
Code:
wmakeScheduler: Could not find executable 'lockfile' Code:
sudo apt install procmail Solution found in this thread: http://www.cfd-online.com/Forums/ope...oam-2-3-x.html Best, Pablo |
Ok, using the code from Bruno it worked.
I used the same code on OpenFOAM 2.4.0 and could build it successfully on Ubuntu 16.04. Then I went to build Paraview, but build failed at 13% building object vtkXOpenGLRenderWindow.cxx.o . glxext.h 480:143 error: GLintptr has not been declared |
2 Attachment(s)
Tried to follow the instructions here instead:
https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 But on step 8, using `./Allwmake > make.log 2>&1` gives me errors I've attached the log. Attachment 47046 Attachment 47047 |
Does the variable WM_NCOMPPROCS=4 matter AFTER building? If I didn't use it, in the 3.0.1 install, will OpenFOAM use 4 cores when running?
|
Quick answers:
Quote:
Quote:
Code:
cd ~/OpenFOAM Quote:
|
I was missing the ptscotch.h file when trying to build OpenFOAM on Ubuntu 16.04, so I had to install an additional package:
Code:
apt-get install libptscotch-dev |
3 Attachment(s)
I still can't build, I created a script here called:
installOF240_sh.txt if someone could be kind enough to give me a script to just run and install Open FOAM 2.4.0 in Ubuntu 16.04 I would be very happy. Tried everything and it just doesn't build. I could build with no problems Open FOAM 3.0.1. If there is a .deb package that works or a PPA please, tell me!!! |
@erico: OK, the problem with CGAL can be ignored. I still don't understand what's going on wrong, but this can be ignored for now. I'll have to review the instructions to use the CGAL version that comes with Ubuntu 16.04, which should solve this problem.
If you still have OpenFOAM-2.4.0 in your build structure, then please simply try run the following commands and you should get at least most of OpenFOAM built and up and running, although foamyHexMesh won't be working (edit: see the next post as well): Code:
#Go into OpenFOAM's main source folder If you want the complete script, it's easier for me to post the code here (edit: updated script code based on findings shown in the next post): Code:
cd ~ |
Sorry about the confusion. I've solved the problem with CGAL. Quoting myself from a few minutes ago:
Quote:
|
so wmSET didn't work.
I understand that using source $HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc WM_NCOMPPROCS=4 is ok - as alternative to the wmSET command that is inexistent on my system. Anyway, now I have a different problem. Damn, I really wish OpenFOAM was just packed somewhere, maybe as Snaps, or as debs or a ppa... user@pc:~/OpenFOAM/user-2.4.0/run/testes/parede_DxDy5$ of240 user@pc:~/OpenFOAM/user-2.4.0/run/testes/parede_DxDy5$ paraview --version paraview version 4.1.0 Inconsistency detected by ld.so: dl-close.c: 811: _dl_close: Assertion `map->l_init_called' failed! user@pc:~/OpenFOAM/user-2.4.0/run/testes/parede_DxDy5$ of301 user@pc:~/OpenFOAM/user-2.4.0/run/testes/parede_DxDy5$ paraview --version paraview version 4.4.0 Inconsistency detected by ld.so: dl-close.c: 811: _dl_close: Assertion `map->l_init_called' failed! I have zero results for this error in Google. --- EDIT: I am an idiot. The correct software is paraFoam. Nevermind, everything is working. It's perfect. |
Unable to install OpenFOAM in ubuntu 16.04
As per the instruction, I tried running
Code:
apt-get install build-essential binutils-dev cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev libqtwebkit-dev gnuplot \ Code:
Reading package lists... Done Thanks |
Quick answer @RishabhG: Sorry, I completely forgot to add to the instructions on the wiki for updating the apt-get cache.
On the terminal, in root mode, please run the following command: Code:
apt-get update Code:
sudo apt-get update edit: I've updated all of the wiki pages I could remember about on this detail. |
OpenFoam Tutorial
1 Attachment(s)
Thanks a lot. I was able to successfully install
I was trying a tutorial given in http://cfd.direct/openfoam/user-guid...ty/#x5-40002.1 Code:
cd $FOAM_RUN Code:
cp: missing destination file operand after '/home/rishabh/OpenFOAM/OpenFOAM-3.0.1/tutorials/incompressible/icoFoam/cavity/cavity' |
Quick answer @RishabhG: I'm guessing that you started a new terminal window or tab. You need to run the respective alias command. In your situation, where you have OpenFOAM 3.0.1, run:
Code:
of301 If that gives you an error message, then something went wrong. Please let me/us know of what error message it gives you or check the installation instructions again, namely the step that uses the command "source", which at the current time of writing is step #8 here: http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04 |
I did run the of301 command. The I ran
Code:
cd $FOAM_RUN Code:
cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity Code:
cp: missing destination file operand after '/home/rishabh/OpenFOAM/OpenFOAM-3.0.1/tutorials/incompressible/icoFoam/cavity' |
Quote:
Code:
missing destination file operand Code:
cp -r origin target
Quote:
But on the post you made now: Quote:
Maybe this is easier to see: Code:
cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity ./ Take a look at the following thread for more details: http://unix.stackexchange.com/questi...nd-directories |
All times are GMT -4. The time now is 17:47. |