LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2016, 04:07 AM   #1
srinivas_k
LQ Newbie
 
Registered: Jul 2016
Posts: 3

Rep: Reputation: Disabled
i have ubuntu 16.04 and gcc 5.1.3 default compiler but i need want gcc 4.4 compiler


plz tell me which version of ubuntu have default gcc compiler as gcc-4.4 and which vesrsion of ns2 i have to install for video transmitting ...bcz new vesrsion of ubuntu gcc compilers giving errors for video streaming and transmitting...be.tcl script also showing agent/myudp kind of error

Last edited by srinivas_k; 07-05-2016 at 06:57 AM.
 
Old 07-05-2016, 04:20 AM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
srinivas_k,

Welcome to LQ.

NB You may or may not first need to remove the existing gcc version.

You then need to modify your /etc/apt/sources.list and then install gcc-4.4:

http://installion.co.uk/ubuntu/vivid...all/index.html

Last edited by beachboy2; 07-05-2016 at 04:29 AM.
 
Old 07-05-2016, 05:10 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What "video transmitting" is that? Maybe the problem you are having has a better solution than using an old compiler.
 
Old 07-05-2016, 06:50 AM   #4
srinivas_k
LQ Newbie
 
Registered: Jul 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by srinivas_k View Post
i have ubuntu 16.04 and gcc 5.1.3 default compiler but i need gcc 4.4 compiler for video transmitting....
but im getting error as Eackage gcc-4.4 has no instsllation candidate...
and my source.list is showing empty file...
 
Old 07-06-2016, 10:29 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 16.04 : Installing g++/gcc version 4.4 : Add two lines to /etc/apt/sources.list
Etc. etc., see http://askubuntu.com/questions/78917.../789284#789284

For ns-allinone-2.35_gcc482.tar.gz ( 'Oct 2014' update ) : sudo apt-get install g++-4.8
Reason for g++-4.8 : The Ubuntu g++-5.1.3 cannot compile ns2.

be_a01.tcl :
tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < myevalvid2_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
sudo make install ('make install' will copy ns to /usr/local/bin/)
cp ns ns-evalvid2 (This is your backup of 'ns')
sudo cp ns-evalvid2 /usr/local/bin/

Simulation : ns-evalvid2 be_a01.tcl (To be sure the right 'ns' is used.)
INFO :
. http://www.linuxquestions.org/questi...gs/myevalvid2/
. http://www.linuxquestions.org/questions/tags/myevalvid/


-

Last edited by knudfl; 07-06-2016 at 10:55 AM.
 
  


Reply

Tags
ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GCC 4.9 vs. GCC 5.1 vs. GCC 6.0 SVN Compiler Benchmarks LXer Syndicated Linux News 0 06-08-2015 01:00 PM
why is gcc(and not g++) default compiler in debian? ciden Programming 7 06-03-2008 04:44 AM
Changing default gcc compiler utanja Debian 2 09-05-2007 06:44 PM
making old version of GCC your default compiler knobby67 Programming 4 08-01-2006 04:21 PM
How to change the gcc compiler's default version? aladin Linux - Software 8 10-09-2005 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration