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

[OpenFOAM.org] How to install OpenFOAM on centOS 6.5 without rights of administrator?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2018, 20:54
Question How to install OpenFOAM on centOS 6.5 without rights of administrator?
  #1
New Member
 
Richard
Join Date: Apr 2018
Posts: 24
Rep Power: 7
Qinh is on a distinguished road
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!
Qinh is offline   Reply With Quote

Old   April 30, 2018, 12:06
Default
  #2
New Member
 
Panchatcharam Mariappan
Join Date: Apr 2014
Posts: 17
Rep Power: 11
mpanch13114 is on a distinguished road
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
mpanch13114 is offline   Reply With Quote

Old   April 30, 2018, 16:56
Default
  #3
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
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
__________________
wyldckat is offline   Reply With Quote

Old   April 30, 2018, 20:46
Default
  #4
New Member
 
Richard
Join Date: Apr 2018
Posts: 24
Rep Power: 7
Qinh is on a distinguished road
Quote:
Originally Posted by mpanch13114 View Post
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 is offline   Reply With Quote

Old   April 30, 2018, 20:52
Default
  #5
New Member
 
Richard
Join Date: Apr 2018
Posts: 24
Rep Power: 7
Qinh is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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.
Qinh is offline   Reply With Quote

Reply

Tags
centos 6.5, not in root mode

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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
[OpenFOAM.org] OpenFoam installation on CentOs 6.5 without root access arsalan.dryi OpenFOAM Installation 28 March 6, 2021 11:31
[OpenFOAM.org] Paraview install failing (With OpenFOAM 3.0.0 and CentOS 7) davidrobinson50 OpenFOAM Installation 1 June 2, 2016 17:54
[OpenFOAM.org] OpenFOAM Installation on Centos 6.4 unobtruse OpenFOAM Installation 3 December 14, 2014 08:44
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55


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