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

[foam-extend.org] Installing foam-extend 3.1 on Ubuntu 14.04

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2015, 05:34
Default Installing foam-extend 3.1 on Ubuntu 14.04
  #1
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Hello everyone,

yesterday I tried to install foam-extend-3.1 this page: http://sourceforge.net/p/openfoam-ex...u/Ubuntu_14.04

Befor I did the installation I installed Ubuntu 14.04 again.

I folowed all steps and the installation worked. Unfortunately when I want to try openfoam extend 3.1 there is allways the mistake: command not found.

Do I have to recall the openfoam environment? Or did I do something wrong while the installation?

If one of you might help me, I would be very grateful!

Thank you for your help!

Best regards,
Stephie
stephie is offline   Reply With Quote

Old   April 15, 2015, 06:16
Default
  #2
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Okay, so I have to say, my computer turned off while the first installation. At this morning I repeat the last step : ./Allwmake.firstInstall

Now, I repeat this step again and here here are the last lines of the terminal.. there are many mistakes.



/thermophysicalModels/reactionThermo/lnInclude -IlnInclude -I. -I/home/stephanie/foam/foam-extend-3.1/src/foam/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/chemkinToFoam.o -L/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt \
-lreactionThermophysicalModels -lbasicThermophysicalModels -lspecie -lfoam -liberty -ldl -lrt -lm -o /home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/chemkinToFoam
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/stephanie/foam/foam-extend-3.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/stephanie/foam/foam-extend-3.1/src/foam/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/stressDifferences.o -L/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt \
-lfiniteVolume -lfoam -liberty -ldl -lrt -lm -o /home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/stressDifferences
/usr/bin/ld: cannot find -lreactionThermophysicalModels
/usr/bin/ld: cannot find -lbasicThermophysicalModels
collect2: error: ld returned 1 exit status
make[2]: *** [/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/chemkinToFoam] Fehler 1
make[1]: *** [chemkinToFoam] Fehler 2
/usr/bin/ld: cannot find -lfiniteVolume
collect2: error: ld returned 1 exit status
make[3]: *** [/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/stressDifferences] Fehler 1
make[2]: *** [stressDifferences] Fehler 2
make[2]: »/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/equilibriumCO« ist bereits aktualisiert.
make[2]: »/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/equilibriumFlameT« ist bereits aktualisiert.
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/stephanie/foam/foam-extend-3.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/stephanie/foam/foam-extend-3.1/src/foam/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/stressSymmComponents.o -L/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt \
-lfiniteVolume -lfoam -liberty -ldl -lrt -lm -o /home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/stressSymmComponents
make[2]: »/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT« ist bereits aktualisiert.
make[1]: Das Target »application« wurde wegen Fehlern nicht aktualisiert.
make: *** [thermophysical] Fehler 2
/usr/bin/ld: cannot find -lfiniteVolume
collect2: error: ld returned 1 exit status
make[3]: *** [/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/stressSymmComponents] Fehler 1
make[2]: *** [stressSymmComponents] Fehler 2
make[2]: Das Target »application« wurde wegen Fehlern nicht aktualisiert.
make[1]: *** [viscoelastic] Fehler 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/stephanie/foam/foam-extend-3.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/stephanie/foam/foam-extend-3.1/src/foam/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/wallGradU.o -L/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt \
-lfiniteVolume -lfoam -liberty -ldl -lrt -lm -o /home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/wallGradU
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels/compressible/RAS/RASModel -I/home/stephanie/foam/foam-extend-3.1/src/thermophysicalModels/specie/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/thermophysicalModels/reactionThermo/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/thermophysicalModels/basic/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/stephanie/foam/foam-extend-3.1/src/foam/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/wallHeatFlux.o -L/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt \
-lcompressibleRASModels -lreactionThermophysicalModels -lfiniteVolume -lspecie -lbasicThermophysicalModels -lfoam -liberty -ldl -lrt -lm -o /home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/wallHeatFlux
/usr/bin/ld: cannot find -lfiniteVolume
collect2: error: ld returned 1 exit status
make[3]: *** [/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/wallGradU] Fehler 1
make[2]: *** [wallGradU] Fehler 2
/usr/bin/ld: cannot find -lcompressibleRASModels
/usr/bin/ld: cannot find -lreactionThermophysicalModels
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -lbasicThermophysicalModels
collect2: error: ld returned 1 exit status
make[3]: *** [/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/wallHeatFlux] Fehler 1
make[2]: *** [wallHeatFlux] Fehler 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/stephanie/foam/foam-extend-3.1/src/transportModels -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels/incompressible/RAS/RASModel -I/home/stephanie/foam/foam-extend-3.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/stephanie/foam/foam-extend-3.1/src/foam/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/wallShearStress.o -L/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt \
-lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lfoam -liberty -ldl -lrt -lm -o /home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/wallShearStress
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/stephanie/foam/foam-extend-3.1/src/meshTools/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels/incompressible/LES/LESModel -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels/LES/LESdeltas/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/transportModels -I/home/stephanie/foam/foam-extend-3.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/stephanie/foam/foam-extend-3.1/src/foam/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/yPlusLES.o -L/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt \
-lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lfoam -liberty -ldl -lrt -lm -o /home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/yPlusLES
/usr/bin/ld: cannot find -lincompressibleRASModels
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lfiniteVolume
collect2: error: ld returned 1 exit status
make[3]: *** [/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/wallShearStress] Fehler 1
make[2]: *** [wallShearStress] Fehler 2
/usr/bin/ld: cannot find -lincompressibleLESModels
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lfiniteVolume
collect2: error: ld returned 1 exit status
make[3]: *** [/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/yPlusLES] Fehler 1
make[2]: *** [yPlusLES] Fehler 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/stephanie/foam/foam-extend-3.1/src/meshTools/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/transportModels -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions -I/home/stephanie/foam/foam-extend-3.1/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/mutWallFunctions -I/home/stephanie/foam/foam-extend-3.1/src/thermophysicalModels/basic/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/stephanie/foam/foam-extend-3.1/src/foam/lnInclude -I/home/stephanie/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/yPlusRAS.o -L/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt \
-lincompressibleTransportModels -lincompressibleRASModels -lbasicThermophysicalModels -lspecie -lcompressibleRASModels -lfiniteVolume -lmeshTools -lsampling -lfoam -liberty -ldl -lrt -lm -o /home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/yPlusRAS
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lincompressibleRASModels
/usr/bin/ld: cannot find -lbasicThermophysicalModels
/usr/bin/ld: cannot find -lcompressibleRASModels
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -lsampling
collect2: error: ld returned 1 exit status
make[3]: *** [/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/yPlusRAS] Fehler 1
make[2]: *** [yPlusRAS] Fehler 2
make[2]: Das Target »application« wurde wegen Fehlern nicht aktualisiert.
make[1]: *** [wall] Fehler 2
make[1]: Das Target »application« wurde wegen Fehlern nicht aktualisiert.
make: *** [postProcessing] Fehler 2
make: Das Target »application« wurde wegen Fehlern nicht aktualisiert.

