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 04:59. |