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] How to install OpenFOAM on centOS 6.5 without rights of administrator? (https://www.cfd-online.com/Forums/openfoam-installation/201350-how-install-openfoam-centos-6-5-without-rights-administrator.html)

Qinh April 29, 2018 20:54

How to install OpenFOAM on centOS 6.5 without rights of administrator?
 
How to install OpenFOAM on centOS 6.5 without rights of administrator? I have found some guides, but they all install it in the root mode.:( Thanks a lot!

mpanch13114 April 30, 2018 12:06

You could download openfoam from github and then you need to modify the location of install directory and project directory at etc/bashrc file. Especially, you need to look at export FOAM_INST_DIR

wyldckat April 30, 2018 16:56

Greetings to all!

The majority of the installation instructions provided at openfoamwiki.net for CentOS, as listed here: https://openfoamwiki.net/index.php/C...FOAM_on_CentOS - have instructions on which packages are needed to be installed with root permissions in the CentOS system. After installing the packages needed, the remaining installation instructions do not require root/administrator permissions.

Without specific details on which packages are already installed or are not installed in the machine where you are using CentOS 6.5, it's not easy to guide someone on how to proceed. By running the following command, you will get a complete list of packages already installed on that system:
Code:

rpm -qa > log.installed.files
gzip < log.installed.files > log.installed.files.gz

Then attach the file "log.installed.files.gz" to your next post.

Beyond this, I have three other suggestions:
  1. Try following the instructions provided at openfoamwiki.net for the version of OpenFOAM you are trying to install, but skip the step that tells you which packages to install.
  2. If that does not work:
    1. Create a virtual machine in your own workstation/laptop at your work place or at home, and inside that virtual machine, install CentOS 6.5.
    2. Then compile the OpenFOAM version you want to use at the other machine.
    3. Then package the folders "OpenFOAM-*" and "ThirdParty-*" by using tar+gzip, for example, by running the following commands inside the folder "~/OpenFOAM":
      Code:

      tar -czf OpenFOAM-version.tar.gz OpenFOAM-*/platforms
      tar -czf ThirdParty-version.tar.gz ThirdParty-*/platforms

      These two command will only package the binary files that have been built from source code.
    4. Then unpack there two packages "OpenFOAM-version.tar.gz" + "ThirdParty-version.tar.gz" inside the respective folder "~/OpenFOAM" at the machine where you want to use it, for example, by running:
      Code:

      tar -xf OpenFOAM-version.tar.gz
      tar -xf ThirdParty-version.tar.gz

  3. If any or all of the above fail, ask nicely your system's administrator to install the necessary packages, so that you can build OpenFOAM yourself.

Best regards,
Bruno

Qinh April 30, 2018 20:46

Quote:

Originally Posted by mpanch13114 (Post 690787)
You could download openfoam from github and then you need to modify the location of install directory and project directory at etc/bashrc file. Especially, you need to look at export FOAM_INST_DIR

Could you please introduce the installation process in detail? I have downloaded the OpenFOAM and modified the location, but I have no idea about the export FOAM_INST_DIR.

Qinh April 30, 2018 20:52

Quote:

Originally Posted by wyldckat (Post 690810)
Greetings to all!

The majority of the installation instructions provided at openfoamwiki.net for CentOS, as listed here: https://openfoamwiki.net/index.php/C...FOAM_on_CentOS - have instructions on which packages are needed to be installed with root permissions in the CentOS system. After installing the packages needed, the remaining installation instructions do not require root/administrator permissions.

Without specific details on which packages are already installed or are not installed in the machine where you are using CentOS 6.5, it's not easy to guide someone on how to proceed. By running the following command, you will get a complete list of packages already installed on that system:
Code:

rpm -qa > log.installed.files
gzip < log.installed.files > log.installed.files.gz

Then attach the file "log.installed.files.gz" to your next post.

Beyond this, I have three other suggestions:
  1. Try following the instructions provided at openfoamwiki.net for the version of OpenFOAM you are trying to install, but skip the step that tells you which packages to install.
  2. If that does not work:
    1. Create a virtual machine in your own workstation/laptop at your work place or at home, and inside that virtual machine, install CentOS 6.5.
    2. Then compile the OpenFOAM version you want to use at the other machine.
    3. Then package the folders "OpenFOAM-*" and "ThirdParty-*" by using tar+gzip, for example, by running the following commands inside the folder "~/OpenFOAM":
      Code:

      tar -czf OpenFOAM-version.tar.gz OpenFOAM-*/platforms
      tar -czf ThirdParty-version.tar.gz ThirdParty-*/platforms

      These two command will only package the binary files that have been built from source code.
    4. Then unpack there two packages "OpenFOAM-version.tar.gz" + "ThirdParty-version.tar.gz" inside the respective folder "~/OpenFOAM" at the machine where you want to use it, for example, by running:
      Code:

      tar -xf OpenFOAM-version.tar.gz
      tar -xf ThirdParty-version.tar.gz

  3. If any or all of the above fail, ask nicely your system's administrator to install the necessary packages, so that you can build OpenFOAM yourself.

Best regards,
Bruno

Thanks a lot! I will have a try.


All times are GMT -4. The time now is 13:16.