This system rpm command: rpm --force-debian

========================================
Starting ThirdParty Allwmake
========================================

========================================
Starting ThirdParty AllMake: Stage5
========================================

The source code for swak4Foam is already present under ./rpmBuild/BUILD/swak4Foam-0.3.1
Please remove this directory if you want to refresh your installation of swak4Foam

========================================
Done ThirdParty AllMake: Stage5
========================================

========================================
Done ThirdParty Allwmake
========================================

stephanie@stephanie:~/foam/foam-extend-3.1$


Perhaps anyone can help me to solve all of these mistake, I would be very gratefull! Thank you for your help!

best regards,

Stephie
stephie is offline   Reply With Quote

Old   April 15, 2015, 06:54
Default
  #3
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 203
Rep Power: 18
hani is on a distinguished road
Hi,

You should redirect the output of the Allwmake.firstInstall to a file:
./Allwmake.firstInstall > log_Allwmake.firstInstall

Then you search that file for the first error message. The errors we see here are because some libraries did not compile successfully. The solvers depend on those libraries, so they will of course also not be compiled.

Best regards,
Håkan
hani is offline   Reply With Quote

Old   April 15, 2015, 07:51
Default
  #4
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
sorry, but I have to aks again...
I run your task and I get a logfile. I read through this file but there is no message with error. Instead of this the terminal shows the same mistakes like in my post before. How can I solve the problem? Do I have to install all files, the programm cannot find? How do I do this? I'm sorry, but I'm quite new.
I tried it with sudo apt-get install -lfiniteVolume but it doesn't work.

best regards,
Stephie
stephie is offline   Reply With Quote

