|
[Sponsors] |
[OpenFOAM.org] Can't find files when install OF2.1.1 on Mac |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 9, 2012, 14:31 |
Can't find files when install OF2.1.1 on Mac
|
#1 |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
hello everyone,
This day i tried to install OF2.1.1 on Mac, I followed the instruction as posted http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac the first problem is I do not know what the measning of "Add executive rights to a python script like this:" but I run the commands just as the attached picture showed . when I run the source command "~ of$ . OpenFOAM/OpenFOAM-2.1.1/etc/bashrc" it said that like this of$ . OpenFOAM/OpenFOAM-2.1.1/etc/bashrc -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/etc/config/settings.sh: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/etc/config/aliases.sh: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory I checked the ~/bin folder, there are exist the above files. Can somebody tell me what's wrong with me? THank you! Wei Last edited by hewei; July 9, 2012 at 15:19. |
|
July 9, 2012, 18:25 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Wei,
I've updated a bit the tutorial to make it more explicit about the details related to the python script you mentioned. As for the error output you've posted, the "OpenFOAM-2.1.1" folder is repeated: Quote:
Best regards, Bruno
__________________
|
||
July 10, 2012, 04:44 |
|
#3 | |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
Hello Bruno,
I did as your new instructions,but at the step 2.5 source bashrc, it meet some problems hermes:~ of$ ./OpenFOAM/OpenFOAM-2.1.1/etc/bashrc -bash: ./OpenFOAM/OpenFOAM-2.1.1/etc/bashrc: Permission denied I then directly go in the directory of OpenFOAM-2.1.1 and run the command . etc/bashrc and source etc/bashrc OpenFOAM-2.1.1 of$ source etc/bashrc -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/etc/config/settings.sh: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/etc/config/aliases.sh: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamEtcFile: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory -bash: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1/bin/foamCleanPath: No such file or directory now I really do not know what's the reason. Wei Quote:
|
||
July 10, 2012, 05:17 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Can you attach your "bashrc" file from OpenFOAM's folder to your next post?
__________________
|
|
July 10, 2012, 05:54 |
|
#5 | |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
Quote:
#----------------------------------*-sh-*-------------------------------------- # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | # \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License # This file is part of OpenFOAM. # # OpenFOAM is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # OpenFOAM is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU General Public License # along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. # # File # etc/bashrc # # Description # Startup file for OpenFOAM # Sourced from ~/.profile or ~/.bashrc # Should be usable by any POSIX-compliant shell (eg, ksh) # #------------------------------------------------------------------------------ export WM_PROJECT=OpenFOAM export WM_PROJECT_VERSION=2.1.1 ################################################## ############################## # USER EDITABLE PART: Changes made here may be lost with the next upgrade # # either set $FOAM_INST_DIR before sourcing this file or set # 'foamInstall' below to where OpenFOAM is installed # # Location of the OpenFOAM installation # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foamInstall=$HOME/$WM_PROJECT # foamInstall=~$WM_PROJECT # foamInstall=/opt/$WM_PROJECT # foamInstall=/usr/local/$WM_PROJECT # # END OF (NORMAL) USER EDITABLE PART ################################################## ############################## ulimit -n 1024 export WM_NCOMPPROCS=4 # # These are the defaults for this version which should generally be # overridden from the prefs.sh file or from command-line specification # #- note the location for later use (eg, in job scripts) : ${FOAM_INST_DIR:=$foamInstall}; export FOAM_INST_DIR #- Compiler location: # foamCompiler= system | ThirdParty (OpenFOAM) foamCompiler=system #- Compiler: # WM_COMPILER = Gcc | Gcc43 | Gcc44 | Gcc45 | Gcc46 | Clang | Icc (Intel icc) export WM_COMPILER=Gcc46 unset WM_COMPILER_ARCH WM_COMPILER_LIB_ARCH #- Architecture: # WM_ARCH_OPTION = 32 | 64 export WM_ARCH_OPTION=64 #- Precision: # WM_PRECISION_OPTION = DP | SP export WM_PRECISION_OPTION=DP #- Optimised, debug, profiling: # WM_COMPILE_OPTION = Opt | Debug | Prof export WM_COMPILE_OPTION=Opt #- MPI implementation: # WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI # | GAMMA | MPI | QSMPI export WM_MPLIB=OPENMPI #- Operating System: # WM_OSTYPE = POSIX | ??? export WM_OSTYPE=POSIX #- Floating-point signal handling: # set or unset export FOAM_SIGFPE= #- memory initialisation: # set or unset #export FOAM_SETNAN= ################################################## ############################## # The old dirs to be cleaned from the various environment variables # - remove anything under top-level directory. # NB: the WM_PROJECT_INST_DIR might not be identical between versions foamOldDirs="$FOAM_INST_DIR $WM_PROJECT_SITE $HOME/$WM_PROJECT/$USER" if [ "$WM_PROJECT_INST_DIR" != "$FOAM_INST_DIR" ] then foamOldDirs="$WM_PROJECT_INST_DIR $foamOldDirs" fi # Location of installation # ~~~~~~~~~~~~~~~~~~~~~~~~ export WM_PROJECT_INST_DIR=$FOAM_INST_DIR export WM_PROJECT_DIR=$WM_PROJECT_INST_DIR/$WM_PROJECT-$WM_PROJECT_VERSION # Location of third-party software # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ export WM_THIRD_PARTY_DIR=$WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION # Location of site-specific templates etc # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # unset is equivalent to $WM_PROJECT_INST_DIR/site if [ -d "$WM_PROJECT_SITE" ] then export WM_PROJECT_SITE else unset WM_PROJECT_SITE fi # Location of user files # ~~~~~~~~~~~~~~~~~~~~~~ export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION # Source files, possibly with some verbosity _foamSource() { while [ $# -ge 1 ] do [ "$FOAM_VERBOSE" -a "$PS1" ] && echo "Sourcing: $1" . $1 shift done } # Evaluate command-line parameters _foamEval() { while [ $# -gt 0 ] do case "$1" in -*) # stray option (not meant for us here) -> get out break ;; *=) # name= -> unset name [ "$FOAM_VERBOSE" -a "$PS1" ] && echo "unset ${1%=}" eval "unset ${1%=}" ;; *=*) # name=value -> export name=value [ "$FOAM_VERBOSE" -a "$PS1" ] && echo "export $1" eval "export $1" ;; *) # filename: source it if [ -f "$1" ] then _foamSource "$1" else _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile -silent "$1"` fi ;; esac shift done } # Add in preset user or site preferences: _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile prefs.sh` # Evaluate command-line parameters and record settings for later # these can be used to set/unset values, or specify alternative pref files export FOAM_SETTINGS="$@" _foamEval $@ # Clean standard environment variables (PATH, LD_LIBRARY_PATH, MANPATH) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ foamClean=$WM_PROJECT_DIR/bin/foamCleanPath #- Clean PATH cleaned=`$foamClean "$PATH" "$foamOldDirs"` && PATH="$cleaned" #- Clean LD_LIBRARY_PATH cleaned=`$foamClean "$LD_LIBRARY_PATH" "$foamOldDirs"` \ && LD_LIBRARY_PATH="$cleaned" #- Clean MANPATH cleaned=`$foamClean "$MANPATH" "$foamOldDirs"` && MANPATH="$cleaned" if [[ `uname -s` == "Darwin" ]] then cleaned=`$foamClean "$DYLD_LIBRARY_PATH" "$foamOldDirs"` && DYLD_LIBRARY_PATH="$cleaned" fi export PATH LD_LIBRARY_PATH MANPATH # Source project setup files # ~~~~~~~~~~~~~~~~~~~~~~~~~~ _foamSource $WM_PROJECT_DIR/etc/config/settings.sh _foamSource $WM_PROJECT_DIR/etc/config/aliases.sh # Source user setup files for optional packages # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/paraview.sh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/ensight.sh` # Clean environment paths again. Only remove duplicates # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ #- Clean PATH cleaned=`$foamClean "$PATH"` && PATH="$cleaned" #- Clean LD_LIBRARY_PATH cleaned=`$foamClean "$LD_LIBRARY_PATH"` && LD_LIBRARY_PATH="$cleaned" #- Clean MANPATH (trailing ':' to find system pages) cleaned=`$foamClean "$MANPATH"`: && MANPATH="$cleaned" export PATH LD_LIBRARY_PATH MANPATH #- Clean LD_PRELOAD if [ -n "$LD_PRELOAD" ] then cleaned=`$foamClean "$LD_PRELOAD"` && LD_PRELOAD="$cleaned" export LD_PRELOAD fi # cleanup environment: # ~~~~~~~~~~~~~~~~~~~~ unset cleaned foamClean foamInstall foamOldDirs unset _foamSource _foamEval export WM_CC='gcc-mp-4.6' export WM_CXX='g++-mp-4.6' # ----------------------------------------------------------------- end-of-file |
||
July 10, 2012, 06:05 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Mmm... nothing seems to have been modified in this file.
OK, what do these commands output, after you've done "source etc/bashrc": Code:
echo $WM_PROJECT_INST_DIR ls -l ~/OpenFOAM ls -l ~/OpenFOAM/OpenFOAM-2.1.1 ls -l ~/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1 The second one is for knowing whether the folder "OpenFOAM-2.1.1" is located there or if there is a link there instead. The third one is to check what's inside the expected folder. The fourth one is to confirm if there is something there or not. By the way, do you have any other OpenFOAM version installed in your machine? Or in other words, does you "~/.bashrc" file already have any other reference to other OpenFOAM installations?
__________________
|
|
July 10, 2012, 06:14 |
|
#7 | |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
Hi Bruno,
I am now trying another way, I do like this, first setup a file .profile, write some commands like this export FOAM_INST_DIR=/Users/of/OpenFOAM foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.1.1/etc/bashrc [ -f $foamDotFile ] && source $foamDotFile then go to the directory of OpenFOAM-2.1.1 and run ./Allwmake, it works, I am waiting for the result now. and give a respond as soon as possible. Thank you very much, Wei. Quote:
|
||
July 10, 2012, 06:36 |
|
#8 | |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
Quote:
/Users/of/OpenFOAM hermes:OpenFOAM-2.1.1 of$ ls -l ~/OpenFOAM lrwxr-xr-x 1 of staff 22 Jul 9 18:38 /Users/of/OpenFOAM -> /Volumes/OpenFOAM-v2.1 hermes:OpenFOAM-2.1.1 of$ ls -l ~/OpenFOAM/OpenFOAM-2.1.1 total 200 -rwxr-xr-x@ 1 of staff 923 May 24 16:51 Allwmake -rw-r--r--@ 1 of staff 35647 May 24 16:51 COPYING -rw-r--r--@ 1 of staff 4174 Jan 1 2012 OpenFOAM-2.1.x-Mac-gcc46.patch -rw-r--r--@ 1 of staff 37974 Jan 1 2012 OpenFOAM-2.1.x-Mac.patch -rw-r--r--@ 1 of staff 6522 May 24 16:51 README.html -rw-r--r--@ 1 of staff 1585 May 24 16:51 README.org drwxr-xr-x@ 5 of staff 204 May 24 16:51 applications drwxr-xr-x@ 3 of staff 2176 Jul 10 09:21 bin drwxr-xr-x@ 6 of staff 272 May 24 16:51 doc drwxr-xr-x@ 5 of staff 340 Jul 10 10:38 etc drwxr-xr-x@ 32 of staff 1122 May 24 16:51 src drwxr-xr-x@ 16 of staff 646 May 24 16:51 tutorials drwxr-xr-x@ 6 of staff 816 Jul 10 11:06 wmake hermes:OpenFOAM-2.1.1 of$ ls -l ~/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1 ls: /Users/of/OpenFOAM/OpenFOAM-2.1.1/OpenFOAM-2.1.1: No such file or directory OMG!!the above two methods are all failed. It seems there is no OpenFOAM-2.1.1 in the folder of "Users/of/OpenFOAM/OpenFOAM-2.1.1/" |
||
July 10, 2012, 10:09 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Wei,
OK, there doesn't seem to be a problem with the linking of the folders. I forgot to ask, but what do these output: Code:
echo $FOAM_INST_DIR echo $WM_PROJECT_VERSION echo $WM_PROJECT_INST_DIR echo $WM_PROJECT_DIR Best regards, Bruno
__________________
|
|
July 11, 2012, 11:19 |
|
#10 | |
Member
Join Date: May 2010
Posts: 74
Rep Power: 16 |
Hello Bruno and others warm heart friends
Sorry not reply you timely.there is no other version OF installed before(at that time am already crazy and confused in my brain). Alter struggles too much hours, I eventually find the big "bug" of my computer that, there is no exist Xcode at all!!! I thought if I run the commands in step 1 2 and 3 is enough, but it seems not suitable to me. After modified the bashrc, and source it ,it maybe occur sth . OpenFOAM/OpenFOAM-2.1.1/etc/bashrc Unknown WM_ARCH_OPTION 64export, should be 32 or 64 then I just deleted the "export" in bashrc. After drinking too much cafe, the OpenFOAM works very well. Quote:
|
||
June 3, 2016, 07:50 |
|
#11 |
New Member
Join Date: Jul 2013
Posts: 8
Rep Power: 13 |
This error got resolved when I unloaded the environment settings for another version of OpenFOAM and reloaded the bashrc of the new version which I wanted to install.
Thanks Bruno !! |
|
Tags |
of2.1 foamcleanpath |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to make a code parallel? | Bruno Machado | Fluent UDF and Scheme Programming | 15 | May 27, 2016 10:18 |
Questions regarding to install OpenFOAMv2.3.0 in Mac Mavericks | JianT88 | OpenFOAM Installation | 1 | June 8, 2014 06:25 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
how to find udf.h' files by computer | wanghong | FLUENT | 1 | March 21, 2005 03:53 |
How do I download the install files? | Jas | Phoenics | 1 | October 27, 2000 12:15 |