How to install gcc-4.8 and g++-4.8

915 views
Skip to first unread message

Vivek Kumar

unread,
Dec 7, 2020, 6:25:38 AM12/7/20
to Network Simulator 2 (NS2)

prem@prem-pc:~/Desktop/ns2$ sudo apt install gcc-4.8 g++-4.8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gcc-4.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package g++-4.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc-4.8' has no installation candidate
E: Package 'g++-4.8' has no installation candidate


Gutema Soboka

unread,
Dec 7, 2020, 6:32:30 AM12/7/20
to ns-u...@googlegroups.com

install gcc-4.8 and g++-4.8

open the file using sudo mode

$] sudo nano /etc/apt/sources.list

Include the following line

deb http://in.archive.ubuntu.com/ubuntu bionic main universe

$] sudo apt update

$] sudo apt install gcc-4.8 g++-4.8


Virus-free. www.avast.com

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/2f2d7044-cf72-4137-88d4-ca776eb301fen%40googlegroups.com.


--
  • Respectfully yours!!

Thank you lord for all my blessings!!!

Gutema Seboka Daba(Msc)

Lecturer, College of Engineering and Technology

School of computing and Informatics

Department of Computer Science

Dilla University, Ethiopia

 Oda Ya'a Campus

610 Block 09 office

P.O.Box :419

Mobile:- +251-917-930-290 or   +251-906-457-021

E-mail=gutem...@du.edu.et/gutem...@gmail.com

             

knudfl

unread,
Dec 7, 2020, 7:47:09 AM12/7/20
to Network Simulator 2 (NS2)
Hi.

ns2 requires gcc version 4.6 .... 5.x no PIE. The later Ubuntu gcc 5.4 .. 5.5 are built with "PIE" and are not usable for ns2.



Download .... and install :
$ sudo gdebi Downloads/gcc48-c++_4.8.4-2ubuntu14_amd64.deb
Provides /usr/local/bin/{gcc48, g++48}
... i.e. the ns2 build command is then ...
$ export CC=gcc48 CXX=g++48 && ./install
Reply all
Reply to author
Forward
0 new messages