Hi,
As the path in error is Code:
/bin/tools/RunFunctions Code:
# Source tutorial run functions |
Hi,
I am not sure if I understand what you are trying to tell me. Has it something to do with the post-configuration part of the Hopscotch Building OpenFOAM on OS X guide (http://matveichev.blogspot.fr/2014/0...on-os-x.html)? I didn't understand this part and I guess it didn't work on my machine. How do I set up environment variables? Quote:
|
Hi,
Maybe here it is written clearer - https://github.com/mrklein/openfoam-...-configuration. If you were able to build OpenFOAM, then once you have set up environment variables. In general it is done with 'source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc' command. But before issuing this command you have to mount disk image with case sensitive file system you have created. |
Hi,
everytime I reboot my mac I am typing the following: Code:
hdiutil attach -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle p.s.: Thank you for the post configuration guide. I will try this! |
Well, commands seems to be OK. What is the output of the commands?
Post-configuration guide is just trying to automate the commands you are entering. If they do not work then re-reading the guide in general will not help. |
The output is:
Code:
Kates-MacBook-Pro:~ kateeisenhower$ hdiutil attach -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle |
And then you open new terminal and try to run tutorial case? You have to do 'source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc' every time you open new terminal session.
|
I never close terminal.
|
And you always work in one tab/window? You never open new windows/tabs?
|
Not within the terminal app.
Ah, now I got it. When I double click on the Allrun script, it opens in a new window automatically. I will try to follow the guide you recommended me for automating the process of mounting disk image and setup environment variables. This will solve the problem, right? Thank you very much for your help! |
Quote:
I tried to follow the default version approach but I have two questions: 1) In which directory do I have to be when I make the directory .OpenFOAM? 2) Where is my ~/.profile? Thanks in advance |
Hi,
1. Really, I have omitted this in guide. You should be in $HOME folder (/Users/kateeisenhower). 2. In general on Unices ~ refers to home folder, so your ~/.profile is /Users/kateeisenhower/.profile. You can check if installation succeeded by executing Allrun in Terminal instead of Finder. I.e. in the terminal, where you have mounted disk image and then executed 'source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc', you write (text starting from # is a commentary) Code:
tut # will got to tutorials folder |
Quote:
Code:
Kates-MacBook-Pro:~ kateeisenhower$ mkdir -p .OpenFOAM |
And the result of these operations? Do you still have problems with tutorial execution or it started to work?
|
There was no result. I have posted everything which I could see in terminal.
I did not try the tutorials because I was not able to do step two of the post configuration guide because of the missing .profile. |
And you can not create it? Even with just
Code:
echo 'source $HOME/openfoam-env-setup.sh' > $HOME/.profile |
No, it doesn't work. I looked again, but there are only my documents, music, pictures... folders as well as my OpenFOAM image and OpenFOAM.sparsebundle.
|
How did you do 'I looked again...'? With Finder? Or with 'ls -la' in Terminal?
|
Okay, this worked. I can see the file now. Yes, I looked with the Finder. I don't know why but I really can't see all the files there. I am trying to complete the post configuration now.
Thank you for your help! |
Okay, I managed to change the .profile. It looks like this now:
Code:
Kates-MacBook-Pro:~ kateeisenhower$ cat .profile After rebooting my mac and starting Terminal I got the following: Code:
-bash: /Users/kateeisenhower/openfoam-env-setup.sd: No such file or directory Also i ran the motorBike tutorial and snappyHexMesh worked fine. |
All times are GMT -4. The time now is 06:19. |