|
[Sponsors] |
March 6, 2012, 15:24 |
Allwmake path error
|
#1 |
New Member
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14 |
Hi all,
I have problems with the environment variables when running ./Allwmake. I know this problem has been posted many times, but I can't solve it. I am quite new in Ubuntu, so I apply for patiennce I have tried to install open foam in two directories (I prefer /usr/local but I also tried in Home): /usr/local/OpenFoam (and make a chown for permisions) ~/OpenFoam In none of them worked out. I followed this steps 1. I downloaded openFoam and ThirdParty Source Packs in the mentioned directories above 2. I unpacked tar xzf OpenFOAM-2.1.0.tgz tar xzf ThirdParty-2.1.0.tgz 3. I installed all the dependencies for ubuntu 11.04 http://www.openfoam.org/download/source.php 4. I hadded the line below to the end of ~/.bashrc file (I will only continue posting the installation in my home directory) ... source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc 5. I tried typing "source $HOME/.bashrc" in terminal but responds "No such a file or directory". I tried with "source ~/.bashrc" and the same output. I don't know why. 6. I execute the foamSystemCheck script and it is fine System check: PASS ================== Continue OpenFOAM installation. 7. Now, I put this in the Terminal ...Aspire-5742:~/OpenFoam/OpenFOAM-2.1.0$ ./Allwmake ./Allwmake: 9: wmakeCheckPwd: not found Error: Current directory is not $WM_PROJECT_DIR The environment variables are inconsistent with the installation. Check the OpenFOAM entries in your dot-files and source them. I have looked arround in posts and tried several things on my own, but I feel useless. Can anybody help me, please? |
|
March 6, 2012, 15:54 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Ima and welcome to the forum!
By what I understand, here are the steps I suggest:
Bruno
__________________
Last edited by wyldckat; March 6, 2012 at 15:55. Reason: had a messed up phrase in point #1 |
|
March 6, 2012, 19:06 |
|
#3 |
New Member
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14 |
Interesting. I did as you suggested. Here it goes.
1. Code:
ima@ima-Aspire-5742:~$ cd ima@ima-Aspire-5742:~$ pwd /home/ima ima@ima-Aspire-5742:~$ ls -l .bashrc -rw-r--r-- 1 ima ima 3421 2012-03-06 19:23 .bashrc Code:
ima@ima-Aspire-5742:~$ source .bashrc bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc: No such file or directory ima@ima-Aspire-5742:~$ type source source is a shell builtin 4. Code:
ima@ima-Aspire-5742:~$ ls -l $HOME/OpenFoam/OpenFOAM-2.1.0/etc/bashrc -rw-r----- 1 ima ima 7226 2011-11-24 16:59 /home/ima/OpenFoam/OpenFOAM-2.1.0/etc/bashrc Code:
ima@ima-Aspire-5742:~$ source $HOME/OpenFoam/OpenFOAM-2.1.0/etc/bashrc bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/bin/foamEtcFile: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/etc/config/settings.sh: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/etc/config/aliases.sh: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/bin/foamEtcFile: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/bin/foamEtcFile: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/bin/foamCleanPath: No such file or directory |
|
March 7, 2012, 04:27 |
|
#4 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
If you check the differences between
Code:
ima@ima-Aspire-5742:~$ source .bashrc bash: /home/ima/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc: No such file or directory Code:
ima@ima-Aspire-5742:~$ ls -l $HOME/OpenFoam/OpenFOAM-2.1.0/etc/bashrc -rw-r----- 1 ima ima 7226 2011-11-24 16:59 /home/ima/OpenFoam/OpenFOAM-2.1.0/etc/bashrc OpenFOAM is not the same as OpenFoam. Quite common mistake. EDIT: To make my post more clear, you should have installed in $HOME/OpenFOAM, while you installed in $HOME/OpenFoam. |
|
March 7, 2012, 07:10 |
|
#5 |
New Member
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14 |
OMG!! I can't believe I spent so much time because of this. I deleted and started again so many times!
thank both of you anon_a and Wyldckat |
|
March 22, 2012, 08:52 |
|
#6 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
Hello everybody!
I'm new in this forum and I've to start by saying that I'm also new about Linux (I'm working on Debian, Squeeze). I found this discussion because I have the same problem of Ima, only that mine isn't a problem of "names" of the folders. Infact I have: claudio87@PC-Claudio:~$ source .bashrc bash: source*/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc: No such file or directory claudio87@PC-Claudio:~$ ls -l $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc -rw-r----- 1 claudio87 claudio87 7261 21 mar 12.11 /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc They are the same! So, it seems that the directory exists, only that it isn't seen! I tried to do what Bruno suggest in the second post, and there are no errors!! With the line source*$HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc in $HOME/.bashrc I obtain this: [ claudio87@PC-Claudio:~/OpenFOAM/OpenFOAM-2.1.0$ cd claudio87@PC-Claudio:~$ pwd /home/claudio87 claudio87@PC-Claudio:~$ ls -l .bashrc -rw-r--r-- 1 claudio87 claudio87 3235 22 mar 12.58 .bashrc claudio87@PC-Claudio:~$ source .bashrc bash: source*/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc: No such file or directory ] Without the line: [ claudio87@PC-Claudio:~$ source .bashrc #returns nothing #and then claudio87@PC-Claudio:~$ ls -l $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc -rw-r----- 1 claudio87 claudio87 7261 21 mar 12.11 /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc claudio87@PC-Claudio:~$ source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc #with no errors back! ] So, just to try, I trew the ./Allwmake but now I obtain only a lot of compilation errors of this type: 'make: *** [ --- ] Error 2' or 'Error 1' with at the end 'make: Target `application' not remade because of errors.' Can anybody help me, please?! Thanks a lot! |
|
March 22, 2012, 08:53 |
|
#7 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
Hello everybody!
I'm new in this forum and I've to start by saying that I'm also new about Linux (I'm working on Debian, Squeeze). I found this discussion because I have the same problem of Ima, only that mine isn't a problem of "names" of the folders. Infact I have: claudio87@PC-Claudio:~$ source .bashrc bash: source*/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc: No such file or directory claudio87@PC-Claudio:~$ ls -l $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc -rw-r----- 1 claudio87 claudio87 7261 21 mar 12.11 /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc They are the same! So, it seems that the directory exists, only that it isn't seen! I tried to do what Bruno suggest in the second post, and there are no errors!! With the line source*$HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc in $HOME/.bashrc I obtain this: [ claudio87@PC-Claudio:~/OpenFOAM/OpenFOAM-2.1.0$ cd claudio87@PC-Claudio:~$ pwd /home/claudio87 claudio87@PC-Claudio:~$ ls -l .bashrc -rw-r--r-- 1 claudio87 claudio87 3235 22 mar 12.58 .bashrc claudio87@PC-Claudio:~$ source .bashrc bash: source*/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc: No such file or directory ] Without the line: [ claudio87@PC-Claudio:~$ source .bashrc #returns nothing #and then claudio87@PC-Claudio:~$ ls -l $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc -rw-r----- 1 claudio87 claudio87 7261 21 mar 12.11 /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc claudio87@PC-Claudio:~$ source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc #with no errors back! ] So, just to try, I trew the ./Allwmake but now I obtain only a lot of compilation errors of this type: 'make: *** [ --- ] Error 2' or 'Error 1' with at the end 'make: Target `application' not remade because of errors.' Can anybody help me, please?! Thanks a lot! |
|
March 22, 2012, 09:51 |
|
#8 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
Replace the star in
Code:
source*/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc |
|
March 22, 2012, 10:30 |
|
#9 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
I obtain again this:
bash: source*/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc: No such file or directory |
|
March 22, 2012, 10:31 |
|
#10 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
I obtain again this:
bash: source*/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc: No such file or directory |
|
March 22, 2012, 11:03 |
|
#11 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
Replacing the star with the space
source /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc the terminal returns nothing. And this happen in both cases, if I put or not the line source*$HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc in my $HOME/.bashrc file. I don't know if it's important or not, but when I edit $HOME/.bashrc I have some errors: error: line 3: bad flagvector error: line 7: bad flagvector error: line 10: bad flagvector error: line 12: bad flagvector error: line 14: bad flagvector error: line 16: bad flagvector error: line 21: bad flagvector error: line 26: bad flagvector error: line 3: bad flagvector error: line 7: bad flagvector error: line 10: bad flagvector error: line 12: bad flagvector error: line 14: bad flagvector error: line 16: bad flagvector error: line 21: bad flagvector error: line 26: bad flagvector |
|
March 22, 2012, 11:45 |
|
#12 | |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
I should have explained this in more detail I guess.
There is no such thing as Code:
source*$HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc You have to separate them with a space character, always. The asterisk is completely wrong, no matter where you write it (in the terminal window or in the .bashrc file). The message "No such file or directory" in this case means that it is looking for the command "source*$HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc" (which does not exist) instead of the command "source" with the file argument "$HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc". Quote:
|
||
March 22, 2012, 11:58 |
|
#13 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
Understood, and this is what I obtain:
claudio87@PC-Claudio:~$ source /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/ect/bashrc bash: /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/ect/bashrc: No such file or directory without star. |
|
March 22, 2012, 12:00 |
|
#14 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
Change ect to etc in the last command... :-D
|
|
March 22, 2012, 12:12 |
|
#15 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
:-o........ you're right!
Now it's ok...about this! I tried with ./Allwmake and now appears this kind of compilation errors: 'make: *** [ --- ] Error 2' or 'Error 1' with at the end 'make: Target `application' not remade because of errors. Then, I tried to run foamInstallationTest and the result is: claudio87@PC-Claudio:~/OpenFOAM/OpenFOAM-2.1.0/bin$ ./foamInstallationTest Executing ./foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: PC-Claudio OS: Linux version 2.6.32-5-amd64 ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/claudio87/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/claudio87/OpenFOAM/claudio87-2.1.0 no no $WM_THIRD_PARTY_DIR .../claudio87/OpenFOAM/ThirdParty-2.1.0 yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/claudio87/OpenFOAM/OpenFOAM-2.1.0 yes yes yes $FOAM_APPBIN ...-2.1.0/platforms/linux64GccDPOpt/bin yes yes yes $FOAM_SITE_APPBIN .../2.1.0/platforms/linux64GccDPOpt/bin no no $FOAM_USER_APPBIN ...-2.1.0/platforms/linux64GccDPOpt/bin no no $WM_DIR ...udio87/OpenFOAM/OpenFOAM-2.1.0/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...-2.1.0/platforms/linux64GccDPOpt/lib yes yes yes $FOAM_SITE_LIBBIN .../2.1.0/platforms/linux64GccDPOpt/lib no no $FOAM_USER_LIBBIN ...-2.1.0/platforms/linux64GccDPOpt/lib no no $MPI_ARCH_PATH /usr/lib/openmpi yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- flex 2.5.35 /usr/bin/flex gcc 4.4.5 /usr/bin/gcc gzip 1.3.12 /bin/gzip tar 1.23 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). Review the output for warning messages and consult the installation guide for troubleshooting. Done Which is this 'critical error'? or better, what I can do now to resolve it?! (thanks for your patience, but are 3 days that I try to install it!!) |
|
March 22, 2012, 12:24 |
|
#16 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
I am not sure I can help, but doesn't anything appear before 'make: *** [ --- ] Error 2' or 'Error 1'? Usually there is an explanation about the error before that! That is, you are giving incomplete information.
Perhaps you could post here a (small!) part of the compilation process around the errors. |
|
March 22, 2012, 12:36 |
|
#17 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
This is related to the last part of the process.
make[1]: Entering directory `/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/applications/solvers/stressAnalysis' make[2]: Entering directory `/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/applications/solvers/stressAnalysis/solidDisplacementFoam' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -ItractionDisplacement/lnInclude -IlnInclude -I. -I/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/tractionDisplacementFvPatchVectorField.o Make/linux64GccDPOpt/solidDisplacementFoam.o -L/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lOpenFOAM -ldl -lm -o /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/solidDisplacementFoam /usr/bin/ld: cannot find -lfiniteVolume collect2: ld returned 1 exit status make[2]: *** [/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/solidDisplacementFoam] Error 1 make[2]: Leaving directory `/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/applications/solvers/stressAnalysis/solidDisplacementFoam' make[1]: *** [solidDisplacementFoam] Error 2 make[2]: Entering directory `/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam' g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/src/finiteVolume/lnInclude -ItractionDisplacementCorrectionStress -I../solidDisplacementFoam -IlnInclude -I. -I/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/tractionDisplacementCorrectionFvPatchVectorField.o Make/linux64GccDPOpt/solidEquilibriumDisplacementFoam.o -L/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lOpenFOAM -ldl -lm -o /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam /usr/bin/ld: cannot find -lfiniteVolume collect2: ld returned 1 exit status make[2]: *** [/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/solidEquilibriumDisplacementFoam] Error 1 make[2]: Leaving directory `/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam' make[1]: *** [solidEquilibriumDisplacementFoam] Error 2 make[1]: Target `application' not remade because of errors. make[1]: Leaving directory `/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/applications/solvers/stressAnalysis' make: *** [stressAnalysis] Error 2 make: Target `application' not remade because of errors. It seems to repeat the same kind of error with all the previous directories. But I can't understand which are the errors... |
|
March 22, 2012, 12:49 |
|
#18 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
Sorry, I can't give you any definite help with that. I am sure that Bruno (wyldcat) would have the answer for this in 2 seconds :-)
Just some questions that might help (but don't count on it): (i) have you restarted your console after writing the .bashrc line? (ii) have you tried before to re-install OpenFOAM multiple times? because that's what "Conflicting installations" sounds like to me. Maybe you installed in different directories and forgot to remove the second .bashrc line? you can only have one OpenFOAM path in .bashrc |
|
March 22, 2012, 13:10 |
|
#19 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
(i) I restarted the console, but the result doesn't change.
(ii) This is the first time that I try to install OpenFOAM (even if I tried to run the Allwmake file lots of times...); in any case, I'm sure I have only one directory for OpenFOAM. |
|
March 22, 2012, 13:22 |
|
#20 |
Disabled
Join Date: Mar 2011
Posts: 174
Rep Power: 15 |
Check this thread:
http://www.cfd-online.com/Forums/ope...tallation.html He was also using Debian-Squeeze, got the same message and was missing a package after all. Have you checked that all the packages mentioned in the instructions are properly installed? |
|
Tags |
allwmake, installation, ubuntu 11.04 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 14:21 |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 12:39 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |