CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Problem installing on Yosemite

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2016, 12:34
Default Problem installing on Yosemite
  #1
New Member
 
Daniele Marini
Join Date: Mar 2016
Posts: 4
Rep Power: 10
danlr46 is on a distinguished road
Hi
after updating Xquartz and OS X Yosemite ver. 10.10.5 (14F1605) on my MacBoo Air (endi 2010),

I have installed docker and openFoam following the instructions provided.
Nor trying to run openFOAM I execute:
> ./startOpenFOAM+

i get this message:
non-network local connections being added to access control list
of_v3.0_plus

now typing:
bash$ run
I get this other message:

bash: cd: /home/docker/OpenFOAM/docker-v3.0+/run: No such file or directory

I have tried to create the above directory in vane. Any help please?
danlr46 is offline   Reply With Quote

Old   April 1, 2016, 01:55
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,904
Rep Power: 33
hjasak will become famous soon enough
mkdir $FOAM_RUN
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 1, 2016, 04:14
Default Problem installing on Yosemite
  #3
New Member
 
Daniele Marini
Join Date: Mar 2016
Posts: 4
Rep Power: 10
danlr46 is on a distinguished road
Quote:
Originally Posted by hjasak View Post
mkdir $FOAM_RUN
Yes I already did and this is what happens:

bash-4.1$ mkdir $FOAM_RUN
mkdir: cannot create directory `/home/docker/OpenFOAM/docker-v3.0+/run': No such file or directory

I also did this:
bash-4.1$ mkdir /home/docker
mkdir: cannot create directory `/home/docker': Permission denied

and this:

bash-4.1$ sudo mkdir /home/docker
bash: sudo: command not found

I also did the same using the csh:

[Orfeo:~] dan% sudo mkdir /home/docker
Password:
mkdir: /home/docker: Operation not supported

what else?
thanks
Daniele
danlr46 is offline   Reply With Quote

Old   April 1, 2016, 08:31
Default
  #4
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
Here is the solution :
i) Open the docker terminal via clicking on "Docker Quick Start" short cut .
ii) Delete old container: docker rm -f of_v3.0_plus
iii)Open installOpenFOAM_MAC scripts (attached here. unzip it before using )
in line 25, replace strings NAME with your user name as appears in mac i.e /Users/Name to /Users/alex assuming alex is user name
iv) run installOpenFOAM_MAC script as done earlier i.e
docker-machine ssh default $HOME/installOpenFOAM_MAC $HOME
v) Now run startOpenFOAM.sh script (http://openfoam.com/download/install-binary.php)
and you will be login as root.
vi) run following command to login as ofuser
su ofuser
Always work as ofuser to work on OpenFOAM

vii) Go inside the folder /home/ofuser/workingDir and follow following steps
a) mkdir OpenFOAM/ofuser-v3.0+/run
b) cd ..
c)ln -s workingDir/OpenFOAM (creating soft link to OpenFOAM/ofuser-v3.0+)

Note: Please note that all changes inside container will be lost once you delete the container by command "docker rm -f contName" except content in /home/ofuser/workingDir . So if you are making changes in /opt/OpenFOAM better be careful .

Attached Files
File Type: gz installOpenFOAM_MAC.gz (642 Bytes, 124 views)
pgh is offline   Reply With Quote

Old   April 4, 2016, 23:16
Default
  #5
New Member
 
shangyan
Join Date: Oct 2015
Posts: 6
Rep Power: 10
shangyan is on a distinguished road
Quote:
Originally Posted by danlr46 View Post
Hi
after updating Xquartz and OS X Yosemite ver. 10.10.5 (14F1605) on my MacBoo Air (endi 2010),

I have installed docker and openFoam following the instructions provided.
Nor trying to run openFOAM I execute:
> ./startOpenFOAM+

i get this message:
non-network local connections being added to access control list
of_v3.0_plus

now typing:
bash$ run
I get this other message:

bash: cd: /home/docker/OpenFOAM/docker-v3.0+/run: No such file or directory

