1

I have gcc-7.2.0 I want to install ns2.35 which requires gcc-4.4. How to solve this problem. I have tried many commands and have downloaded Gcc4.4 tar file.

please help me for solving this problem.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
Akhil
  • 31

1 Answers1

2

You can simply install the ns2 package from Canonical’s package repository.1 It comes in version 2.35 for all currently supported Ubuntu releases. You need to enable the Universe repository, if you haven't done so yet, to access this packages.

1 As always you can use your favourite package manager to install the ns2 package, e. g. Software Center, GNOME Software, Synaptic or the Apt command-line interface (sudo apt install ns2).

David Foerster
  • 36,264
  • 56
  • 94
  • 147
  • sir, can you further help me what steps I have to do? – Akhil Apr 11 '18 at 10:46
  • Did you enable the Universe repository? Did you install the ns2 package successfully? (Do you know how to install packages at all?) – David Foerster Apr 11 '18 at 10:49
  • sir, i have downloaded ns2 package from this link and enabled universe repository. please tell me the next steps. – Akhil Apr 11 '18 at 11:08
  • Makefile:93: recipe for target 'mdart/mdart_adp.o' failed make: *** [mdart/mdart_adp.o] Error 1 Ns make failed! – Akhil Apr 11 '18 at 11:12
  • I don't know sir. – Akhil Apr 11 '18 at 11:15
  • please help me "How to install correctly?" – Akhil Apr 11 '18 at 11:15
  • How did you get make output from a package installation. This is confusing. Could you please edit your question to explain what exactly you did and what happened as a result? – David Foerster Apr 11 '18 at 11:22
  • sir first I extracted this package and copied it to ns2.35 all in one. then edited line no. 137 to "this->" in link state and then used "./install" command – Akhil Apr 11 '18 at 11:25
  • Sir, Overall tell me the complete ns2.35 installation steps. currently my ubuntu version is 17.10 – Akhil Apr 11 '18 at 11:35
  • 1
    The complete installation steps are in the answer: 1) Enable the Universe repository, if not done yet, as described in the answer(s) to the linked question and 2) install the ns2 package via the Apt package manager, e. g. with the command sudo apt install ns2. This is exactly what I wrote in my answer. – David Foerster Apr 11 '18 at 11:44
  • »» tell me the complete ns2.35 build steps «« : Please see my answer here https://askubuntu.com/questions/1023978/ns2-compilation-errror-in-ubuntu – Knud Larsen Apr 11 '18 at 18:22
  • As you’ve never accepted an answer before: if this answers your question, don’t forget to click the grey ☑ under the number at the left of this text to accept it, which means “yes, this answer is valid”! – David Foerster Apr 12 '18 at 13:08