swak4foam error
thank you very much
|
Quote:
|
Using the wiki instructions to install 2.2.3
Could someone please confirm which steps of the wiki page for Installing 2.2.2 would be applicable, if I was to install 2.3.1 using this patch?
https://openfoamwiki.net/index.php/I...OpenFOAM_2.2.2 Are there any steps I should ignore or do differently? Also, is it still possible to install 2.2.2 at this point (I am thinking this might be an easier option, as it would mean I could just follow the instructions step by step) Thanks for your help, I have spent the past few days trying to understand how this all fits together and am a bit confused |
Quote:
Anyway the procedure about 2.2. is practically the same, except for the fact that now the patch it's just one to apply, and not two. Last time I compiled 2.3, some editing on some Makefiles were required, they're however described in previous posts. Just try to do it yourself, if you get errors try to search before around here, and if you can't succeed try to ask. ;) |
1 Attachment(s)
Quote:
I have used the method proposed by alexeym above, and I was wondering if someone would be able to check my log file (attached) to see if everything is working properly? I am new to using terminal and OpenFOAM so would appreciate any help / advice. Thanks |
Hi,
Well, there were 3 principal errors. All of them are caused by missing flags in Make/options files of the corresponding solvers. Errors are in driftFluxFoam, interFoam, interDyMFoam, porousInterFoam, and LTSInterFoam. If you can live without these solvers there's no reason to worry. Otherwise you have two choices: correct Make/options yourself, wait for new patches (though the error with driftFluxFoam was there from the initial 2.3.0 release, it seems, the error is still there). |
Quote:
For any other newbies on this thread looking for a simple method to install OpenFOAM on Yosemite, I would recommend alexeym's method as being very quick and easy. |
I have started going through the tutorial and have hit one more issue - I don't seem to have Paraview installed. When I type the command paraFoam
I get this: FATAL ERROR: ParaView reader module libraries do not exist Please build the reader module before continuing: cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers ./Allwclean ./Allwmake I tried following these instructions but the last command gives the error: ERROR: ParaView not found in /Users/luckyhat/OpenFOAM/ThirdParty-2.3.x/platforms/darwinIntel64Gcc46/ParaView-4.1.0 I tried creating those folders and copying ParaView-4.1.0 into the directory but then I get the error: ./Allwmake : PV_PLUGIN_PATH not valid - it is unset Any ideas on the best / easiest way to install ParaView? Thanks |
Hi,
You should install binary version of paraview in /Applications. Download it from http://www.paraview.org/paraview-dow...rwin-64bit.dmg. And use built-in reader module using 'paraFoam -builtin'. |
When I run paraFoam -builtin I get:
created temporary 'PV4Readers.foam' /Users/brendanfox/OpenFOAM/OpenFOAM-2.3.x/bin/paraFoam: line 265: paraview: command not found I tried restarting terminal and running the command again, now I get: paraFoam -builtin -bash: paraFoam: command not found Any ideas? |
Quote:
Code:
$ cd $WM_PROJECT_DIR/bin Quote:
|
Quote:
Thanks |
Hi,
In the guide on openfoamwiki.net (I guess you've used it to compile OF) it is called: Code:
9. Source the bashrc file: |
Quote:
ln: ./paraview: File exists |
Well, the output contradicts to itself, let's learn a little bit more about your installation. What is the output of the following commands:
1. Code:
$ which paraview Code:
$ type paraview |
Yeah, I think there are still some problems with my environment. Right now I am reading up on OpenFOAM shell environment (http://www.cfd-online.com/Forums/blo...vironment.html) to try and better understand what is going on.
The first command (which paraview) gave no output The second command (type paraview) gave the following output: -bash: type: paraview: not found Thanks for your help |
1 Attachment(s)
I am using Macports on Mountain Lion and have followed all the requisite steps (using case-sensitive sparse image, applied patch, edited etc/bashrc, etc.). However, I am getting errors. I will attach the log up to the first instance of "Error 1". Any suggestions?
|
Has anyone created a github fork of the OpenFOAM 2.3.x project and applied the patch to it? If not, does anyone oppose the idea?
I am just wondering whether this would help reduce issues around the patching? |
Quote:
|
Quote:
When I do get things working, I will certainly take into account your suggestion, but also try to make any solution support a cross-platform use case. Edit: user error. I seem to have missed the part which indicated I needed to use a case-sensitive file system. Creating a case-sensitive HFS+ disk image made a difference. I wonder whether the main devs would be interested in trying to resolve the issues requiring a case-sensitive FS? |
I have created a fork here, with the patches applied:
https://github.com/ajmas/OpenFOAM-2....-forum-patched That eliminates one step. I did also patch the etc/bashrc file to handle paths with spaces in it, but other tools also fail with spaces in the the path, so best avoid spaces in path names. Edit: if you have changes with regards to the Mac code, maybe the best thing to do is make a fork and the submit a pull request? Changes should not break the Linux build. |
Quote:
It would be helpful to include the changes recommended in comment #82 of this thread. I suggest modifying readme.html to indicate how this branch is different from the main branch. I am making progress on working out my own installation. Once I have things better figured out, I will try to contribute. Thanks! |
1 Attachment(s)
Current status update on my efforts:
- https://github.com/ajmas/OpenFOAM-2.3.x master branch includes most of the changes available in this thread - I have created a build script, attached to this post that should make building much easier. Doing the following: -- Creating and mounting case-sensitive HFS+ disk image -- Getting the necessary MacPorts (if you use another tool, please contribute changes) -- Cloning the git repository (uses mine, since it is already patched) -- Configuring bashrc -- initiating the build -- Ensuring the build is outputted to log Please let me know if this helps you and please provide any pull-requests or change suggestions. Note, I still waiting for my current build to finish, so will see if it is successful. Edit: updated build file 2015-03-07 |
Quote:
|
1 Attachment(s)
Following from reply #137, those uploaded errors occurred when building with gcc-4.7. I found that using built-in (Apple) clang-5.1 avoided the errors. However, I prefer to use gcc via macports, and made another attempt with gcc-4.9. Similar errors resulted, but I was able to get past them by applying the attached patch. It is just additional '#include "vector.H"' lines in several files; it is a hack at best and is probably not the best approach. I presume that this will help with building with gcc-4.7 and 4.8 also, but I have not tested.
|
Does anyone know how to resolve this issue:
Code:
ld: library not found for -lpmpich Code:
bash-3.2$ ls -1 /opt/local/lib/mpich-gcc47 |
1 Attachment(s)
Tried to compile OpenFoam 2.3.1 on MacBook Air Yosemite. Gcc46 used.
The compilation fails several times, the first of which while building multiphaseSystem libraries. I am attaching the log file. Thank you in advance :) |
|
Quote:
Thank you for the link. I followed the guide, but I still have errors. Here is a link to my logfile. https://www.dropbox.com/s/mu02hr4nxa...xt.tar.gz?dl=0 |
Hi,
Had a look at your log. A couple of questions: 1) Are you sure you are compiling the git repository version? If you try to use the guide with the release version, you're gonna have a bad time... 2) Are you sure you followed the guide completely (i.e., are using the macports gcc48 compiler, and the openmpi-gcc48 package)? Installing the packages is not enough, you must also run: Code:
$ sudo port select --set gcc mp-gcc48 Code:
$ sudo port select --set mpi openmpi-gcc48-fortran You can test this with: Code:
$ which mpicc Code:
$ which gcc Also, could you run: Code:
$ port select --summary Code:
$ mpicc --version Cheers, Peter |
Hi, thank you again. Unfortunately I still have errors.
Quote:
As regards the other suggestions, yes, I installed the macports and run port select command: Code:
$ port select --summary Code:
$ which mpicc Code:
$ which gcc Code:
$ which mpicc https://www.dropbox.com/s/vuw0bdepo3...-2.tar.gz?dl=0 Thank you, Davide |
Hi Davide,
It seems that something is amiss in your environment regarding which mpicc and mpicxx you are using. When you run: Code:
$ mpicc --version Code:
$ mpicxx --version Code:
$ mpicc --version You can "manually" correct this by appending this to the openfoam/etc/bashrc: Code:
echo "WM_CC=mpicc-openmpi-gcc48" >> /path/to/OpenFOAM-2.3.x/etc/bashrc Code:
echo "WM_CC=mpicc" >> /path/to/OpenFOAM-2.3.x/etc/bashrc |
Quote:
Code:
Cannot open configuration file /opt/local/share/openmpi-mp/openmpi/mpicc-openmpi-gcc48-wrapper-data.txt Code:
$ ls -l /opt/local/share/openmpi-mp/openmpi/mpicc-* |
OpenFOAM Installation Error
Hi,
I'm new here, and I have no experiences with these kind of things. I'm trying to install OpenFOAM on my Mac OS X 10.10.1 since some days without any result. I also tried to run different installation process, but everytime there are some errors. As I told you, I can not figure out where is the problem. Hope some of you can help me. Here is the first error I found in the log.Allwmake (apparently this is the most important): Quote:
|
Hi Davide,
So, there are still some inconsistencies in your environment. I suspect that it has something to do with the fact that you have both the "default" openmpi and the openmpi-gcc48 variant (and a whole bunch of others) installed. It is looking for the "mpicc-openmpi-gcc48-wrapper-data.txt" file in the "openmpi-mp" directory (which is where the "default" macports openmpi package lives), when it should be looking here: Code:
/opt/local/share/openmpi-gcc48/openmpi/ 1) Remove all installed ports to get a "clean" environment (probably a good idea anyway, since you have so many variants installed), i.e.: Code:
$ sudo port uninstall installed Code:
sudo port install gcc48 Hope this will do the trick! Peter |
Petru,
I don't know which guide you are following. I tried several without success. In the end, this is what worked for me: http://openfoamwiki.net/index.php/In...OpenFOAM_2.3.x To avoid issues with your environment, especially if you've made multiple attempts using different packages and/or package managers (MacPorts/Homebrew/Fink/etc...), I suggest you remove all previously installed (possibly conflicting) variants of packages. Good luck, Peter |
1 Attachment(s)
Hi Peter,
I removed all the ports to get a clean environment, and then attempted to re-install all the packages. Now I have the correct output for the select command: Code:
$ port select --summary Code:
$ port installed | grep openmpi I circumvented the issue at the boost installation by adding the -openmpi-default string: Code:
sudo port install boost +gcc48 +openmpi-gcc48-fortran -openmpi-default Code:
sudo port install scotch -mpich +gcc48 +openmpi-gcc48-fortran -openmpi-default -gcc49 Thank you, Davide |
Hi Peter,
Thank you for you answer. I tried to apply your suggests, but I still have an Error. Code:
I can't understand where is the problem, but maybe it is due to the sudo port installation: Code:
Code:
Do you have any ideas? Thank you again, for your time Paolo |
Hello guys,
I have some problems installing OpenFOAM 2.3.1 on an MacBook Pro running Yosemite. I've followed the recommended guide for installing 2.2.2 (http://openfoamwiki.net/index.php/In....2#Final_Steps) and somehow it did'nt work. I think about starting from scratch again but I don't really understand some of the notes in the readme file from gschaider(http://sourceforge.net/p/openfoam-ex...acPatch/README). Quote:
Quote:
Quote:
Quote:
I would really appreciate an explanation. Cheers, Kate |
Quote:
I found this due issues resulting from the using of the version of flex at /usr/bin/flex. The MacOS X default version will fail in certain cases. I have also now put the script for the build script on GitHub: https://github.com/ajmas/scripts-et-...sx-macports.sh And with all this it all builds :) |
All times are GMT -4. The time now is 01:51. |