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.org] Complete removal and reinstallation issues (https://www.cfd-online.com/Forums/openfoam-installation/148960-complete-removal-reinstallation-issues.html)

raychoul February 23, 2015 01:51

Complete removal and reinstallation issues
 
Hi OpenFOAM users,

This is my first post and I am fairly new to OpenFOAM so I will try to be clear and concise with my problem:

I recently upgraded my laptop to a MacbookPro with VirtualBox to run Ubuntu 12.04.

I thought I would give OpF v2.3.0 a go. After installation I attempted to compile one of my solvers and ran into a problem with the IObasicSourceList.H. After following a few threads with no luck I decided I would go back to OpF v2.1.1 knowing that my solvers should be able to compile as is.

Without uninstalling v2.3.0 I installed v2.1.1, because I had read that it wasn't a problem to have two versions running. While following all installation steps I ran into problems when running the command:

Code:

mkdir -p $FOAM_RUN
I was returned the following:

Code:

mkdir: missing operand
Try `mkdir --help' for more information.

I then proceeded to remove v.2.30 and attempted removing and reinstalling v2.1.1 but am still unable to get the folder working.

I fear I may have accidentally removed something important in the process.

I haven't been able to find a similar problem while trolling these threads. So I hope someone might be able to help walk me through it.

Many thanks in advance,

Rachael

wyldckat February 27, 2015 15:40

Greetings Rachael and welcome to posting on this forum!

Fortunately, most of the solutions for your questions are already answered on the wiki:
  1. On this page: http://openfoamwiki.net/index.php/In...with_the_Shell - check the subsection "Using aliases to help manage multiple OpenFOAM versions"
  2. How to uninstall a version of OpenFOAM is explained here: http://openfoamwiki.net/index.php/FA...ve_OpenFOAM.3F

Beyond this, I would need to know how exactly you installed each version, namely which installation instructions you followed.

Best regards,
Bruno

pbachant March 1, 2015 13:56

My guess is that you are not properly sourcing the environmental variables in your .bashrc. If you installed from the deb pack, try

Code:

source /opt/openfoam231/etc/bashrc


All times are GMT -4. The time now is 09:41.