Installation of NS3 on Ubuntu 12.04 Issue: sudo apt-get install openmpi*

5,911 views
Skip to first unread message

jason....@mail.dcu.ie

unread,
Mar 11, 2013, 4:18:33 PM3/11/13
to ns-3-...@googlegroups.com

Hi,

I’m a bit of a novice with linux but need NS3 for university. I was given a set of packages to have install:

sudo apt-get install gcc g++ python
sudo apt-get install gcc g++ python python-dev
sudo apt-get install mercurial
sudo apt-get install bzr
sudo apt-get install gdb valgrind
sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl
sudo apt-get install flex bison libfl-dev
sudo apt-get install tcpdump
sudo apt-get install sqlite sqlite3 libsqlite3-dev
sudo apt-get install libxml2 libxml2-dev
sudo apt-get install libgtk2.0-0 libgtk2.0-dev
sudo apt-get install vtun lxc
sudo apt-get install uncrustify
sudo apt-get install doxygen graphviz imagemagick
sudo apt-get install texlive texlive-extra-utils texlive-latex-extra
sudo apt-get install python-sphinx dia
sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev
sudo apt-get install libboost-signals-dev libboost-filesystem-dev

sudo apt-get install openmpi*

 

But when I run: sudo apt-get install openmpi* I get the following:

jay@ubuntu:~$ sudo apt-get install openmpi*
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘libmeep-openmpi6′ for regex ‘openmpi*’
Note, selecting ‘libmeep-openmpi-dev’ for regex ‘openmpi*’
Note, selecting ‘openmpi1.5-checkpoint’ for regex ‘openmpi*’
Note, selecting ‘meep-openmpi’ for regex ‘openmpi*’
Note, selecting ‘openmpipython’ for regex ‘openmpi*’
Note, selecting ‘yorick-mpy-openmpi’ for regex ‘openmpi*’
Note, selecting ‘gromacs-openmpi’ for regex ‘openmpi*’
Note, selecting ‘mpqc-openmpi’ for regex ‘openmpi*’
Note, selecting ‘libopenmpi1.3′ for regex ‘openmpi*’
Note, selecting ‘openmpi-checkpoint’ for regex ‘openmpi*’
Note, selecting ‘openmpi1.5-bin’ for regex ‘openmpi*’
Note, selecting ‘openmpi1.5-doc’ for regex ‘openmpi*’
Note, selecting ‘libhdf5-openmpi-dev’ for regex ‘openmpi*’
Note, selecting ‘openmpi-libs0′ for regex ‘openmpi*’
Note, selecting ‘libopenmpi1.5-2′ for regex ‘openmpi*’
Note, selecting ‘openmpi-mpidoc’ for regex ‘openmpi*’
Note, selecting ‘libhdf5-openmpi-1.8.4′ for regex ‘openmpi*’
Note, selecting ‘libopenmpi1.5-dbg’ for regex ‘openmpi*’
Note, selecting ‘openmpi-bin’ for regex ‘openmpi*’
Note, selecting ‘openmpi-dbg’ for regex ‘openmpi*’
Note, selecting ‘libopenmpi1.5-dev’ for regex ‘openmpi*’
Note, selecting ‘openmpi-dev’ for regex ‘openmpi*’
Note, selecting ‘openmpi-doc’ for regex ‘openmpi*’
Note, selecting ‘openmpi-common’ for regex ‘openmpi*’
Note, selecting ‘openmpi1.5-common’ for regex ‘openmpi*’
Note, selecting ‘libopenmpi-dbg’ for regex ‘openmpi*’
Note, selecting ‘libopenmpi-dev’ for regex ‘openmpi*’
Note, selecting ‘libopenmpi1′ for regex ‘openmpi*’
Note, selecting ‘libopenmpi2′ for regex ‘openmpi*’
Note, selecting ‘libopenmpi-dev’ instead of ‘openmpi-dev’
Note, selecting ‘libopenmpi-dbg’ instead of ‘openmpi-dbg’
Note, selecting ‘libopenmpi1.3′ instead of ‘openmpi-libs0′
Note, selecting ‘openmpi-doc’ instead of ‘openmpi-mpidoc’
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libopenmpi1.5-2 : Conflicts: libopenmpi1.3 but 1.4.3-2.1ubuntu3 is to be installed
Conflicts: openmpi-libs0
libopenmpi1.5-dbg : Conflicts: libopenmpi-dbg but 1.4.3-2.1ubuntu3 is to be installed
Conflicts: openmpi-dbg
libopenmpi1.5-dev : Conflicts: libopenmpi-dev but 1.4.3-2.1ubuntu3 is to be installed
Conflicts: openmpi-dev
openmpi1.5-bin : Conflicts: openmpi-bin but 1.4.3-2.1ubuntu3 is to be installed
openmpi1.5-checkpoint : Conflicts: openmpi-checkpoint but 1.4.3-2.1ubuntu3 is to be installed
openmpi1.5-common : Conflicts: openmpi-common but 1.4.3-2.1ubuntu3 is to be installed
openmpi1.5-doc : Conflicts: openmpi-checkpoint (< 1.5.4-1) but 1.4.3-2.1ubuntu3 is to be installed
Conflicts: openmpi-doc but 1.4.3-2.1ubuntu3 is to be installed
Conflicts: openmpi-mpidoc
E: Unable to correct problems, you have held broken packages.
jay@ubuntu:~$

Any ideas on how to fix this? I am running Ubuntu 12.04 within VMware.

Thanks,

Jason

Longhao Zou

unread,
Mar 12, 2013, 7:49:08 AM3/12/13
to ns-3-users
Hi there,

you can try these command:

Firstly be sure you have install the G++:
sudo apt-get install gcc g++ 

Secondly, could you try to use this command to update you ubuntu package:
sudo apt-get update

And then try this:
sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev

Cheers,
Longhao

Best Regards,

Longhao Zou
Ph.D Researcher
Performance Engineering Laboratory
Dublin City University
Lero | The Irish Software Engineering Reseach Centre


--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Keshika Prematilake

unread,
Oct 9, 2013, 3:58:26 PM10/9/13
to ns-3-...@googlegroups.com
Thank you very much.

This post helped me to download mpirun successfully for Ubuntu12.04.

Azar Bavarsad

unread,
May 12, 2014, 4:22:01 AM5/12/14
to ns-3-...@googlegroups.com
hi
could u please help me in installin ns3?i need helppppp
thanks in advance

Konstantinos

unread,
May 12, 2014, 6:31:54 AM5/12/14
to ns-3-...@googlegroups.com
Please do not post in old and unrelated threads. 

Can you please open a new thread specifying what is the particular problem you have installing NS-3? Do you also want to install OpenMPI?
Have you followed the documentation, installed all required libraries?

Regards,
K.
Reply all
Reply to author
Forward
0 new messages