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?...
- 09-12-2011 #1Just 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?
- 09-12-2011 #2Linux Guru
- 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!
- 09-13-2011 #3
What older version do you need? Won't it work with compat-gcc-34/compat-gcc-34-c++ packages?
- 09-13-2011 #4Just Joined!
- Join Date
- Jul 2008
- Posts
- 9
- 09-13-2011 #5Just 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
- 09-13-2011 #6Just 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.


Reply With Quote
