|
[Sponsors] |
[OpenFOAM.com] OpenFOAM isn't working anymore: "blockMesh: error while loading shared libraries" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 18, 2010, 17:35 |
OpenFOAM isn't working anymore: "blockMesh: error while loading shared libraries"
|
#1 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Hi anyone,
i installed OpenFOAM on my Pc and my Laptop with the great help of this forum. Now i got a strange Problem. Today i wanted to start up OpenFoam on my Laptop and tried to run blockMesh. He gave me the following error: blockMesh: error while loading shared libraries: libmeshTools.so: cannot open shared object file: No such file or directory After wondering what happened i tried to start up icoFoam or paraview and he gave me the same error messages, except the pointed library changed. So i tried the same commands on my pc and the same errors occured. This is extremly strange because the hdd with linux on it was disconnected the last time in my pc. So i didn't changed anything. Maybe a Ubuntu Update changed something with the librarys? I would be very happy if anyone could help me! Thanks a lot Regards Leech |
|
October 18, 2010, 18:54 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Pierre,
To me it seems that there are only two possible scenarios for what happened to you:
Code:
cat /etc/lsb-release Best regards, Bruno
__________________
|
|
October 19, 2010, 04:41 |
|
#3 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Hi Bruno,
thanks for your help. I looked at my bashrc. It got the lines you mentioned. But with openfoam170. I changed it to 171 and then the terminal said that there is no such directory. The other things i cant try out right now, going to work I'll try it this evening. Thanks a lot Pierre |
|
October 19, 2010, 15:10 |
|
#4 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Hi again,
i tried out the rest of your instructions. The folder exists, but it's again openfoam170. It got contents and it occupies something over 320mbs of disc space. So i'm a bit worried. It seems like i installed open 170. But i thought i downloaded OpenFoam 171. So i will try to install it again. Thanks Leech ps: I'll give a report here, if it worked well |
|
October 19, 2010, 15:36 |
|
#5 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Hi,
i tried to reinstall OpenFoam, but it didn't worked. I followed the instructions exactly. At the point "Open a new terminal window and test that the icoFoam application, from the OpenFOAM package, is working by typing icoFoam -help" the shell answers again: "pierre@pierre-laptop:~$ icoFoam -help icoFoam: error while loading shared libraries: libfiniteVolume.so: cannot open shared object file: No such file or directory" I am totally out of ideas... Any suggestions? Thanks guys Pierre |
|
October 19, 2010, 19:27 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Pierre,
That's odd... What does this command output: Code:
echo $LD_LIBRARY_PATH Best regards, Bruno
__________________
|
|
October 21, 2010, 15:27 |
|
#7 |
Member
Pierre
Join Date: Sep 2010
Posts: 57
Rep Power: 16 |
Hi,
you were right. I Had some additional lines in the bashrc. I didn't thought they would change anything. I added these lines, to automatically set the environnement variables for netgen: Code:
#Netgen export NETGENDIR=/opt/netgen/bin export LD_LIBRARY_PATH=/usr/lib/Togl1.7:/opt/netgen/lib Thanks a lot again for your help Pierre |
|
October 21, 2010, 15:38 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Pierre,
It's pretty simple Just modify your line for NETGEN's LD_LIBRARY_PATH to this: Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/Togl1.7:/opt/netgen/lib Best regards, Bruno
__________________
|
|
September 7, 2016, 11:53 |
Same problem, newer programs
|
#9 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 13 |
Hello
I've just updated Ubuntu from 14.04 to 16.04 (maybe regrettably!), without changing anything else. I had OpenFOAM 3.0.x working well before I updated, but now I get the same errors as the above poster. So when I do Code:
icoFoam When I type Code:
which icoFoam And when I do Code:
echo $LD_LIBRARY_PATH Any help would be appreciated. I could reinstall OpenFOAM, but I have quite a lot of solvers etc, which I don't want to lose. regards Ali |
|
September 11, 2016, 12:03 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer @Ali: There are two possible solutions:
__________________
|
|
September 12, 2016, 04:51 |
|
#11 |
Member
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 13 |
Hi Bruno
Thanks a lot for your reply. I tried linking libmpi.so.1 to libmpi.so.12, but that didn't work. I ended up having to uninstall and then reinstall OpenFOAM completely (2 days before you replied, so I didn't try your advice). I had managed to get OpenFOAM's standard solvers to work by just doing ./Allwmake before reinstalling, but my own solvers still had the same issues. So for anyone else with the same problem, I would recommend trying what Bruno said, and failing that, reinstall OpenFOAM |
|
February 13, 2019, 19:16 |
Same issue, foam-extended
|
#12 |
New Member
Join Date: Mar 2018
Location: Brazil
Posts: 7
Rep Power: 8 |
Hello there,
I already had openFoam 4x installed and now installed foam-extend 4.0. I've added the alias for both instances but I am getting the same error mentioned by Pierre: error while loading shared libraries: libfoam.so: cannot open shared object file: No such file or directory the only thing I have after the alias in my .bashrc file are some lines added by anaconda installer, but they do not have a export LD_LIBRARY_PATH line. I've already tried commenting them to see if that was the issue, without any luck. I've also tried this: cd $FOAM_SRC/Pstream ( export WM_OPTIONS="$WM_OPTIONS$WM_MPLIB"; wclean all; wmake all) but apparently the Pstream folder is missing from my foam-extended folder. Any help would be appreciated ! Thanks in advance ! |
|
February 17, 2019, 17:22 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: That sounds to me that you first had the OpenFOAM 4 shell environment activated and then tried to activate foam-extend 4 right after on that same terminal.
Start a new terminal and make sure that you don't have any OpenFOAM nor foam-extend version active. You can check by running: Code:
export | grep FOAM If ti gives you anything, then check if there is anything left in "~/.bashrc" is sourcing automatically. Once you've sorted out that issue, then start a new terminal, double-check if none is activated and then activate foam-extend 4. Then try running Allwmake once again in the main foam-extend folder.
__________________
|
|
July 20, 2020, 09:05 |
|
#14 | |
Member
Join Date: Dec 2009
Location: Kanpur, India
Posts: 54
Rep Power: 16 |
Quote:
Thanks it works. In my case the problem was blockMesh: error while loading shared libraries: libmpi.so.20: cannot open shared object file: No such file or directory. The above quoted one commands resolved the problem, i.e., $ cd $FOAM_SRC/Pstream $ export WM_OPTIONS="$WM_OPTIONS $ wclean all $ wmake all |
||
October 22, 2022, 07:33 |
Error in rheotool tutorial running
|
#15 |
New Member
Orissa
Join Date: Feb 2022
Posts: 15
Rep Power: 4 |
error while loading shared libraries: libHYPRE-2.20.0.so: cannot open shared object file: No such file or directory
Can anyone please help me to figure out this error?? |
|
October 22, 2022, 10:42 |
|
#16 |
Member
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 75
Rep Power: 5 |
Install Hypre
|
|
October 27, 2022, 10:37 |
|
#17 |
New Member
Orissa
Join Date: Feb 2022
Posts: 15
Rep Power: 4 |
I AM NOT GETTING THIS VERSION libHYPRE-2.23.0.
CAN ANYONE HELP ME TO GET THIS INSTALL |
|
October 28, 2022, 00:52 |
|
#18 |
Member
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 75
Rep Power: 5 |
If you are using debian based distro install using command "sudo apt install libhypre". If you are using LTS version of ubuntu you will not get libhypre-2.23.
|
|
October 28, 2022, 01:37 |
|
#19 |
New Member
Orissa
Join Date: Feb 2022
Posts: 15
Rep Power: 4 |
I used sudo apt install libhypre but different version of hypre is installed in that so not how can i resolve this error beacause anyhow i want to install rheotool and use it.
|
|
October 28, 2022, 01:44 |
|
#20 |
Member
Ashutosh
Join Date: Jul 2021
Location: India
Posts: 75
Rep Power: 5 |
How did you install OpenFoam?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
foam-extend_3.1 decompose and pyfoam warning | shipman | OpenFOAM | 3 | July 24, 2014 09:14 |
DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 10:01 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |