Top Banner
Required Cygwin Required Cygwin Packages for NS2 Packages for NS2 by Teerawat Issariyakul http://www.ns2ultimate.com November 2011 http://www.ns2ultimate.com 1
13

20111107 ns2-required cygwinpkg

Dec 18, 2014

Download

Technology

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 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

Page 2: 20111107 ns2-required cygwinpkg

OutlineOutlineIntroductionCygwin required packagesHow do I know?How to install missing packages?

http://www.ns2ultimate.com 2

Page 3: 20111107 ns2-required cygwinpkg

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

Page 4: 20111107 ns2-required cygwinpkg

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!

Page 5: 20111107 ns2-required cygwinpkg

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]

Page 6: 20111107 ns2-required cygwinpkg

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!

Page 7: 20111107 ns2-required cygwinpkg

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

Page 8: 20111107 ns2-required cygwinpkg

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’

Page 9: 20111107 ns2-required cygwinpkg

UNFORTUNATELY, UNFORTUNATELY,

WE’RE NOT DONE…WE’RE NOT DONE…

http://www.ns2ultimate.com 9

Page 10: 20111107 ns2-required cygwinpkg

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.

Page 11: 20111107 ns2-required cygwinpkg

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.

Page 12: 20111107 ns2-required cygwinpkg

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!!

Page 13: 20111107 ns2-required cygwinpkg

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