CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Problem of openFOAM 2.3.1 installation in Ubuntu 14.04LTS (https://www.cfd-online.com/Forums/openfoam-installation/146923-problem-openfoam-2-3-1-installation-ubuntu-14-04lts.html)

mukut January 9, 2015 23:58

Problem of openFOAM 2.3.1 installation in Ubuntu 14.04LTS
 
Dear FOAMers!

Recently I have installed OpenFOAM 2.3.1, earlier I have used version 2.1.1

After installation of openfoam 2.3.1, when I run e terminal following error message displayed in terminal:

PHP Code:

ccerrorunrecognized command line option ‘--showme:link’ 

I have checked here (http://www.openfoam.org/download/ubuntu.php) under INSTALLATION PROBLEM.

when I ran the command:

PHP Code:

sudo update-alternatives --list mpi 

in the terminal following appeard

PHP Code:

/usr/include/lam
/usr/include/mpich 

Then according to suggestion of the link given above: when I ran the command
PHP Code:

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

following error appeared

PHP Code:

update-alternativeserroralternative /usr/lib/openmpi/include for mpi not registerednot setting 

How to solve this issue?

BR
mukut

wyldckat January 10, 2015 15:50

Greetings mukut,

A few questions:
  1. Which installation instructions did you follow to install OpenFOAM 2.3.1?
  2. Did you uninstall OpenFOAM 2.1.1? If you did, then what steps did you perform?
Best regards,
Bruno

mukut January 11, 2015 01:33

Thanks Mr. Bruno!

Ans for 1st Q: I am using these steps to install openFOAM 2.3.1: https://www.youtube.com/watch?v=LkLgwm64jGI

ans for 2nd Q: I just deleted openFOAM 2.1.1 folder.....


I have informed the youtuber who has given the tutorial regarding my issue: he replied as follows:
PHP Code:

If you followed the instructions of the videothe openmpi path should be

/home/sharials/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/openmpi-1.6.5/include

You just have to exchange 'sharials' for your username.

Now you run:
sudo update-alternatives --list mpi /home/YOUR_NAME_HERE/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/openmpi-1.6.5/include

Hope that helps! 

So when I ran the command as he mentioned in the reply in my terminal error showed as follows:
PHP Code:

ccerrorunrecognized command line option ‘--showme:link’
mukut@mukut-Endeavor-MR3300:~$ sudo update-alternatives --list mpi /home/mukut/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/openmpi-1.6.5/include
[
sudopassword for mukut
update-alternativeserrorunknown argument `/home/mukut/OpenFOAM/ThirdParty-2.3.1/platforms/linux64Gcc/openmpi-1.6.5/include' 

What should I do?

Regards
mukut

mukut January 11, 2015 02:01

Dear Mr. Bruno!

Shall I have to install the OF and then a fresh installation? I am waiting for your reply.

I have ran a case, it works fine. After comparing results, I will inform you.

Actually what is the effect due to show link cc error???

BR
mukut

p0kerus January 11, 2015 02:03

Hi
 
Hi Mukut;
You need to see if these files are installed
Code:

sudo apt-get install libopenmpi-dev openmpi-bin
As i can see you have two mpi installed you have to make symbolic link to ensure correct global mpi
Code:

ln -s /usr/bin/mpicc.openmpi OpenFOAM-2.3.0/bin/mpicc
ln -s /usr/bin/mpirun.openmpi OpenFOAM-2.3.0/bin/mpirun

And if you have still have error follow this guide https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04

Or you can use prebuild openfoam installtion script that i have posted on forum.

Regards;
p0kerus

mukut January 11, 2015 03:38

Dear Mr. p0kerus!

Thanks a lot!

After running your 1st command in terminal, the installation completed by download file.
Then I run 2nd two commands in the terminal:

mukut@mukut-Endeavor-MR3300:~$ ln -s /usr/bin/mpicc.openmpi OpenFOAM-2.3.1/bin/mpicc
ln: failed to create symbolic link ‘OpenFOAM-2.3.1/bin/mpicc’: No such file or directory
mukut@mukut-Endeavor-MR3300:~$ ln -s /usr/bin/mpicc.openmpi OpenFOAM-2.3.1/bin/mpicc
ln: failed to create symbolic link ‘OpenFOAM-2.3.1/bin/mpicc’: No such file or directory
mukut@mukut-Endeavor-MR3300:~$


Anyway, after that I have closed the terminal and open again but there is no error as I posted here.

Does it really solve?

Regards
mukut

wyldckat January 11, 2015 12:56

Greetings to all!

FYI: Instructions for compiling OpenFOAM 2.3.1 on Ubuntu 14.04 have been available on the wiki since at least the 31st of December of 2014: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04 - therefore, there is no need to go around trying to manually replace occurrences of "2.3.0" by "2.3.1".

@mukut: It seems that you jumped from some other step directly to step #5. Please follow the steps in the correct order (from 1 to 12), in order for them to work as expected.

Best regards,
Bruno

mukut January 12, 2015 00:55

Quote:

Originally Posted by wyldckat (Post 526972)
Greetings to all!

FYI: Instructions for compiling OpenFOAM 2.3.1 on Ubuntu 14.04 have been available on the wiki since at least the 31st of December of 2014: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04 - therefore, there is no need to go around trying to manually replace occurrences of "2.3.0" by "2.3.1".

@mukut: It seems that you jumped from some other step directly to step #5. Please follow the steps in the correct order (from 1 to 12), in order for them to work as expected.

Best regards,
Bruno

Thanks a lot Mr. Bruno.

After p0kerus reply, the show link error didn't show in terminal and I am using openFoam. In this situation, I need your suggestion. Shall I continue to use openFOAM or uninstall it and then use the steps to install that the link you have given in last reply?

Regards
mukut

wyldckat January 18, 2015 14:55

Hi mukut,

If your OpenFOAM installation is now working, then no need to rebuild it again. Feel free to use it as it is.

Either way, if you see one or more situations where you think that something might be broken in your installation, then perhaps it's best to remove the current installation and start over.

Best regards,
Bruno

mukut January 19, 2015 00:48

Quote:

Originally Posted by wyldckat (Post 528055)
Hi mukut,

If your OpenFOAM installation is now working, then no need to rebuild it again. Feel free to use it as it is.

Either way, if you see one or more situations where you think that something might be broken in your installation, then perhaps it's best to remove the current installation and start over.

Best regards,
Bruno


Dear Mr. Bruno

Thank you so much. OF works fine, thanks again


All times are GMT -4. The time now is 21:02.