20111107 ns2-required cygwinpkg
-
Upload
teerawat-issariyakul -
Category
Technology
-
view
14.797 -
download
0
description
Transcript of 20111107 ns2-required cygwinpkg
Required Cygwin Required Cygwin Packages for NS2Packages for NS2
by Teerawat Issariyakul
http://www.ns2ultimate.com
November 2011
http://www.ns2ultimate.com 1
OutlineOutlineIntroductionCygwin required packagesHow do I know?How to install missing packages?
http://www.ns2ultimate.com 2
Here is one of the system requirement for NS2 installation◦ Windows Platform◦ Cygwin 1.7.9 with additional packages: gcc4, gcc4-g++, gzip, make, patch, perl, w32api, libmpfr4, X11
NS 2.35 (full-release)
IntroductionIntroduction
http://www.ns2ultimate.com 3
That those packages are required?Just run “./install” at the ns2
directory and you’ll see
How do I know?How do I know?
http://www.ns2ultimate.com 4
Checking for gcc4… NO!
You can continue by entering ‘y’But there is no guarantee that your
installation will be successful
How do I know?How do I know?
http://www.ns2ultimate.com 5
Do you wish to proceed regardless? [y/N]
Suppose you enter ‘y’You will see that several packages
are missing
How do I know?How do I know?
http://www.ns2ultimate.com 6
Checking for gcc4-g++… NO!
First, keep pressing ‘y’.
Write down all missing packages.
Well, here is the list: gcc4, gcc4-g++, make, gzip, patch, perl, w32api, X11
Go back to install missing packages using the Cygwin setup wizard.
Upon completion, install NS2 again by executing
>>./install
SuggestionSuggestion
http://www.ns2ultimate.com 7
Installing missing Installing missing packagespackages
http://www.ns2ultimate.com 8
Search the package
name here, e.g.,
gcc4
Expand package category
by clicking ‘+’
Click here to install all the
optional package
When you are done, hit ‘next’
UNFORTUNATELY, UNFORTUNATELY,
WE’RE NOT DONE…WE’RE NOT DONE…
http://www.ns2ultimate.com 9
Error Again!Error Again!
http://www.ns2ultimate.com 10
This is with the installation of TclEven if you installed all required
packages, you are still going to see this error!
… error: C compiler
cannot create executable
Tcl8.5.10 configuration
failed! Exiting…
See ‘config.log’
for more details.
This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake.
It was created by tcl configure 8.5, which wasgenerated by GNU Autoconf 2.59. Invocation command line was
…
configure:1785: checking for C compiler default output file nameconfigure:1788: gcc conftest.c >&5/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared libraries: cygmpfr-4.dll: cannot open shared object file: No such file or directoryconfigure:1791: $? = 1
Let’s see the file Let’s see the file config.logconfig.log
http://www.ns2ultimate.com 11
Location: ns-allinone-2.35/tcl8.5.10/unix
Here is the problem: cygmpfr-4.dll is not
installed.
Let’s fix it!Let’s fix it!
http://www.ns2ultimate.com 12
Go to Cygwin and install a package “libmfr4”
Then reinstall NS2.
THIS TIME IT SHOULD WORK!!
For more information For more information about NS 2about NS 2
Please see this book from Springer
T. Issaraiyakul and E. Hossain, “Introduction to Network Simulator NS2”, Springer 2009
http://www.ns2ultimate.com 13