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

Installation problem - calling blockMesh - libblockMesh.so

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 26, 2012, 14:35
Angry Installation problem - calling blockMesh - libblockMesh.so
  #1
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 144
Rep Power: 4
aylalisa is on a distinguished road
Hi!

I am a newbie with OpenSuse and OpenFOAM and probably ran in each possible problem.

I've created two users on a workstation (OpenSuse 12.2).
Subsequently I've installed OpenFoam. First in user1's file structure.
It was no problem to run first tutorial case cavity, loged in as user 1:
/home/user1/OpenFOAM/user1/run/tutorials/incompressible/icoFoam/cavity

Then I've tried to install OpenFOAM as root, to be a bit smarter, in /opt/OpenFOAM. The installation procedure worked well again. I logged in again as user1 and started blockMesh in the tutorial case cavity. Everything worked fine.
Then I've added another user to the system: user2, checked the rights and tried to start the mesher.
The installation folder /opt/OpenFOAM/user, where the tutorial case is saved, has following rights: drwxrwxrwx.
OpenFOAM-2.1.1 directory: /opt/OpenFOAM/OpenFOAM-2.1.1 has following rights:
drwxrwxr-x
The mesher does not start and I get following error message:
blockMesh: error while loading shared libraries: libblockMesh.so: cannot open shared object file: No such file or directory

libblockMesh.so exists in /opt/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib

Why is it not possible for user2 to use OpenFOAM that was installed as root in /opt/OpenFOAM!

Do I have to manually adjust environment variables?
I ran /opt/OpenFOAM/OpenFOAM-2.1.1/bin --> foamInstallationTest and veriefied all environment variables to be sure that the official installation path to /opt/OpenFOAM was set correctly. Since I've first stupidly installed OpenFOAM in user1's file structure I wanted to control the correct settings of all e-variables. Their values seem to be all right.

Please help me! I've spent three weeks about that problem but I still could not solve it! Thanks a lot!

Aylalisa
aylalisa is offline   Reply With Quote

Old   November 26, 2012, 16:23
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Aylalisa and welcome to the forum!

You could have asked sooner
A compilation of the relevant information is presented here: Advanced tips for working with the OpenFOAM shell environment

As for the problem at hand, my guess is that you currently have two OpenFOAM installations: the personal one for "user1" and the global one made with the "root" account.
So, when you switched from root to user1, the personal installation was the one being used. You can confirm this by running:
Code:
which blockMesh
Therefore, at the very least, you're missing for the user2 the following command in his/her "~/.bashrc" file:
Code:
source /opt/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 27, 2012, 11:44
Default
  #3
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 144
Rep Power: 4
aylalisa is on a distinguished road
Hallo Bruno,

thank you very much for your reply and that really helpful link!

I've sourced the OpenFOAM bashrc in both user's ~.bashrc files. I've had exactly add the line you suggested.
Yet it did not work.

The answer to 'which blockMesh':
which: no blockMesh in (/usr/NX/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/bee39476/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games)

I've checked the environment variables, logged in as user2 and figured out, that the adjusted values (path) are wrong.
e.g. WM_PROJECT_INST_DIR="/home/user2/OpenFOAM"
This should be : /opt/OpenFOAM

Could you maybe tell me if there is a possibility to set all concerned environment variables with help of a script or command or do I have to set them manually one by one as root?

My plan is to uninstall both OpenFoam packages (root, user1) completely, install again OpenFOAM as root and then try again to use it with user1 and user2 successively.

Best regards,
Aylalisa
aylalisa is offline   Reply With Quote

Old   November 27, 2012, 16:19
Default calling paraView - No protocol specified
  #4
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 144
Rep Power: 4
aylalisa is on a distinguished road
Hallo Bruno,

thanks to your link I've managed to reach another level but now I face a new problem:

Error message:
created temporary 'cavity.OpenFOAM'
No protocol specified
paraview: cannot connect to X server :0

I've installed OpenFoam in the file structure of user1 and made a test:
blockMesh, icoFoam, paraFoam
Everything worked well.

I've sourced:
source /home/user1/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=12 WM_MPLIB=SYSTEMOPENMPI

Then I've copied the OpenFoam folder to /opt/ for group-wide installation and
adjusted OpenFOAM-*/etc/bashrc:
--> foamInstall=/opt/$WM_PROJECT

Next I've sourced:
source /opt/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=12 WM_MPLIB=SYSTEMOPENMPI
in the 2nd users $HOME/.bashrc

User2 can now start the mesher and the solver but not paraView (see error message above).

If I source:
source /opt/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc WM_NCOMPPROCS=12 WM_MPLIB=SYSTEMOPENMPI
in the 1st users $HOME/.bashrc I receive the same error message if user1 now wants to start paraView by calling paraFoam.

Could you help me again?




Best regards,
Aylalisa
aylalisa is offline   Reply With Quote

Old   November 27, 2012, 18:14
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Aylalisa,

Strange... although I've seen someone else with a similar problem in the last few days, but that person didn't reply back, if I remember correctly...

Anyway, there are several possibilities, which most depend on how you built ParaView and with which Qt library did you build it with.
Nonetheless, the two folders that need to be checked on whether the permissions are properly defined, are displayed with the following two commands:
Code:
ls -l ls -l $ParaView_DIR/bin
ls -l $ParaView_DIR/lib/paraview-3.12
Compare the permissions that the global and user1 installations have, because there might be libraries that are missing the necessary execution permissions.

Good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   November 28, 2012, 10:55
Default start paraView with user2
  #6
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 144
Rep Power: 4
aylalisa is on a distinguished road
Hallo Bruno,

now it works, BUT I can't really comprehend why!
I've compared the right as you've suggested and I could not see any differences.
I've copied one more time ThirdParty-2.1.1 folder from user1 folder structure to /opt/OpenFoam and adjusted the permissions (exactly like I did before) and/but now it works.

Of course I am happy and grateful that user2 can now start paraView too but on the other side I would really like to know where the difference is compoared to the situation I've had yesterday .

Anyway, thank you so much for your support!!!

Aylalisa
aylalisa is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4Foam installation problem Rajarshi OpenFOAM 8 May 13, 2013 08:05
Installation Problem with ParaView 3.12.0 on Scientific Linux 5.7 Wley OpenFOAM Installation 2 September 28, 2012 06:06
blockMesh problem shangzung OpenFOAM 5 December 9, 2009 09:18
OF Installation Problem - Gcc Error Daniel Pilatti OpenFOAM Installation 11 April 19, 2009 22:07
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 05:07


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