PDA

View Full Version : [ubuntu] gcc: error: unrecognized command line option ‘--showme:link’



ajitnair90
November 16th, 2013, 03:28 PM
I was asked to install certain packages, when opening the terminal. After installing those packages, when i opened the terminal it showed gcc: error: unrecognized command line option ‘--showme:link’ , can you please help me with this. And i am a beginner, so help me with some steps. And one more error which i got when i was working openfoam

blockMesh: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory

I felt both the errors are linked :confused:. Can anyone kindly help to resolve these issues as soon as possible :(.

steeldriver
November 16th, 2013, 04:46 PM
Hello and welcome to the forum

You will likely get help quicker if you explain what "certain packages" you installed, and the exact steps you made (e.g. editing your ~/.bashrc) - if you were following online instructions, post a link to them

ajitnair90
November 17th, 2013, 12:31 PM
The packages which i was asked to install were,

sudo apt-get install libopenmpi1.6-dev
sudo apt-get install libopenmpi-dev
sudo apt-get install libmpich2-dev
sudo apt-get install libmpich1.0-dev
sudo apt-get install libmpich-mpd1.0-dev
sudo apt-get install libmpich-shmem1.0-dev
sudo apt-get install lam4-dev
These packages were shown as missing in the first lines of terminal, when i opened the terminal.And is there any link between the first error anf 2nd which i had mentioned in my post.

loalaa2
January 10th, 2014, 07:29 AM
I was asked to install certain packages, when opening the terminal. After installing those packages, when i opened the terminal it showed gcc: error: unrecognized command line option ‘--showme:link’ , can you please help me with this.
In order to solve this problem, you should check this link:
http://www.openfoam.org/download/ubuntu.php

Typing:

sudo update-alternatives --list mpi

If your system has MPICH libraries, you will see two lines, the second one is the MPICH path in where it was installed.
In order to fix the problem, typing:

sudo update-alternatives --set mpi /usr/lib/openmpi/include

Regards.