LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc 4.3 on Ubuntu 9.10 (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-4-3-on-ubuntu-9-10-a-782783/)

kingroudy 01-17-2010 11:40 AM

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)

knudfl 01-17-2010 12:47 PM

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

kingroudy 01-18-2010 04:10 AM

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.

cola 01-18-2010 06:46 AM

Quote:

Originally Posted by kingroudy (Post 3829832)
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


knudfl 01-19-2010 07:18 AM

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


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