I have tried to create the above directory in vane. Any help please?
Hi,danlr46.I met the same problem as yours.
I did not do as the "pgh" suggested (but I think it may work as well),but I fixed it another way(I do not know why lol...)
First, you need to remove your openfoam docker image totally.
Then, download the "installOpenFOAM+" from http://www.openfoam.com/download/install-binary.php
There are two script start with "docker run ..."
Use the second one,
which is "docker run -it -d --name ${containerName} --user=${user} -e USER=${user} -e QT_X11_NO_MITSHM=1 -e DISPLAY=${displayVar} --workdir="/home/${user}" --volume="${home}:/home/${user}" --volume="/etc/group:/etc/group:ro" --volume="/etc/passwd:/etc/passwd:ro" --volume="/etc/shadow:/etc/shadow:ro" --volume="/etc/sudoers.d:/etc/sudoers.d:ro" -v=/tmp/.X11-unix:/tmp/.X11-unix ${imageName} /bin/bash --rcfile /opt/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc"
And use "#" to comments the first one.
Other remain initial.
Next,run
"chmod +x installOpenFOAM+ "
and
" docker-machine ssh default $HOME/installOpenFOAM+ $HOME"


That's it.
shangyan is offline   Reply With Quote

Old   April 5, 2016, 04:47
Default Problem solved
  #6
New Member
 
Daniele Marini
Join Date: Mar 2016
Posts: 4
Rep Power: 10
danlr46 is on a distinguished road
Thanks to all replay the problem is solved.
Daniele
danlr46 is offline   Reply With Quote

Old   April 9, 2016, 17:50
Default
  #7
New Member
 
Ramón
Join Date: Jun 2015
Posts: 2
Rep Power: 0
raespl is on a distinguished road
I have same problem. None of the above worked. How did you solve it?

Thxs.
raespl is offline   Reply With Quote

Old   April 10, 2016, 05:06
Default
  #8
New Member
 
Daniele Marini
Join Date: Mar 2016
Posts: 4
Rep Power: 10
danlr46 is on a distinguished road
Quote:
Originally Posted by raespl View Post
I have same problem. None of the above worked. How did you solve it?

Thxs.
i) Open the docker terminal via clicking on Docker Quickstart shortcut . Make sure you are in the Docker Quickstart Terminal window

ii) Delete old container: docker rm -f of_v3.0_plus

iii) Open installOpenFOAM_MAC script.

in line 25, replace strings NAME with your user name as appears in mac i.e /Users/Name to /Users/alex assuming alex is user name
in line 13 change of_v3.0_plus1 to of_v3.0_plus

iv) run installOpenFOAM_MAC script as done earlier i.e
docker-machine ssh default $HOME/installOpenFOAM_MAC $HOME

v) Now run startOpenFOAM+ script and you will be login as root.

vi) Go insider workingDir and follow following step
a) mkdir OpenFOAM/ofuser-v3.0+/run (I had to make directories one by one, so first OpenFOAM then cd into it and make fuser-3.0+, cd uno it and make run
b) cd .. (up to home directory /home/ofuser)
c)ln -s workingDir/OpenFOAM (creating soft link to OpenFOAM/ofuser-v3.0+)

vii) run this command
su ofuser
and you will login as ofuser (Always work as ofuser to work)

Check carefully $HOME variable. When you try the first tutorials check also that variables $FOAM_RUN and $FOAM_TUTORIALS are coherent to your installation.

You can find the scripts in the attach of PGH answer.
Daniele
danlr46 is offline   Reply With Quote

Old   April 10, 2016, 12:58
Default
  #9
New Member
 
Ramón
Join Date: Jun 2015
Posts: 2
Rep Power: 0
raespl is on a distinguished road
It worked.

Thank you.
danlr46 likes this.
raespl is offline   Reply With Quote

Old   April 22, 2016, 01:55
Default
  #10
New Member
 
HUANG Junji
Join Date: Nov 2013
Posts: 4
Rep Power: 12
hjj3118 is on a distinguished road
Hi Daniele,

I tried your method, and it worked till the final step, ie I worked as ofuser. However, when I tried to run tutorials, I got "permission denied" when I tried to run
cp -r $FOAM_TUTORIALS $FOAM_RUN
What is the reason?
hjj3118 is offline   Reply With Quote

Old   April 22, 2016, 13:02
Default
  #11
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
Hi
Try to go inside $FOAM_RUN directory . i.e cd $FOAM_RUN
and then run command cp -ar $FOAM_TUTORIALS. Even if it denies permission,
then try to give all user permission to this folder i.e OpenFOAM/of-v3.0+ i.e to read and write
pgh is offline   Reply With Quote

