![]() ![]() After fixing the above error, you may see another when attempting to install again. #!/usr/bin/env bash # Mininet install script for Ubuntu (and Debian Lenny) # Brandon Heller # Fail on error set -e # Fail on unset var usage set -o nounset # Location of CONFIG_NET_NS-enabled kernel(s) KERNEL_LOC = # Attempt to identify Linux release DIST =Unknown RELEASE =Unknown CODENAME =Unknown ARCH = `uname -m ` if then ARCH = "amd64" fi if then ARCH = "i386" fi test -e /etc/debian_version & DIST = "Debian" grep Ubuntu /etc/lsb-release &> /dev/null & DIST = "Ubuntu" if || then install = 'sudo apt-get -y install' remove = 'sudo apt-get -y remove' pkginst = 'sudo dpkg -i' # Prereqs for this script if ! which lsb_release &> /dev/null then $install lsb-release fi if ! which bc &> /dev/null then $install bc fi fi if which lsb_release &> /dev/null then DIST = `lsb_release -is ` RELEASE = `lsb_release -rs ` CODENAME = `lsb_release -cs ` fi echo "Detected Linux distribution: $DIST $RELEASE $CODENAME $ARCH " # Kernel params if then if then KERNEL_NAME = '3.0.0-15-generic' else KERNEL_NAME = `uname -r ` fi KERNEL_HEADERS =linux-headers- $ # Install Open vSwitch # Instructions derived from OVS INSTALL, INSTALL.OpenFlow and README files. /install to start the installation, and keep in mind should you need to restart the install later for any reason you will need to run sudo PCRE2SYSTEMno. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |