|
[Sponsors] |
[OpenFOAM.org] Having problems installing OpenFOAM 2.2.2 in Ubuntu 14.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 21, 2015, 09:01 |
Having problems installing OpenFOAM 2.2.2 in Ubuntu 14.04
|
#1 |
New Member
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
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 |
|
July 22, 2015, 10:32 |
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: 11 |
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 |
|
July 25, 2015, 10:09 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
July 26, 2015, 05:57 |
|
#4 |
New Member
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
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. |
|
July 26, 2015, 10:41 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 |
|
July 27, 2015, 01:10 |
|
#6 |
New Member
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
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 |
|
July 27, 2015, 10:06 |
|
#7 |
New Member
RZY
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
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.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Problems installing OpenFOAM 2.4.0 on Ubuntu 16.04 | donminoti | OpenFOAM Installation | 13 | January 13, 2021 18:07 |
[OpenFOAM.org] Paraview not found when installing OpenFoam to Ubuntu 14.04 | tabsquare | OpenFOAM Installation | 75 | December 30, 2017 12:21 |
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 |