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

[OpenFOAM.org] 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 Search this Thread Display Modes
Old   July 21, 2015, 09: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: 6
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 10:06. Reason: added note, because the title was changed
allan815 is offline   Reply With Quote

Old   July 22, 2015, 10: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: 6
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, 10:09
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,942
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 05:57
Default
  #4
New Member
 
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 6
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, 10:41
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,942
Blog Entries: 42
Rep Power: 121
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 01:10
Default
  #6
New Member
 
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 6
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, 10:06
Default
  #7
New Member
 
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 6
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Paraview not found when installing OpenFoam to Ubuntu 14.04 tabsquare OpenFOAM Installation 75 December 30, 2017 12:21
[OpenFOAM.org] Problems installing OpenFOAM 2.4.0 on Ubuntu 16.04 donminoti OpenFOAM Installation 12 March 16, 2017 13:16
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[OpenFOAM.org] Installing OpenFOAM 2.3.x on Ubuntu 14.04 samiam1000 OpenFOAM Installation 4 January 26, 2015 03:44
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04


All times are GMT -4. The time now is 18:41.