|
[Sponsors] |
December 2, 2012, 07:06 |
|
#181 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings ooznie and welcome to the forum!
I've moved your post to this thread, to keep the questions related to those instructions all in a single thread. Now, from the output file you provided, it looks like that the main problem is that you mounted the image in read-only mode and therefore does not allow you to write files into it. Unmount the image and mount it again with write permissions. After mounting it, test if you can write anything into it. If successful, start again from section 2.3. Best regards, Bruno
__________________
|
|
December 10, 2012, 11:55 |
installing issues
|
#182 |
New Member
Joan Subirats
Join Date: Nov 2012
Posts: 4
Rep Power: 14 |
Dear Bruno,
I tried to install OF a couple of times in order to make sure I was following the steps word by word, but unfortunately it still does not work. Mac Os 10.6.8 I just applied the patches: -OpenFOAM-2.1.x-gcc42.patch -OpenFOAM-2.1.x-Mac-gcc46.patch As I understood as per OF version I'm trying to install (2.1.1) I don't need the rest. Also I have a question concerning the .bashrc file. This not come by default but .profile file. So I need to create it anyway or could I use the .profile file. I hope this time to get succes. Thanks in advance. |
|
December 11, 2012, 15:06 |
|
#183 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
About bashrc vs profile: use bashrc http://serverfault.com/questions/261...file-vs-bashrc http://serverfault.com/questions/261...file-vs-bashrc
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 11, 2012, 16:42 |
|
#184 |
New Member
Joan Subirats
Join Date: Nov 2012
Posts: 4
Rep Power: 14 |
Hi gschaider,
Yes I applied the Thirdparty patch, but having following error: 1 out of 1 hunk FAILED -- saving rejects to file scotch_5.1.11/src/Makefile.inc.rej As far as I understood this is a minor error that is solved when compiled. Patches applied on OpenFOAM-2.1.1 and ThirdParty-2.1.1 are: ThirdParty-2.1.0-Mac.patch OpenFOAM-2.1.x-Mac-gcc46.patch OpenFOAM-2.1.x-Mac.patch I also understood that "OpenFOAM-2.1.x-Mac_20121009.patch" it is recommended for Mac Os X 10.7. Will see if I get success again. |
|
December 12, 2012, 01:12 |
|
#185 |
Member
Vishal Achasrya
Join Date: Nov 2011
Posts: 38
Rep Power: 15 |
Thanks for the effort Bernhard. This is my first time trying this on my mac...
I got the following error though: Vishals-MacBook-Pro:OpenFOAM-2.1.x vishalacharya$ patch -p1 <OpenFOAM-2.1.x-Mac.patch patching file applications/solvers/combustion/chemFoam/Make/options patching file applications/solvers/combustion/fireFoam/Make/options patching file applications/solvers/compressible/rhoSimplecFoam/Make/options patching file applications/solvers/incompressible/adjointShapeOptimizationFoam/Make/options patching file applications/solvers/incompressible/channelFoam/Make/options patching file applications/solvers/incompressible/pimpleFoam/pimpleDyMFoam/Make/options patching file applications/solvers/incompressible/simpleFoam/MRFSimpleFoam/Make/options patching file applications/solvers/incompressible/simpleFoam/SRFSimpleFoam/Make/options patching file applications/solvers/lagrangian/icoUncoupledKinematicParcelDyMFoam/Make/options patching file applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/Make/options patching file applications/solvers/lagrangian/reactingParcelFilmFoam/Make/options patching file applications/solvers/multiphase/compressibleInterFoam/Make/options Hunk #1 succeeded at 7 with fuzz 1 (offset 1 line). patching file applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/Make/options Hunk #1 succeeded at 11 with fuzz 1 (offset 1 line). patching file applications/solvers/multiphase/interFoam/LTSInterFoam/Make/options Hunk #1 succeeded at 8 with fuzz 1 (offset 1 line). patching file applications/solvers/multiphase/interFoam/MRFInterFoam/Make/options Hunk #1 succeeded at 8 with fuzz 1 (offset 1 line). patching file applications/solvers/multiphase/interFoam/Make/options Hunk #1 succeeded at 8 (offset 1 line). patching file applications/solvers/multiphase/interFoam/interDyMFoam/Make/options patching file applications/solvers/multiphase/interFoam/porousInterFoam/Make/options can't find file to patch at input line 220 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/applications/solvers/multiphase/interMixingFoam/Make/options b/applications/solvers/multiphase/interMixingFoam/Make/options |--- a/applications/solvers/multiphase/interMixingFoam/Make/options |+++ b/applications/solvers/multiphase/interMixingFoam/Make/options -------------------------- File to patch: |
|
December 12, 2012, 13:32 |
|
#186 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The missing file, I don't know: maybe that solver was moved somewhere else in the version of the sources you have. Either look for it in your source tree and enter the correct path or just press enter. You will then be asked whether you want to skip that file and it will go on (or something like that. The messages are plain English so just use your common sense)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
December 12, 2012, 13:45 |
|
#187 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
FYI: the "interMixingFoam" folder was indeed moved:
__________________
|
|
December 12, 2012, 16:22 |
|
#188 |
Member
Vishal Achasrya
Join Date: Nov 2011
Posts: 38
Rep Power: 15 |
Bernhard - Actually, it was common sense that i first used and proceeded, but it ended up not working in the end. This is only with 2.1.x. This is despite looking for the actual path and then accounting for it.
I tried with 2.1.1 and it works fine, except for a minor manual inclusion that needs to be in the Options file under Make for "R". I figured out that as well and 2.1.1 is now fully setup and running. Thanks for the scripts btw, Appreciate your effort. Bruno - I figured as much, especially when i did a find on it and found it elsewhere. I changed the path to it in the patch too and reapplied it (freshly) and it still did not work properly (during Allwmake). However, this was only with 2.1.x but 2.1.1 was fine. A general (maybe dumb) question. I tried to setup the alias for of211 and i did this based on the suggestion on wiki and some posts in this chain of threads using hdiutil.... but does this work for sparseimages? or something else has to be done for this? The example shows the commandline for a dmg file. When i use it with a sparseimage, it gives errors and does not work. For now, im just manually sourcing it. |
|
December 12, 2012, 17:26 |
|
#189 | |||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||||
December 14, 2012, 09:34 |
|
#190 |
New Member
Joan Subirats
Join Date: Nov 2012
Posts: 4
Rep Power: 14 |
Dear All,
After several tries I finally got no errors and I'm at the point '2.6.3 Permanent Installation', where I need some dummy guidelines about mounting the dmg as I tried several options and no one work. Maybe the problem comes from the bashrc file, that as Mac newbee I'm is: I tried to add the line: alias of21='hdiutil attach "/Users/Joan/OpenFOAM.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc' to my personal bashrc file located at /private folder, but it does not let me save changes made. Then I tried to add the line at the end of bashrc file at '/OpenFOAM-2.1.1/etc/bashrc' but it does not work either. Maybe is the way I mounted the dmg file, don't know. A last push to get this sorted out. Thanks, Joan |
|
December 15, 2012, 13:25 |
|
#191 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@Joan: Did you try searching with Google? I've searched just now with the following keywords:
Code:
Mac OS X edit .bashrc And this one peaked my interest right after: http://superuser.com/questions/24496...rc-not-working Good luck! Bruno
__________________
|
|
December 27, 2012, 00:02 |
Success building - but failure building tutorials
|
#192 |
New Member
Ontario
Join Date: Dec 2012
Posts: 3
Rep Power: 13 |
Hello
First, a huge thank-you to those who put together these instructions and this thread. My system is Lion on an MBA see below. mba:OpenFOAM-2.1.1 robm$ uname -a Darwin mba 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 gcc is from MacPorts (version 4.6.3_9) A couple of things kind of confused me during the build. 1) the patch file for ThirdParty produces an error # this needs generalizing scotchMakefile=../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-$WM_ARCH_OPTION +if [ "$WM_ARCH_BASE" == "darwin" ] + then + scotchMakefile=../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM +fi There was a much earlier post that said to ignore the error and that it would be looked after during the build. I'm not an expert in patch files, but when I looked at the file being patched, it didn't seem to have either of the lines shwon above, neither the (+) or the (-) ? 2) the instructions in openfoamwiki never say to run the Thirdparty patch, just to get it (minor - but for me I missed the step) 3) After building, I went to tutorials and did ./Allrun It went until Running XiFoam on /Volumes/foamDiskImage/OpenFOAM-2.1.1/tutorials/combustion/XiFoam/les/pitzDaily This ran for over 4 hours and one of the processes was consuming 100% (one core) so it looks like something is in a hard loop. Not sure what, or if this happens on other platforms or not. I'm just trying to learn FOAM so this is not critical for me. 4) I believe it is only necessary to create a package if your disk is case-insensitive right? I always reformat my disks to be case-sensitive prior to installation for just this reason. 5) I found the naming conventions (OpenFoam , OpenFOAM, OpenFOAM-2.1.1, OpenFOAM-v2.1) to be confusing because they are so similar. I didn't clue in that once you create the package of off /Volumes that the source directories go INSIDE of it, because of the similarity of the names. The resulting package contains all of the source, executables and tutorials rather than installing the executables in the usual places. Perhaps this is a consequence of the expectation of case sensitivity. (eg. OpenFOAM, OpenFoam would be the same on a case insensitive volume) Hope this helps someone. Rob |
|
December 27, 2012, 00:32 |
To Joan - problem saving bashrc.
|
#193 |
New Member
Ontario
Join Date: Dec 2012
Posts: 3
Rep Power: 13 |
@Joan
HTML Code:
I tried to add the line: alias of21='hdiutil attach "/Users/Joan/OpenFOAM.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc' to my personal bashrc file located at /private folder, but it does not let me save changes made. Then I tried to add the line at the end of bashrc file at '/OpenFOAM-2.1.1/etc/bashrc' but it does not work either. Maybe is the way I mounted the dmg file, don't know. Assuming you logged in as joan then your .bashrc would be in /Users/joan/.bashrc |
|
December 27, 2012, 07:05 |
|
#194 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Rob and welcome to the forum!
Many thanks for detailing the missing steps! And please feel free to update the wiki page with your findings! Best regards, Bruno
__________________
|
|
January 1, 2013, 12:11 |
Any ideas on the error at the end of the make.log?
|
#195 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
Hi,
I tried to install OF 2.1 on my mac mountain lion, but when I ran Allwmake, I have the following errors at the end of the make.log file. I would very much appreciate any tips. lnInclude/fvCFD.H:4, from multiphaseEulerFoam.C:33: /opt/local/include/gcc46/c++/typeinfo:42:37: error: expected declaration before end of line make[2]: *** [Make/darwinIntel64Gcc46DPOpt/multiphaseEulerFoam.o] Error 1 make[2]: Target `/Users/mj/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam' not remade because of errors. make[1]: *** [multiphaseEulerFoam] Error 2 make[1]: Target `application' not remade because of errors. make: *** [multiphase] Error 2 make: Target `application' not remade because of errors. Thanks in advance. |
|
January 1, 2013, 13:08 |
|
#196 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings adventicemj and welcome to the forum!
Quoting from the wiki page: http://openfoamwiki.net/index.php/Ho...osing_problems Quote:
Best regards, Bruno
__________________
|
||
January 1, 2013, 18:35 |
|
#197 |
New Member
Join Date: Dec 2012
Location: Washington DC
Posts: 1
Rep Power: 0 |
Hi Bruno:
I'm new to this forum. Using the wiki page I was able to successfully install OpenFOAM on my OS 10.7.5 machine. The only problem that I am having is doing the permanent install. In my .bash_profile I added the following line: alias of21='hdiutil attach "/Users/vivekd/OpenFOAM-v2.1.sparseimage" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc' I then sourced the file using: source .bash_profile. When I restarted my machine OpenFOAM still did not do an automatic mount. Any suggestions would be greatly appreciated. Thanks. --Vivek |
|
January 2, 2013, 11:37 |
|
#198 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Vivek and welcome to the forum!
Bruno
__________________
|
|
January 4, 2013, 10:36 |
|
#199 |
New Member
Join Date: Jan 2013
Posts: 12
Rep Power: 13 |
Hi Bruno,
I am sorry but I am a new mac user and I am not a software engineer... I tried again but it still does not work. Could you please give me a hint on the error message? Alternatively, do you think it would be best to set up a virtual box with Ubuntu on it to run OpenFOAM? I have a desktop running Ubuntu and I just bought a macbook air for when I am away. Kind regards. |
|
January 4, 2013, 20:20 |
re: help with error.
|
#200 | ||
New Member
Ontario
Join Date: Dec 2012
Posts: 3
Rep Power: 13 |
Quote:
This might be a wild guess, but I looked at my copy of typeinfo -it's a c++ include file. Could your copy of that file be corrupted. My line 42 is also 37 characters long, but doesn't generate an error. I'd look for partial lines, missing semi-colons, or have you ever edited the file with windows editor. My file looks like this and it is part of the C++ standard library, so it is unlikely that it contains an error. More likely it is corrupted. The line in question is #pragma GCC visibility push(default) Quote:
|
|||
Tags |
compilation error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extend Project 1.6-ext Binary Release for Mac OS X | hjasak | OpenFOAM Announcements from Other Sources | 26 | November 5, 2013 17:50 |
Openfoam mac: Compiling custom libraries | atareen64 | OpenFOAM | 3 | April 14, 2011 12:01 |
OpenFOAM-1.6 on Mac OS X 10.6.1 | elvisjohndowson | OpenFOAM | 6 | October 21, 2009 16:45 |
Mac Simple Install Request or Processing Assistance Help | sjohnson | OpenFOAM Installation | 4 | December 12, 2008 08:46 |
MAC + SOLA for free surface | T | Main CFD Forum | 1 | April 11, 2001 14:43 |