Old   April 15, 2015, 08:23
Default
  #5
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 203
Rep Power: 18
hani is on a distinguished road
Sorry, my command should say:
./Allwmake.firstInstall >& log_Allwmake.firstInstall
(so that also the error messages are written)

The first error message we see here is:

/usr/bin/ld: cannot find -lreactionThermophysicalModels

It means that the library reactionThermophysicalModels did not compile properly. You should be able to find an error message saying why it did not compile. Search your log file for "error" and "reactionThermophysicalModels".

All the libraries shown in the error message are libraries that are part of OpenFOAM, and must be successfully compiled before the applications can be compiled. The finiteVolume library is a central library in OpenFOAM.

Håkan
hani is offline   Reply With Quote

Old   April 15, 2015, 08:42
Default
  #6
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Okay so the logfile shows me the text from the terminal.

I had a look for "reactionThermophysicalModels" and I found this:

-L/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt \
-lreactionThermophysicalModels -lbasicThermophysicalModels -lspecie -lfoam -liberty -ldl -lrt -lm -o /home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/chemkinToFoam
make[2]: »/home/stephanie/foam/foam-extend-3.1/applications/bin/linux64GccDPOpt/surfaceFind« ist bereits aktualisiert.
/usr/bin/ld: cannot find -lreactionThermophysicalModels
/usr/bin/ld: cannot find -lbasicThermophysicalModelsrs

and

collect2: error: ld returned 1 exit status
make: *** [/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt/libreactionThermophysicalModels.so] Fehler 1
+ wmake libso laminarFlameSpeed
/usr/bin/ld: cannot find -lfiniteVolume
collect2: error: ld returned 1 exit status
make: *** [/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt/liblaminarFlameSpeedModels.so] Fehler 1
+ wmake libso chemistryModel
/usr/bin/ld: cannot find -lbasicThermophysicalModels
/usr/bin/ld: cannot find -lreactionThermophysicalModels

I guess this is the location where the file is missing? because the file is not found.
Pherhaps the mistake might be "ist bereits aktualisiert", in english --> has been updated

Or might something like "collect2: error: ld returned 1 exit status" might be the problem?

But how can I solve it?

Regards,
Stephie
stephie is offline   Reply With Quote

Old   April 15, 2015, 08:49
Default
  #7
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 203
Rep Power: 18
hani is on a distinguished road
As I also said, try searching for the VERY FIRST error message. Like when finiteVolume is compiled.
hani is offline   Reply With Quote

Old   April 15, 2015, 08:57
Default
  #8
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
the first erro message comes here:

'/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt/libmeshTools.so' is up to date.
+ wmake libso finiteVolume
cyclicGgiFvPatchFields.o: Datei nicht erkannt: Datei abgeschnitten
collect2: error: ld returned 1 exit status
make: *** [/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt/libfiniteVolume.so] Fehler 1

so this is the mistake: cyclicGgiFvPatchFields.o: Datei nicht erkannt: Datei abgeschnitten?
stephie is offline   Reply With Quote

Old   April 15, 2015, 09:03
Default
  #9
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 203
Rep Power: 18
hani is on a distinguished road
Try:

cd $FOAM_SRC/finiteVolume
wclean lib
wmake libso
wmake libso >& log_wmake

And post the log file.
hani is offline   Reply With Quote

Old   April 15, 2015, 16:22
Default
  #10
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Hey,

so this is the content of the logfile:

'/home/stephanie/foam/foam-extend-3.1/lib/linux64GccDPOpt/libfiniteVolume.so' is up to date.
stephie is offline   Reply With Quote

Old   April 15, 2015, 17:37
Default
  #11
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 203
Rep Power: 18
hani is on a distinguished road
Ok, try:

foam
./Allwmake.firstInstall >& log_Allwmake.firstInstall

It shouldn't complain about that library again.

It was 25 years since I learnt German, and it was 23 years since I forgot it, but it seemed like there was a truncated object file that destroyed the compilation of the finiteVolume library.

Let's see if you are lucky with the above.

Håkan
hani is offline   Reply With Quote

Old   April 16, 2015, 04:39
Default
  #12
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Good morning,

I run your command after

cd ~/foam/foam-extend-3.1
. etc/bashrc

and I had a look into the logfile. There are any "errors" or mistakes anymore.
That might be good sign.
Instead of this I opened up an other terminal to test if cavity workes - unfortunateöy is does not.
When I start it in same terminal where I did the installation it works.
Where is still the problem?
Do I have to set the shell (the openfoam environment) befor I can start working with OpenFoam? And how can I do this?

Best regards
stephie is offline   Reply With Quote

Old   April 16, 2015, 06:46
Default
  #13
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 203
Rep Power: 18
hani is on a distinguished road
You have to set up the OpenFOAM environment in each terminal window you want to use OpenFOAM in.

That is nicely described in the installation instructions.

I think that you should spend a lot of time to learn more about both Linux and OpenFOAM from scratch.

Good luck!
Håkan
hani is offline   Reply With Quote

Old   April 16, 2015, 08:33
Default
  #14
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
You are right, I have to spend a lot of time to lern how to work with Linux and OpenFoam. It is not easy for me, but I try my best and I am really gratefull for everyones help.

So this was the step a miss, wasn't it?
* Set environment variables:

cd ~/foam/foam-extend-3.1
. etc/bashrc

here I just copied and pasted it in the terminal, but I really have to search the bachrc file and enter at the end:

source $HOME/foam/foam-extend-3.1/etc/bashrc

but when I try to type in: $HOME/.bashrc in the terminal to get the environment.. the terminal says, I have no authority.

is this the right way? but where is the last mistake?

It would be amazing if you would help me one more time.

Thank you so much
stephie is offline   Reply With Quote

Old   April 16, 2015, 09:10
Default
  #15
Senior Member
 
Håkan Nilsson
Join Date: Mar 2009
Location: Gothenburg, Sweden
Posts: 203
Rep Power: 18
hani is on a distinguished road
One more time, and then you must learn yourself.

The bashrc files should be sourced. When you type:
$HOME/.bashrc
you try to execute it, which is not allowed.

Try:
source $HOME/.bashrc

On the other hand, that bashrc file is always sourced when you open a terminal window. That is the purpose of that file. So in most cases you shouldn't source it again (unless you modified it and want the modifications to be activated in an already open terminal window - but then I suggest that you close down the terminal window and open a new one)

If you will always use only one OpenFOAM version, I suggest that you do the following (only once!):
echo "source \$HOME/foam/foam-extend-3.1/etc/bashrc" >> $HOME/.bashrc

Then close down all terminal windows. When you open a new terminal window it will already have the OpenFOAM environment of that version. When you need a new OpenFOAM version you have hopefully gained the skills to switch between versions.

Best regards,
Håkan
hani is offline   Reply With Quote

Old   April 23, 2015, 08:21
Default
  #16
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Okay.. I hope you know how unlikely ask again for help.. but I have to. Sice yesterday morning I I try to install foam-extend 3.1 on an other computer where OpenFoam 2.3.1 is already installed. I tried this time the installation by binary packages. A downloaded them and today I moved them to /opt/foam/foam-extend-3.1
Now I have the same problmen like last time. I want to set the envirnment. I opened up the bashrc file an wrote down: source /opt/foam/foam-extend-3.1/etc/bashrc
Than I tried the following lines:

cd /foam/foam-extend-3.1
. etc/bashrc

But when I try source /.bashrc, I can see the computer is working, but it seems like he is stucking. This command can run more than one houre..but nothing changes. So I stoped it.
Sometimes I also can read:
bash: ./bashrc file or directory not found
bash: opt/foam/foam-ectend-3.1/bin/foamCleanPath: Argument list too long.

I really don't know, where the mistake is located. I also tried it to act as root, but nothing changes.

Might you helpt me agein, hopefully for the last time?

Thank you so much,
best regards,
Stephie
stephie is offline   Reply With Quote

Old   April 23, 2015, 17:18
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
FYI: Detailed answer given here: http://www.cfd-online.com/Forums/ope...tml#post543457 - post #10
wyldckat 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
[foam-extend.org] Trying to install foam-extend 3.1 on Ubuntu 14.04 mbcx4jc2 OpenFOAM Installation 3 February 11, 2015 13:54
fvSchemes in FOAM extend 3.1 Shenan OpenFOAM Running, Solving & CFD 3 December 22, 2014 10:45
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 in Ubuntu 14.04 iafpython OpenFOAM Installation 8 November 10, 2014 17:43
[Other] Problem in Open foam installation in ubuntu 14.04 zannatul OpenFOAM Installation 2 November 3, 2014 21:56
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 03:34.