20111107 ns2-required cygwinpkg

19,784 views

Published on

Published in: Technology, Business
1 Comment
2 Likes
Statistics
Notes
  • You don't happen to know why PDCP and GTP-U protocolos are not implemented in EURANE extension for ns-2. Do you? I'd be very grateful if you answered me. Thank you
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
19,784
On SlideShare
0
From Embeds
0
Number of Embeds
13,156
Actions
Shares
0
Downloads
297
Comments
1
Likes
2
Embeds 0
No embeds

No notes for slide
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • Tip: Add your own speaker notes here.
  • 20111107 ns2-required cygwinpkg

    1. 1. Required Cygwin Packages for NS2 by Teerawat Issariyakul http://www.ns2ultimate.com November 2011 http://www.ns2ultimate.com
    2. 2. Outline <ul><li>Introduction </li></ul><ul><li>Cygwin required packages </li></ul><ul><li>How do I know? </li></ul><ul><li>How to install missing packages? </li></ul>http://www.ns2ultimate.com
    3. 3. Introduction <ul><li>Here is one of the system requirement for NS2 installation </li></ul><ul><ul><li>Windows Platform </li></ul></ul><ul><ul><li>Cygwin 1.7.9 with additional packages: gcc4, gcc4-g++, gzip, make, patch, perl, w32api, libmpfr4, X11 </li></ul></ul><ul><li>NS 2.35 (full-release) </li></ul>http://www.ns2ultimate.com
    4. 4. How do I know? <ul><li>That those packages are required? </li></ul><ul><li>Just run “./install” at the ns2 directory and you’ll see </li></ul>http://www.ns2ultimate.com Checking for gcc4… NO!
    5. 5. How do I know? <ul><li>You can continue by entering ‘y’ </li></ul><ul><li>But there is no guarantee that your installation will be successful </li></ul>http://www.ns2ultimate.com Do you wish to proceed regardless? [y/N]
    6. 6. How do I know? <ul><li>Suppose you enter ‘y’ </li></ul><ul><li>You will see that several packages are missing </li></ul>http://www.ns2ultimate.com Checking for gcc4-g++… NO!
    7. 7. Suggestion <ul><li>First, keep pressing ‘y’. </li></ul><ul><li>Write down all missing packages. </li></ul><ul><li>Well, here is the list: gcc4, gcc4-g++, make, gzip, patch, perl, w32api, X11 </li></ul><ul><li>Go back to install missing packages using the Cygwin setup wizard. </li></ul><ul><li>Upon completion, install NS2 again by executing </li></ul><ul><li>>>./install </li></ul>http://www.ns2ultimate.com
    8. 8. Installing missing packages http://www.ns2ultimate.com 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’
    9. 9. UNFORTUNATELY, WE’RE NOT DONE… http://www.ns2ultimate.com
    10. 10. Error Again! http://www.ns2ultimate.com <ul><li>This is with the installation of Tcl </li></ul><ul><li>Even if you installed all required packages, you are still going to see this error! </li></ul>… error: C compiler cannot create executable Tcl8.5.10 configuration failed! Exiting… See ‘ config.log ’ for more details.
    11. 11. Let’s see the file config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by tcl configure 8.5, which was generated by GNU Autoconf 2.59. Invocation command line was … configure:1785: checking for C compiler default output file name configure: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 directory configure:1791: $? = 1 http://www.ns2ultimate.com <ul><li>Location: ns-allinone-2.35/tcl8.5.10/unix </li></ul>Here is the problem: cygmpfr-4.dll is not installed.
    12. 12. Let’s fix it! http://www.ns2ultimate.com <ul><li>Go to Cygwin and install a package “ libmfr4 ” </li></ul><ul><li>Then reinstall NS2. </li></ul>THIS TIME IT SHOULD WORK!!
    13. 13. For more information about NS 2 Please see this book from Springer T. Issaraiyakul and E. Hossain, “Introduction to Network Simulator NS2”, Springer 2009 http://www.ns2ultimate.com

    ×