Old   April 23, 2016, 23:50
Default
  #12
New Member
 
HUANG Junji
Join Date: Nov 2013
Posts: 4
Rep Power: 12
hjj3118 is on a distinguished road
Quote:
Originally Posted by pgh View Post
Hi
Try to go inside $FOAM_RUN directory . i.e cd $FOAM_RUN
and then run command cp -ar $FOAM_TUTORIALS. Even if it denies permission,
then try to give all user permission to this folder i.e OpenFOAM/of-v3.0+ i.e to read and write
Thanks.

But there is a problem here. Every time I create a new folder I have to give it permission in order to write into this folder. Do you ever encounter this problem?
hjj3118 is offline   Reply With Quote

Old   April 25, 2016, 10:17
Default
  #13
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
No.. I created a folder in Users\pgh with name Projects and provides read+ write permission to it for every user. I put all my project in this directory and it is working fine .
pgh is offline   Reply With Quote

Old   April 26, 2016, 14:22
Default
  #14
New Member
 
Thomas Evans
Join Date: Dec 2015
Posts: 21
Rep Power: 10
windscion is on a distinguished road
Quote:
Originally Posted by hjj3118 View Post
Thanks.
But there is a problem here. Every time I create a new folder I have to give it permission in order to write into this folder. Do you ever encounter this problem?
Had similar issue. My problem was that my folder was not owned by ofuser. It isn't enough to grant permission because new directories will not have those permissions: they will have the permissions granted by your mask. (And while it may be possible to set your mask to ultimate permissiveness, it is not recommended!) Therefore after doing "su ofuser" you need to create the directory under which you will be running. Then the new directories will be owned by ofuser and hopefully you will not have any problems.
Editted to note:
Hrmph. Seems my directory only exists inside the container. I am missing something regarding how stuff outside the container relates to stuff inside the container. I haven't figured out how to make the same directory visible on both sides and yet have correct permissions inside the container.
windscion is offline   Reply With Quote

Old   May 6, 2016, 10:00
Default
  #15
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
Hi .. use this script and it should work fine .

i)delete old container
docker rm -f of_v3.0_plus

ii) run new script attached here (unzip the script first)
Please place script in home folder and then run command from docker terminal as

docker-machine ssh default $HOME/installOpenFOAM+ $HOME


It will login as docker user and you can run openfoam and there will be no permission issue
Also you can login as root now . password for root : 0fuser2015

Let me know if it works or you face any issue
Attached Files
File Type: gz installOpenFOAM_MAC_pgh.gz (677 Bytes, 26 views)
Nann3r likes this.
pgh is offline   Reply With Quote

Old   May 18, 2016, 15:30
Default
  #16
New Member
 
Jeremy
Join Date: May 2016
Posts: 17
Rep Power: 9
j_moulton is on a distinguished road
Quote:
Originally Posted by pgh View Post
Hi .. use this script and it should work fine .

i)delete old container
docker rm -f of_v3.0_plus

ii) run new script attached here (unzip the script first)
Please place script in home folder and then run command from docker terminal as

docker-machine ssh default $HOME/installOpenFOAM+ $HOME


It will login as docker user and you can run openfoam and there will be no permission issue
Also you can login as root now . password for root : 0fuser2015

Let me know if it works or you face any issue
Hi, I'm also new to OpenFOAM. I tried this and while it seemingly worked, but if I try to run:

bash-4.1$ cp -r $FOAM_TUTORIALS $FOAM_RUN

I get:
cp: cannot create directory `/home/docker/Users/OpenFOAM/JMM-v3.0+/run': No such file or directory

This is a bit over my head and I'm confused as to what to try next.
j_moulton is offline   Reply With Quote

Old   May 18, 2016, 15:57
Default
  #17
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
Hi,,
It looks to me you are using old script still . please use new script attached earlie(Note to delete old container before running script )
When you run script see the message it throw. In case you still have issue , send snaphot of those message i.e one coming while running)

1. Note that script name is different here , so make sure you use following command which use name of script which was attached earlier
docker-machine ssh default $HOME/installOpenFOAM+_Mac_pgh $HOME

2. once you started container, i.e using ./start... ,, script

. First type mkdir -p $FOAM_RUN (it basically create a folder with name OpenFOAM/docker-v3.0+ in your home area ile C\User\JMM ..
pgh is offline   Reply With Quote

Old   May 18, 2016, 16:19
Default
  #18
New Member
 
Jeremy
Join Date: May 2016
Posts: 17
Rep Power: 9
j_moulton is on a distinguished road
Quote:
Originally Posted by pgh View Post
Hi,,
It looks to me you are using old script still . please use new script attached earlie(Note to delete old container before running script )
When you run script see the message it throw. In case you still have issue , send snaphot of those message i.e one coming while running)

1. Note that script name is different here , so make sure you use following command which use name of script which was attached earlier
docker-machine ssh default $HOME/installOpenFOAM+_Mac_pgh $HOME

2. once you started container, i.e using ./start... ,, script

. First type mkdir -p $FOAM_RUN (it basically create a folder with name OpenFOAM/docker-v3.0+ in your home area ile C\User\JMM ..
bash-4.1$ mkdir -p $FOAM_RUN
mkdir: cannot create directory `/home/docker/Users/OpenFOAM': Permission denied
bash-4.1$

I don't know how to change permissions to create this.
j_moulton is offline   Reply With Quote

Old   May 18, 2016, 18:09
Default
  #19
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
Which version of docker toolbox are you using ?

Go inside User folder and try to create a folder with name OpenFOAM
with following command
mkdir OpenFOAM
If it works , then copy tutorial inside this folder
cp -ar $FOAM_TUTORIALS .

and try to run some tutorial . Even if you face permission issue , send your problem to
docker@opencfd.co.uk. Some one from OpenCFD will look into this issue
pgh is offline   Reply With Quote

Old   June 7, 2016, 19:44
Default [Solved] Permissions Issues OS-X 10.11.5
  #20
New Member
 
Nick Hanson
Join Date: Jul 2013
Posts: 2
Rep Power: 0
Nann3r is on a distinguished road
Just successfully installed OF+ on OS-X 10.11.5 (El Capitan). This should work for Yosemite as well. Following the OpenFOAM official instructions, I kept running into the familiar permissions issues. Much thanks to pgh for the modified script/instructions found earlier in this thread. Here is a recap of the procedure to get OF running on Docker. This is assuming you already have Docker successfully installed.

0) Check you have the docker daemon running:

Code:
docker info
If not, go to Launchpad > Docker QuickStart Terminal and verify using the above script again.

1) In terminal, delete the old OF container (even if you haven't tried to create a container yet, it wont hurt):

Code:
docker rm -f of_v3.0_plus
2) Check that the old container was indeed removed:

Code:
docker ps -a
3) Download the start script startOpenFoam+_MAC as well as pgh's modified install script installOpenFOAM_MAC_pgh.gz. Unzip pgh's script first, then place both scripts in your home directory (just as you would for the official OpenFOAM installation).

4) From Docker terminal, run the following commands to make the scripts executable:

Code:
chmod +x installOpenFOAM_MAC_pgh
Code:
chmod +x startOpenFOAM+_MAC
5) Create the Docker container:

Code:
docker-machine ssh default $HOME/installOpenFOAM_MAC_pgh $HOME
With luck, there should be no permissions issues.

6) Start the Docker container with the following script:

Code:
./startOpenFOAM+_MAC
which should also open a new shell and OpenFOAM environment.

7) You should now be able to create a run directory, hopefully without permissions issues

Code:
mkdir -p $FOAM_RUN
Follow the remainder of the OF guide to test run cavity case
pgh and JxW like this.
Nann3r is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Problem in installing OpenFOAM 2.3.0 !!! omid20110 OpenFOAM Installation 6 August 1, 2016 12:20
[swak4Foam] foam-extend-3.2 installing problem: swak4Foam failed to install due to Bison lxwd OpenFOAM Community Contributions 1 March 20, 2016 17:03
Problem with installing OpenFOAM 2.0.X mohsen.boojari OpenFOAM Installation 3 February 3, 2016 12:41
Problem installing OpenFOAM-1.6-ext on Ubuntu 14.04 afrotimy OpenFOAM Installation 4 October 4, 2014 12:36
Problem in installing OpenFOAM-ParaView-0.1.1-1.x86_64 hassan5565 OpenFOAM Installation 1 August 5, 2014 14:05


All times are GMT -4. The time now is 08:58.