Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
59d32629
Commit
59d32629
authored
14 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Fixed module installation error, for real.
parent
dd2a2442
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mininet/moduledeps.py
+3
-4
3 additions, 4 deletions
mininet/moduledeps.py
util/install.sh
+10
-8
10 additions, 8 deletions
util/install.sh
with
13 additions
and
12 deletions
mininet/moduledeps.py
+
3
−
4
View file @
59d32629
...
...
@@ -37,7 +37,7 @@ def moduleDeps( subtract=None, add=None ):
info
(
'
*** Removing
'
+
mod
+
'
\n
'
)
rmmodOutput
=
rmmod
(
mod
)
if
rmmodOutput
:
error
(
'
Error removing
'
+
mod
+
'
\n
%s
'
%
rmmodOutput
)
error
(
'
Error removing
'
+
mod
+
'
: %s
\n
'
%
rmmodOutput
)
exit
(
1
)
if
mod
in
lsmod
():
error
(
'
Failed to remove
'
+
mod
+
'
; still there!
\n
'
)
...
...
@@ -47,9 +47,8 @@ def moduleDeps( subtract=None, add=None ):
info
(
'
*** Loading
'
+
mod
+
'
\n
'
)
modprobeOutput
=
modprobe
(
mod
)
if
modprobeOutput
:
error
(
'
Error inserting
'
+
mod
+
'
;
\n
See INSTALL.
\n
%s
'
%
modprobeOutput
)
exit
(
1
)
error
(
'
Error inserting
'
+
mod
+
'
- is it installed?
\n
'
+
'
Error was: %s
\n
'
%
modprobeOutput
)
if
mod
not
in
lsmod
():
error
(
'
Failed to insert
'
+
mod
+
'
\n
'
)
exit
(
1
)
...
...
This diff is collapsed.
Click to expand it.
util/install.sh
+
10
−
8
View file @
59d32629
...
...
@@ -127,7 +127,12 @@ function of {
sudo
apt-get remove
-y
avahi-daemon
# Disable IPv6. Add to /etc/modprobe.d/blacklist:
sudo
sh
-c
"echo 'blacklist net-pf-10
\n
blacklist ipv6' >> /etc/modprobe.d/blacklist"
if
[
"
$DIST
"
=
"Ubuntu"
]
;
then
BLACKLIST
=
/etc/modprobe.d/blacklist.conf
else
BLACKLIST
=
/etc/modprobe.d/blacklist
fi
sudo
sh
-c
"echo 'blacklist net-pf-10
\n
blacklist ipv6' >>
$BLACKLIST
"
}
# Install OpenVSwitch
...
...
@@ -144,7 +149,7 @@ function ovs {
sudo
apt-get
-y
--force-yes
-t
lenny-backports
install
autoconf
fi
if
[
"
$DIST
"
=
=
"Ubuntu"
]
;
then
if
[
"
$DIST
"
=
"Ubuntu"
]
;
then
sudo
apt-get
-y
install
$KERNEL_HEADERS
fi
...
...
@@ -170,9 +175,9 @@ function nox {
#Install NOX deps:
sudo
apt-get
-y
install
autoconf automake g++ libtool python python-twisted swig libxerces-c2-dev libssl-dev make
if
[
"
$DIST
"
=
=
"Debian"
]
;
then
if
[
"
$DIST
"
=
"Debian"
]
;
then
sudo
apt-get
-y
install
libboost1.35-dev
elif
[
"
$DIST
"
=
=
"Ubuntu"
]
;
then
elif
[
"
$DIST
"
=
"Ubuntu"
]
;
then
sudo
apt-get
-y
install
python-dev libboost-dev
sudo
apt-get
-y
install
libboost-filesystem-dev
sudo
apt-get
-y
install
libboost-test-dev
...
...
@@ -187,7 +192,7 @@ function nox {
# With later autoconf versions this doesn't quite work:
./boot.sh
--apps-core
||
true
if
[
"
$DIST
"
=
=
"Debian"
]
;
then
if
[
"
$DIST
"
=
"Debian"
]
;
then
# So use this instead:
autoreconf
--install
--force
fi
...
...
@@ -292,9 +297,6 @@ function all {
oftest
cbench
other
# BL Hack: for some annoying reason, the first depmod doesn't
# seem to take on Ubuntu, so do it once again for good measure!
modprobe
echo
"Please reboot, then run ./mininet/util/install.sh -c to remove unneeded packages."
echo
"Enjoy Mininet!"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment