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

How to install OpenFoam1.71 on cluster without Root permission?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By wyldckat
  • 3 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2013, 19:47
Default How to install OpenFoam1.71 on cluster without Root permission?
  #1
Member
 
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14
ripperjack is on a distinguished road
Hi All,

I want to compile and install OF 1.71 on a cluster (RedHat 4.1.2-46), but I can not get the root permission on that cluster. Is it possible? How can I do? Many thank!

btw: I have successfully compiled and installed OF 1.7.1 on my PC following the instruction on the website, but I need root permission to install some pre-lib, which I can not do on the cluster. But I am sure the OF 1.71 was installed on that cluster before, so the pre-lib may have installed. I followed the same instruction on the website but I failed to compile OF. The guy who has the permission to do so is on vacation during this summer, but I need to use openfoam now! Could you guys help!

Regards
ripperjack is offline   Reply With Quote

Old   May 4, 2013, 21:12
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 ripperjack,

A few questions:
  1. Which Linux distribution, version and architecture do you have on the PC?
  2. Which architecture do you have on the cluster? You can check by running:
    Code:
    uname -m
  3. Which GCC, bison and flex versions does the cluster have? You can check with the following commands:
    Code:
    gcc --version
    bison --version
    flex --version
  4. You can also check if there are any other GCC version installed by typing "gcc" (without the quotes) and the pressing the Tab key a couple of times. With any luck, "gcc43" or "gcc44" will appear.
  5. Do you know if you have enough quota space (and file count) on the cluster? Because some clusters constrain the space available per user, as well as the number of files that user can have on the cluster.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 4, 2013, 21:34
Default
  #3
Member
 
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14
ripperjack is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings ripperjack,

A few questions:
  1. Which Linux distribution, version and architecture do you have on the PC?
  2. Which architecture do you have on the cluster? You can check by running:
    Code:
    uname -m
  3. Which GCC, bison and flex versions does the cluster have? You can check with the following commands:
    Code:
    gcc --version
    bison --version
    flex --version
  4. You can also check if there are any other GCC version installed by typing "gcc" (without the quotes) and the pressing the Tab key a couple of times. With any luck, "gcc43" or "gcc44" will appear.
  5. Do you know if you have enough quota space (and file count) on the cluster? Because some clusters constrain the space available per user, as well as the number of files that user can have on the cluster.
Best regards,
Bruno
Hi Bruno,

Thanks very much for your reply! The followings are the information on the cluster. I am sure that the space is enough for the OF, but I need to check the file count. I follow the instruction How to install OpenFOAM 1.7.1 on RHEL HPC 5.5 to install openfoam. What I can not do is to install some development libs mentioned in the above link, and I am not sure if these lib is installed or not on the cluster (e.g. I typed graphviz --version and it was said that command is not found....). Could you help? Many thanks!

btw: my PC is on Ubuntu, and I follow another instruction to install it.

Best regards,
Ping

Code:
uname -m
X86_64

uname -a
Linux login03 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)

bison --version
bison (GNU Bison) 2.3

flex --version
flex version 2.5.4

gcc34 --version
gcc34 (GCC) 3.4.6 20060404 (Red Hat 3.4.6-4)

gcc44 --version
gcc44 (GCC) 4.4.0 20090514 (Red Hat 4.4.0-6
ripperjack is offline   Reply With Quote

Old   May 4, 2013, 22:11
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Ping,

Since it's Ubuntu on the PC, it's unlikely that the build you have got in it will run on the cluster. The binaries are probably incompatible


OK, but if you have Gcc 4.4 on the cluster, then it's almost a given that you can easily install OpenFOAM 1.7.1 on the cluster.
And from what I can see, if you follow carefully the instructions on the link you indicated, you'll be able to install OpenFOAM without any problems.

As for the missing "graphviz" package: don't worry, that's only needed for ParaView, which you don't need to install on the cluster.

You just need to follow the instructions very carefully!
But there is one suggestion I would like to add - when running Allwmake, make it send the output into a log file, like this:
Code:
./Allwmake > make.log 2>&1
This way it'll be easier to diagnose the build if something goes wrong, since the output messages while building will be logged into the file "make.log". And remember: it's the first couple of error messages that you have to worry about, not the last ones!

And when they say:
Quote:
Originally Posted by http://consultancy.edvoncken.net/index.php/OpenFOAM
Source this bashrc file from your profile ...
What they mean is to add the following line to your "~/.bashrc" file:
Code:
source /usr/local/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc
Best regards,
Bruno
ripperjack likes this.
__________________
wyldckat is offline   Reply With Quote

Old   May 6, 2013, 14:47
Default
  #5
Member
 
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14
ripperjack is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Ping,

Since it's Ubuntu on the PC, it's unlikely that the build you have got in it will run on the cluster. The binaries are probably incompatible


OK, but if you have Gcc 4.4 on the cluster, then it's almost a given that you can easily install OpenFOAM 1.7.1 on the cluster.
And from what I can see, if you follow carefully the instructions on the link you indicated, you'll be able to install OpenFOAM without any problems.

As for the missing "graphviz" package: don't worry, that's only needed for ParaView, which you don't need to install on the cluster.

You just need to follow the instructions very carefully!
But there is one suggestion I would like to add - when running Allwmake, make it send the output into a log file, like this:
Code:
./Allwmake > make.log 2>&1
This way it'll be easier to diagnose the build if something goes wrong, since the output messages while building will be logged into the file "make.log". And remember: it's the first couple of error messages that you have to worry about, not the last ones!

And when they say:

What they mean is to add the following line to your "~/.bashrc" file:
Code:
source /usr/local/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc
Best regards,
Bruno
Hi Bruno,

Many thanks for your detailed instructions! I tried to compile it accordingly but it failed, I tried for many times and the errors are same, it seems that the 1st error is "configure: error: no vtf3.h found; check path for VTF3 package first...", I am so frustrated... I attached the make.log file, could you please help?

I do not know how to compress and split the log file to two tar.gz files, so I split it to two rar files and then each is compressed into tar.gz.....

Regards,
Ping
Attached Files
File Type: gz make_log1.tar.gz (89.2 KB, 2 views)
File Type: gz make_log2.tar.gz (81.1 KB, 1 views)

Last edited by ripperjack; May 6, 2013 at 16:00.
ripperjack is offline   Reply With Quote

Old   May 6, 2013, 18:16
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Ping,

Sorry, I should have been more explicit... the relevant error messages usually start with "Error ", including the space and without quotes.

The problem is this:
Code:
/usr/bin/ld: cannot find -liberty
Technically, the library "libiberty.so" is not being found.
If I remember correctly, it's the system package "glibc-devel" that has got this library... or maybe it's "binutils-devel".

Either way, right now I don't have the time to test this myself, but you can try the following steps:
  1. Edit the file "$HOME/OpenFOAM/OpenFOAM-1.7.1/wmake/rules/linux64Gcc/general".
  2. Change this line:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
    to this:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -ldl
  3. Save and close the file.
  4. Run Allwmake once again.
With any luck, this will allow OpenFOAM 1.7.1 to build without problems.

Best regards,
Bruno
ripperjack, utkunun and shang like this.
__________________
wyldckat is offline   Reply With Quote

Old   May 6, 2013, 23:35
Default
  #7
Member
 
Jack
Join Date: Dec 2011
Posts: 94
Rep Power: 14
ripperjack is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Ping,

Sorry, I should have been more explicit... the relevant error messages usually start with "Error ", including the space and without quotes.

The problem is this:
Code:
/usr/bin/ld: cannot find -liberty
Technically, the library "libiberty.so" is not being found.
If I remember correctly, it's the system package "glibc-devel" that has got this library... or maybe it's "binutils-devel".

Either way, right now I don't have the time to test this myself, but you can try the following steps:
  1. Edit the file "$HOME/OpenFOAM/OpenFOAM-1.7.1/wmake/rules/linux64Gcc/general".
  2. Change this line:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
    to this:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -ldl
  3. Save and close the file.
  4. Run Allwmake once again.
With any luck, this will allow OpenFOAM 1.7.1 to build without problems.

Best regards,
Bruno
Hi Bruno,

Many thanks! I followed your instruction and complied again. No error this time, finally! OF 1.7 runs fine on the cluster!!

Thanks again!

Best regards,
Ping
ripperjack is offline   Reply With Quote

Old   May 7, 2013, 17:46
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Ping,

I'm glad it worked!
I was hoping it would work, otherwise it would have been a bit difficult to figure out how to fix it

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


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
[OpenFOAM.org] How to get OpenFoam compiled on a cluster with CentOS 6.5 and no root permissions hulli OpenFOAM Installation 2 November 6, 2014 19:01
Why not install cluster by connecting workstations together for CFD application? Anna Tian Hardware 5 July 18, 2014 15:32
Environment errors with .deb install and ubuntu 13.04 64 bit jonathanbyrn OpenFOAM Installation 14 September 26, 2013 06:22
missing vtf3.h BPatch.h papi.h linch OpenFOAM Installation 41 July 24, 2012 15:45
Is root permission required to install untar paraview185tar dhanurao OpenFOAM Installation 3 November 11, 2008 13:27


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