LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-17-2010, 11:40 AM   #1
kingroudy
LQ Newbie
 
Registered: Feb 2007
Distribution: Ubuntu 7.04
Posts: 8

Rep: Reputation: 0
gcc 4.3 on Ubuntu 9.10


i'm trying to install gcc 4.3 on ubuntu 9.10 using the following
Code:
sudo apt-get install g++-4.3
CC=gcc-4.3 CXX=g++-4.3 ./install
the first line is ok, but i dont know what to do with the second.
if i type both in one command, i get "E: couldn't run package CC"
and if i run each separatly, i get "./install not found in the directory"
objective: install ns 2.34 on ubuntu 9.10 (32-bit)
using: sun virtualbox (latest version)
 
Old 01-17-2010, 12:47 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
ns-allinone-2.34

Quote:
sudo apt-get install g++-4.3
a) Is OK, will install gcc and g++ version 4.3 .

b1) the next command to be done : cd ns-allinone-2.34/
b2) and then : CC=gcc-4.3 CXX=g++-4.3 ./install
Also OK, will use version 4.3 for some files, not all.

But why not use the default gcc / g++ = version 4.4.1 ?
I don't remember any problems with ns-2.34 and ver. 4.4.1
on Ubuntu 9.10 Karmic. Where did you get the above information ? ?

Anyway here it is ...
The only safe method is to do :

1) Delete 'Makefile' and 'config.status' in the applications in question ..
... ( if the files are present.)

2) Edit the ' Makefile.in ' in each application from

CC = @CC@
CPP = @CXX@

to

CC = gcc-4.3
CPP = g++-4.3

.....
Other info : LQ Search → 'Tag Name' = ns2
.....

Last edited by knudfl; 01-17-2010 at 01:46 PM.
 
1 members found this post helpful.
Old 01-18-2010, 04:10 AM   #3
kingroudy
LQ Newbie
 
Registered: Feb 2007
Distribution: Ubuntu 7.04
Posts: 8

Original Poster
Rep: Reputation: 0
thanks for the reply, you gave me an understanding too
i actually got it to work before reading your post, by editing something in the OTCL 1.13 config file.
i validated my results and everything now works perfect.
thank you again.
 
Old 01-18-2010, 06:46 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,047

Rep: Reputation: 65
Quote:
Originally Posted by kingroudy View Post
i'm trying to install gcc 4.3 on ubuntu 9.10 using the following
Code:
sudo apt-get install g++-4.3
CC=gcc-4.3 CXX=g++-4.3 ./install
the first line is ok, but i dont know what to do with the second.
if i type both in one command, i get "E: couldn't run package CC"
and if i run each separatly, i get "./install not found in the directory"
objective: install ns 2.34 on ubuntu 9.10 (32-bit)
using: sun virtualbox (latest version)
I remember, only these should do.
Code:
sudo aptitude install g++
sudo aptitude install gcc
 
Old 01-19-2010, 07:18 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I actually found out by a new install of Ubuntu 9.10
that gcc-4.4.1 isn't always working with otcl-1.13 .
( So I just used gcc-4.3 ).

But difficult to trace why.
Probably a certain combination of installed package versions.
As already said, I haven't met the issue before.

My previous install did this OK, with gcc-4.4.1 only.
.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Install GCC 2.9 on Ubuntu 8.10 aznium Linux - Software 3 12-26-2008 10:37 AM
gcc in ubuntu ikarthik Linux - Newbie 4 09-19-2008 02:10 PM
Reinstalling GCC on ubuntu darkjeffro Linux - Software 2 02-01-2007 07:19 PM
gcc on Ubuntu aznluvsmc Ubuntu 3 08-06-2005 12:59 AM
Ubuntu and GCC help! Jmcatch742 Linux - Distributions 2 10-25-2004 03:58 PM

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

All times are GMT -5. The time now is 12:31 AM.

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