Find the answer to your Linux question:
Results 1 to 6 of 6
installing ns2.34 in fedora 15 needs old gcc compiler. is there any ideas to install ns2.34 on fedora 15 with clean steps?...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    9

    ns2.34 on fedora 15

    installing ns2.34 in fedora 15 needs old gcc compiler. is there any ideas to install ns2.34 on fedora 15 with clean steps?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You can install multiple versions of the GCC compiler suite on a system, I have both gcc 3.4 and 4.4 on my primary system. On another system I have 2.95, 3.4, 4.4, and 4.5.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    What older version do you need? Won't it work with compat-gcc-34/compat-gcc-34-c++ packages?

  4. #4
    Just Joined!
    Join Date
    Jul 2008
    Posts
    9
    Quote Originally Posted by Rubberman View Post
    You can install multiple versions of the GCC compiler suite on a system, I have both gcc 3.4 and 4.4 on my primary system. On another system I have 2.95, 3.4, 4.4, and 4.5.
    i am having gcc 4.6 on my fedora 15 but i don't know to make use of older gcc as well as to use it.please help.

  5. #5
    Just Joined!
    Join Date
    Jul 2008
    Posts
    9
    below 4.1. sothat the older ns2.34 will be compiled in it. the newer (fedora 15) gcc 4.1 is not compiling the old 2.34 without errors.
    i want to know how to compile older versions of gcc and to use it.pls help

  6. #6
    Just Joined!
    Join Date
    Jul 2008
    Posts
    9

    ns2.34 on fedora 15 solved

    Edit this file-- ./ns-allinone-2.34/ns-2.34/mobile/nakagami.cc
    In line number 183 instead of--
    resultPower = ErlangRandomVariable::ErlangRandomVariable(Pr/m, int_m).value();
    write--
    resultPower = ErlangRandomVariable(Pr/m, int_m).value();
    In line number 185 instead of--
    resultPower = GammaRandomVariable::GammaRandomVariable(m, Pr/m).value();
    write--
    resultPower = GammaRandomVariable(m, Pr/m).value();



    And also edit the file-- ./ns-allinone-2.34/ns-2.34/tools/ranvar.cc
    In line number 219 instead of--
    return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);
    write--
    return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);



    Then in the file mac/mac-802_11Ext.h you need to include another file since the "offsetof" is a problem here. So jst add
    #include<cstddef>

    Another missing problem exists in the file mobile/nakagami.cc

    At the end of line #185 there isn't any semicolon. So jst add that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...