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.com] Installing/compiling OpenFOAM on a server without admin privileges (https://www.cfd-online.com/Forums/openfoam-installation/198161-installing-compiling-openfoam-server-without-admin-privileges.html)

foadsf January 29, 2018 08:10

Installing/compiling OpenFOAM on a server without admin privileges
 
I have also asked this question here in StackOverflow.

I'm trying to install/compile OpenFOAM on a remote server. As I don't have the admin privileges I have to compile it from scratch. Following the instructions here, when I try to run
Code:

source ~/OpenFOAM/OpenFOAM-v1712/etc/bashrc
I get the error:

Quote:

No completion added for /home/foobar/OpenFOAM/OpenFOAM-v1712/platforms/linux64GccDPInt32Opt/bin
I checked the ~/OpenFOAM/OpenFOAM-v1712/etc/bashrc. It definitely exists and it is intact. I also checked the /home/foobar/OpenFOAM/OpenFOAM-v1712/ folder and there are no such thing as platforms folder! I searched and the only place I could see a similar error message is here where the issue is old Bash. I tried bash --version returning version 4.3.48(1)-release (x86_64-pc-linux-gnu) which is more than 4.2 as seems to be required.

My system information:

When I run the uname -a command on the server this is what I get

Quote:

Linux foobar 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Looking into the possible required dependencies mentioned in this page, I checked the installed packages using the command

Code:

apt list --installed | grep -i packageName
The packages installed are:

Quote:

build-essential, flex, bison, cmake, zlib1g-dev, libboost-system-dev, libboost-thread-dev, libopenmpi-dev, openmpi-bin, gnuplot, libreadline-dev, libqt4-dev, libqt4-opengl-dev, freeglut3-dev
And the ones not installed are:

Quote:

libncurses-dev, libxt-dev, libqtwebkit-dev, libcgal-dev
which according to the installation page are not essential I suppose.

and checking the versions of the libraries installed:
  • mpirun --version --> (Open MPI) 1.10.2
  • gcc --version --> gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
  • cmake --version --> 3.5.1

I would appreciate if could let me know what is the problem and how I can solve it? Or if not solvable, what are the alternative methods for me to have the OpenFOAM installed/compiled on the said server.

Andrew.Coughtrie March 2, 2018 11:28

Was this before or after you ran AllWmake etc.. to install?

foadsf March 2, 2018 12:14

Thanks for the reply. I have solved the problem here


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