CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   I think I made a mistake with bashrc file (https://www.cfd-online.com/Forums/openfoam-installation/142846-i-think-i-made-mistake-bashrc-file.html)

nov_des_eng October 10, 2014 11:16

I think I made a mistake with bashrc file
 
I just started using openFOAM, and first I had just installed it and got everything to work in the tutorials, but I screwed some things up and ended up reinstalling. I also tried to use HELYX-OS and I kept getting weird errors like:
Code:

Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed!
So I went on the forum and it looked like my $HOME/.bashrc file was incorrect, so I used the solution Here at the bottom of the page. Now I can't run blockMesh from the terminal in any of the tutorial cases. I just get

Code:

Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed!
The code I put in the bashrc file is:
Code:

source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=2 WM_MPLIB=SYSTEMOPENMPI

alias of230='source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc '

I am getting a new error in HELYX-OS also. it is
Code:

/home/datacollector/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc: line 182: /home/datacollector/OpenFOAM-2.3.0/bin/foamEtcFile:
which you can see is skipping a folder. There are more errors, but they are all missing the same folder

Code:

/home/datacollector/OpenFOAM-2.3.0/bin/foamEtcFile
should look like
Code:

/home/datacollector/OpenFOAM/OpenFOAM-2.3.0/bin/foamEtcFile
Any idea how to fix this?

Thanks

wyldckat October 11, 2014 16:56

Greetings Keith and welcome to the forum!

Why do I have the feeling you copy-pasted those two lines of code to the wrong "bashrc" file? The correct file should be "$HOME/.bashrc" ;).

In addition, knowing which Linux Distribution you're using and which installation instructions you followed for installing OpenFOAM and HelyxOS, would make it a lot easier for us to diagnose the problem.

Beyond this, I believe this problem is very similar to the one reported here: http://www.cfd-online.com/Forums/ope...u-14-04-a.html
In the second post there is a solution reported there.

Best regards,
Bruno

nov_des_eng October 16, 2014 12:37

I reinstalled Ubuntu 14.04 and OpenFOAM 2.3.0, and now I can run everything just fine. However, I still can not get Helyx-OS v2.1.1 to run no matter what I try.


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