|
[Sponsors] |
May 17, 2012, 02:48 |
relocation x has invalid symbol index y
|
#1 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
After installing the openfoam when I open the terminal I get a lot of erros like this:
/usr/lib/debug/usr/lib/crt1.o(.debug_info): relocation 0 has invalid symbol index 12 and then this final error: /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status yet OF works fine, can you help me around this? |
|
May 17, 2012, 09:42 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings Mahdi,
Without more information, we're left only guessing your problem. My guess is that either ParaView or Open-MPI is complaining about that problem. That should be because you installed a version of ParaView/Open-MPI that is either too recent or too old for your Linux installation. To help you further, we'll need to know:
Bruno
__________________
|
|
May 17, 2012, 15:24 |
|
#3 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Greeting Bruno
As you said I'm afraid it should be because of MPI because I have used paraview a lot but have not yet used parallel with OF, MPI was installed long before OF for a university course. 1. OF installation is according to the page: http://www.openfoam.org/download/ubuntu.php 2. It is 2.1.0 and paraview 3.12 3. Ubuntu 10.04 - the Lucid Lynx - |
|
May 17, 2012, 18:30 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Hi Mahdi,
Then... mmm, I'll have to test this for myself on a virtual machine... But my guess is that your Ubuntu installation needs an update for all of the packages installed, since OpenFOAM's packages might be too recent... or maybe it's the other way around... The other possibility is that you might have a custom Open-MPI installed... Do you know if you have more than one MPI installed? And if it a custom version or an Ubuntu default one!? Best regards, Bruno
__________________
|
|
May 17, 2012, 18:56 |
|
#5 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
I always do update it via the update manager. Guess the best way is to first uninstall MPI and then reinstall openfoam. How should i do that?
|
|
May 18, 2012, 10:53 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Hi anishtain4,
Either run: Code:
sudo apt-get remove name_of_package_to_be_removed If you don't know, then go to the Ubuntu Center and search for the packages that you want to uninstall. Or even, install Synaptic and use it to search and remove said packages: Code:
sudo apt-get install synaptic Bruno
__________________
|
|
May 18, 2012, 15:47 |
|
#7 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
It seems this is not the problem. I did remove MPI, Openfoam and paraview and reinstalled them but the same problems insists on
|
|
May 19, 2012, 17:51 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Hi Mahdi,
Well, then my suggestion is to build OpenFOAM from source or from the git version:
Bruno
__________________
|
|
May 22, 2012, 05:49 |
|
#9 |
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18 |
Thanks wyldkat, I tried to do it with source but in the step to set the environmental variables I get plenty of errors like this:
bash: /home/mahdi/OpenFOAM/OpenFOAM-2.1.0/bin/foamEtcFile: No such file or directory I know it is because it has assumed that openfoam is installed in the home directory but I want to have it in the /opt, to correct this should I change all the references mentioned in the error to my installation link? I don't want to ruin anything EDITED: got it, just commented a statement and uncommented another one, now everything is ok, but I think I may miss that crap on my terminal Last edited by anishtain4; May 22, 2012 at 11:44. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
gamma-ReTheta turbulence model for predicting transitional flows | FelixL | OpenFOAM Programming & Development | 123 | August 30, 2022 11:50 |
OpenFOAM install on Ubuntu Natty 11.04 | bkubicek | OpenFOAM | 13 | May 26, 2011 05:48 |
POSDAT problem | piotka | STAR-CD | 4 | June 12, 2009 08:43 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 14:37 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 20:30 |