CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Having problems installing OpenFOAM 2.2.2 in Ubuntu 14.04

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By allan815
  • 1 Post By allan815

Reply
 
LinkBack Thread Tools Display Modes
Old   July 21, 2015, 08:01
Default Having problems installing OpenFOAM 2.2.2 in Ubuntu 14.04
  #1
New Member
 
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 4
allan815 is on a distinguished road
When I finished set the environment parameters, close Terminal and open it again, it has shown what is said in the Title. If I type 'source $HOME/.bashrc', it also shows that.

I have search in the installation problems, find a similar problem 'gcc: error: ...', but my problem is 'cc' not 'gcc'.

I have used the way it says, 'sudo update-alternatives' --list mpi', it returns /usr/include/mpich, which is different from '/usr/mpich/include'. I also try to fix it with 'sudo update-alternatives --set mpi /usr/lib/openmpi/include', it shows 'update-alternatives: error: alternative /usr/lib/openmpi/include for mpi not registered; not setting'.

Please give some help!
Zhiyuan Ren

---
Moderator note - The original title was: cc: error: unrecognized command line option ‘--showme:link’

Last edited by wyldckat; July 25, 2015 at 09:06. Reason: added note, because the title was changed
allan815 is offline   Reply With Quote

Old   July 22, 2015, 09:32
Default libopenmpi-dev:depends:libhwloc-dev but it is not going to be installed
  #2
New Member
 
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 4
allan815 is on a distinguished road
Dear all,

I am installing of222 into ubuntu14.04. When I type

''sudo apt-get install libscotch-dev libopenmpi-dev''

I has shown that:

'libopenmpi-dev:depends:libhwloc-dev but it is not going to be installed
E:Unable to correct problems, you have held broken packages.'

Please give some help.
zhiyuan
allan815 is offline   Reply With Quote

Old   July 25, 2015, 09:09
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,125
Blog Entries: 39
Rep Power: 110
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Greetings Zhiyuan and welcome to the forum!

I joined the two posts you made into the same thread, because the two are related.

The first issue was because you only had MPICH installed; the mpicc command that OpenFOAM expects is from Open-MPI, not MPICH. This was why MPICH's mpicc command gave that message:
Code:
cc: error: unrecognized command line option ‘--showme:link’

As for the second post, please provide the complete output of the installation command, because that message on its own is not enough to diagnose the exact problem. Because it should mention somewhere that the "libhwloc-dev" cannot be installed for some reason.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 26, 2015, 04:57
Default
  #4
New Member
 
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 4
allan815 is on a distinguished road
I have solve this problem by using aptitude, not apt-get.
The code is,

$sudo apt-get install aptitude
$sudo aptitude install libboost-all-dev. (or libopenmpi-dev)

The next step is to choose "No", and "Yes", "Yes".

I do not know why need to use this way, but it works.
wyldckat likes this.
allan815 is offline   Reply With Quote

Old   July 26, 2015, 09:41
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,125
Blog Entries: 39
Rep Power: 110
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
Hi Zhiyuan,

Many thanks for sharing the solution you've found!

The reason for this is because the apt-get application uses a simplistic approach to installing packages. The aptitude application is more complete in features than apt-get and is therefore able to give you installation options on how to proceed when an problem is detected.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   July 27, 2015, 00:10
Default
  #6
New Member
 
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 4
allan815 is on a distinguished road
Now, I am install OF230 into ubuntu 14.04, following the wiki-installation step by step.

Before step 5, it is all right, but at step5, when I run "ln -s ...", it has shown " ln: failed to create symbolic link 'OpenFOAM-2.3.0/bin/mpicc ". No such file or directory"

And I ignore this problem, and go on to do the rest steps, it works and can run. However, when I restart, problem comes again. After "cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity", it has shown "bash: cd : /tutorials/incompressible/icoFoam/cavity" No such file or directory".

I have also remove mpich2 from ubuntu, but it does not work.

Hopefully answers back.
Zhiyuan
allan815 is offline   Reply With Quote

Old   July 27, 2015, 09:06
Default
  #7
New Member
 
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 4
allan815 is on a distinguished road
Oh, I have miss an important thing "of230" when I begin a new terminal window. If install follow the wike-installation step by step, this is a very important item.
wyldckat likes this.
allan815 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with OpenFOAM 1.7.1 on Ubuntu 14.10 (utopic unicorn) alfa_8C OpenFOAM Installation 2 February 3, 2015 04:16
Installing OpenFOAM 2.3.x on Ubuntu 14.04 samiam1000 OpenFOAM Installation 4 January 26, 2015 03:44
Problem installing OpenFOAM-1.6-ext on Ubuntu 14.04 afrotimy OpenFOAM Installation 4 October 4, 2014 11:36
How to Install Openfoam 2.2.2 in Ubuntu 14.04? satty_00 OpenFOAM Installation 7 May 18, 2014 10:04
Installing OpenFOAM 1.6 on Ubuntu 10.4 sda OpenFOAM Installation 5 May 27, 2010 20:19


All times are GMT -4. The time now is 09:50.