New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on installation in Ubuntu 15.10 amd64 #601

Closed
ederollora opened this Issue Mar 4, 2016 · 13 comments

Comments

Projects
None yet
5 participants
@ederollora
Copy link

ederollora commented Mar 4, 2016

The error is the following one:

/oflops/traffic_generator.c:140: undefined reference to `time_diff'
collect2: error: ld returned 1 exit status
Makefile:574: recipe for target 'oflops' failed
make[2]: *** [oflops] Error 1
make[2]: Leaving directory '/home/txapela/sdn/oflops'
Makefile:639: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/txapela/sdn/oflops'
Makefile:431: recipe for target 'all' failed
make: *** [all] Error 2

Mininet seems to be installed but when I try a test command it gets stuck here:

sudo mn --test pingall
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
c0
*** Starting 1 switches
s1 ...
*** Waiting for switches to connect

I can't also install it again so any help would be nice.

Thanks

@lantz

This comment has been minimized.

Copy link
Member

lantz commented Mar 4, 2016

Can you please confirm that:

1) you are using the current master version of Mininet
2) you are installing oflops using mininet/util/install.sh -b
3) this command is not working?

And can you please include the entire build/install log from steps 1-3 above?
Thanks.

@surfoor

This comment has been minimized.

Copy link

surfoor commented Apr 28, 2016

i am stucked there while installing cbench on ubuntu 15.10
make a possible solution mate . there is no online solution available. Help the community around you

@ibbad

This comment has been minimized.

Copy link

ibbad commented May 8, 2016

@surfoor the problem is resolved if you stick to master branch and do not checkout on branch 2.2.1. However, it still does not resolve the issue.

sudo mn --test pingall
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
c0
*** Starting 1 switches
s1 ...
*** Waiting for switches to connect

@ederollora

This comment has been minimized.

Copy link
Author

ederollora commented Jun 2, 2016

I had the same problem in both Ubuntu 15 and 16. The solution as said, was to checkout from master instead of 2.2.1 . Once done the installation seems to be ok.

Running sudo mn --test pingall was succesful at least for me in Ubuntu 16.

sin titulo

@lantz

This comment has been minimized.

Copy link
Member

lantz commented Jun 2, 2016

Closing - it's fixed in master as you have noted.

@haazy

This comment has been minimized.

Copy link

haazy commented Mar 6, 2017

Hello All,

I am facing the same problem.

How do I use the master branch?

Thanks

@ederollora

This comment has been minimized.

Copy link
Author

ederollora commented Mar 6, 2017

Instead of checking out from 2.2.1, do it from master. You can see all the tags by typing:

cd mininet (inside mininet's root folder )
git tag

To get the code from the master then just clone and do NOT git checkout. Just follow these commands:

git clone git://github.com/mininet/mininet
mininet/util/install.sh [options] (replace options with -a, -s ... or the option you want.)

@haazy

This comment has been minimized.

Copy link

haazy commented Mar 6, 2017

Thanks so much ederollora .

This works.

It's fine now

@surfoor

This comment has been minimized.

Copy link

surfoor commented Mar 6, 2017

@ederollora

This comment has been minimized.

Copy link
Author

ederollora commented Mar 6, 2017

I definitely back @surfoor 's words. 14,04 is perfect. There is enough support for mininet and also for additional controllers you may need. No need to go with 15 or 16 unless it is mandatory.

@haazy

This comment has been minimized.

Copy link

haazy commented Mar 6, 2017

16 is kind of mandatory for me.

Anyway I am getting this error. I am very new to mininet. This is my first time and I am just trying to get helpful resources online to set it up and practise with it so that I can become a guru one day.

image

@ederollora

This comment has been minimized.

Copy link
Author

ederollora commented Mar 6, 2017

well @haazy maybe we can help you switching to 14.04. Honestly most of the things are prepared for 14.04 and there is little support right now for 16. I would really consider on switching to 14.04, life just gets easier.

In the meanwhile it looks like there is a process running that interferes with the test you are trying to make. It looks its PID is 28802. Check OVS PID is that by running

ps aux | grep ovs

I am guessing it is so try to run:

sudo kill -9 28802

The process should be killed. However you should know that in between mininet simulations you have to "clean" it. You do so by running:

sudo mn -c

Therefore when you run mininet tests and you stop them run the command above before you try again just to make sure there will be no conflicts. Let me know if it works although I have no Ubuntu 16 VM right now to make my tests. If problems persist, just go with 14.04.

@lantz

This comment has been minimized.

Copy link
Member

lantz commented Mar 7, 2017

I'm opening up a new issue #720 for this, since it's something else.

Please create new issues rather than piggy-backing onto a closed issue.

@lantz lantz closed this Mar 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment