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.

  • Possible duplicate of Old version of gcc for new Ubuntu – David Foerster Apr 11 '18 at 10:14
  • I'm referring to richud’s answer specifically. All the other answer suggest the inclusion of package repositories from old releases which is a Bad Idea™ without proper package priority rules to accompany. – David Foerster Apr 11 '18 at 10:15
  • Oh, I just noticed that ns2 v2.35 is available in the package repositories of all supported Ubuntu releases. See my answer. – David Foerster Apr 11 '18 at 10:17
  • Thank you for replying. but i didn't understand what to do for successfull installation – Akhil Apr 11 '18 at 10:37
  • Could you please edit your question to include the output of lsb_release -a, grep -Fe universe /etc/apt/sources.list{,.d/*.list}, sudo apt-get update, and sudo apt-get -f install ns2? Thanks. – David Foerster Apr 11 '18 at 11:23

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).

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.