Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix some errors in install script.
My environment:
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.4 LTS"
1: Need curl
$ ./util/install.sh -L
...
Setting up zlib1g-dev (1:1.2.3.4.dfsg-3ubuntu4) ...
Setting up libssl-dev (1.0.1-4ubuntu5.11) ...
Setting up libssl-doc (1.0.1-4ubuntu5.11) ...
Setting up uml-utilities (20070815-1.3ubuntu1) ...
...done.
./util/install.sh: line 778: curl: command not found
2: Need permission (AFAIK, original Mininet can be executed by non-root user)
$ ./util/install.sh -L
...
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 24896 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /usr/local/bin/kerl: Permission denied
27 24896 27 6922 0 0 23704 0 0:00:01 --:--:-- 0:00:01 33765
curl: (23) Failed writing body (0 != 6922)
3: Need permission (2)
$ ./util/install.sh -L
Erlang/OTP R15B02 (R15B02) has been successfully built
mkdir: cannot create directory `/usr/local/lib/R15B02': Permission denied
Destination is not a directory
4: Need setpcap
$ ./util/install.sh -L
Compiled src/linc_us3_queue_sup.erl
Compiled src/linc_us3_queue.erl
Compiled src/linc_us3_flow.erl
==> rel (compile)
==> LINC-Switch (compile)
==> rel (generate)
sudo: setcap: command not found
make: *** [rel] Error 1