CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM installation on Mac OS X 10.6.6 Snow Leopard (https://www.cfd-online.com/Forums/openfoam-installation/84959-openfoam-installation-mac-os-x-10-6-6-snow-leopard.html)

umassche February 13, 2011 12:35

OpenFOAM installation on Mac OS X 10.6.6 Snow Leopard
 
I'm following this method to install OpenFOAM 1.7.1: http://openfoamwiki.net/index.php/Ho...enFOAM_v17_Mac

When i execute the following comand in terminal,
source etc/bashrc

I get the following,
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamEtcFile: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/etc/settings.sh: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/etc/aliases.sh: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/etc/apps/paraview3/bashrc: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/etc/apps/ensight/bashrc: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory


WHY IS THIS??? I'm sorry i'm new to any kind of coding whatsoever. I think the problem is I haven't properly specified the "foamInstall" variable where it's default value was like this,
foamInstall=$HOME/$WM_PROJECT

How do u think I should fix it?

gschaider February 14, 2011 04:27

Quote:

Originally Posted by umassche (Post 295050)
I'm following this method to install OpenFOAM 1.7.1: http://openfoamwiki.net/index.php/Ho...enFOAM_v17_Mac

When i execute the following comand in terminal,
source etc/bashrc

I get the following,
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamEtcFile: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/etc/settings.sh: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/etc/aliases.sh: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/etc/apps/paraview3/bashrc: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/etc/apps/ensight/bashrc: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
-bash: /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory


WHY IS THIS??? I'm sorry i'm new to any kind of coding whatsoever. I think the problem is I haven't properly specified the "foamInstall" variable where it's default value was like this,
foamInstall=$HOME/$WM_PROJECT

How do u think I should fix it?

My guess is that your installation isn't at $HOME/$WM_PROJECT

First thing: what does 'pwd' say? /Users/John/OpenFOAM/OpenFOAM-1.7.1/ I hope
Second thing: check with 'ls /Users/John/OpenFOAM/OpenFOAM-1.7.1/bin/foamEtcFile' whether the file is really missing. If not remove one element at a time from the right of the path until you hit the jackpot.

atareen64 March 18, 2011 10:52

Hi John, and anybody,

I am getting the same No such file or directory error. Did you have any luck fixing the error? Is the path supposed to specify where openfoam is to be installed? If not than what is it specifying? I went to location to check if the files were there, and they were. I don't understand why it's giving me this error when I run 'source etc/bashrc'.

Please help.
-Ammar.

umassche March 18, 2011 12:58

no i didnt want to waste too much time trying to fixing it. i just resorted to an easy installation rather than compiling it. if u like i can give u the link

atareen64 March 18, 2011 13:00

Would love the link!
 
Yes absolutely, I would love to have that link.
Can you post it here? If not you can email it to me.

atareen64@gmail.com

Best regards,
Ammar.

umassche March 18, 2011 13:49

http://www.ifd.mavt.ethz.ch/educatio...foam/of-macosx

atareen64 March 18, 2011 15:24

Thank you!!!

liguifan June 29, 2011 02:07

Hi John,

I follow the instruction on that site, but I keep getting the following error:

"hdiutil: attach failed - Resource busy
/dev/disk3 GUID_partition_scheme
/dev/disk3s1 EFI
/dev/disk3s2 Apple_HFS /Users/<myname>/OpenFOAM/liguifan-1.7.x
-bash: /Users/<myname>/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: No such file or directory
"

I have no idea why it is like this, can you give me some suggestions?

Thanks

gschaider June 29, 2011 09:15

Quote:

Originally Posted by liguifan (Post 313988)
Hi John,

I follow the instruction on that site, but I keep getting the following error:

"hdiutil: attach failed - Resource busy
/dev/disk3 GUID_partition_scheme
/dev/disk3s1 EFI
/dev/disk3s2 Apple_HFS /Users/<myname>/OpenFOAM/liguifan-1.7.x
-bash: /Users/<myname>/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc: No such file or directory
"

I have no idea why it is like this, can you give me some suggestions?

Thanks

Does it really say "<myname>" in the output. I don't know this distro, but I'd suggest you'd reread the README

liguifan July 1, 2011 04:33

Quote:

Originally Posted by gschaider (Post 314061)
Does it really say "<myname>" in the output. I don't know this distro, but I'd suggest you'd reread the README

Hi Bernhard,

It doesn't appear <my name>, it is actually my computer name there.

I download the second resource and rereda the README, it works finally. Thanks for that.


All times are GMT -4. The time now is 17:04.