LinuxQuestions.org
Help answer threads with 0 replies.
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-09-2012, 10:03 AM   #1
esgol
Member
 
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Rep: Reputation: Disabled
Instaled G++ 4.7 over G++ 4.4.5 but still have 4.4.5 compile results and version info


Hi to everyone

I instaled G++ 4.7 over G++ 4.4.5 cause I programm concurent C++ but still have 4.4.5 compile results* and version info says still 4.4.5 the same WHEREAS If i re-enter
sudo apt-get install g++ 4.7
it says I'm up to date already.

LOOOOL???? ))))

*does not compile Lambda functions
 
Old 07-09-2012, 11:56 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

There can be no <space> in the package name :
sudo apt-get install g++ 4.7 : Will reinstall 'g++', i.e. the default (4.4.5?)

If there is a package 'g++-4.7' available, the command must be :
'sudo apt-get install g++-4.7'.

Which OS are you using ? Debian Wheezy ?

Please try the command : g++-4.7 -v
→ → g++-4.7 provides /usr/bin/g++-4.7 , no /usr/bin/g++
http://packages.debian.org/wheezy/am...+-4.7/filelist

Also : You can have as many versions of gcc/g++ as you want,
installed at the same time. They have different file names.

Selecting a version : sudo update-alternatives --config gcc
... Which will change the links gcc/g++ to point to <selected version>.

.
 
Old 07-09-2012, 12:16 PM   #3
esgol
Member
 
Registered: Jul 2012
Posts: 106

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
KUBUNTU IS MY VERSION OH IM SO SORRY I FORGOT TO MENSIOT IT HOW MUCH AN IDIOT ((((((

omg it says there isnt a g++ 4.7 or gcc 4.7 by regex.
Yet its published in http://gcc.gnu.org/ Do i have to download it manually as a tar or something?
 
Old 07-09-2012, 12:25 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The command : 'cat /etc/issue' will reply with (K)ubuntu <version>.

The gcc at http://gcc.gnu.org/ is source code, not a binary package.
Building gcc-4.7, example : http://nosemaj.org/debian-gcc-4-7
 
Old 07-09-2012, 12:32 PM   #5
esgol
Member
 
Registered: Jul 2012
Posts: 106

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
My version is 10.10

I could always try compiling myself by that huge command list eh? :SSSSS

Also once installed i will have the older 2 i was informed and have to make alternative path and so eh
 
Old 07-09-2012, 12:55 PM   #6
esgol
Member
 
Registered: Jul 2012
Posts: 106

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Can I download a latest linux distribution that has it preinstalled or its easiest to get it and install?

I want at least version g++ 4.6

I have vm ware kubuntu 10 in windows. If i put Latest debian also, that wont be a problem?

Has it the latest debian preinstalled the 4.7 or 4.6.x? Or at least wil it be easier to get it? ( the g++ 4.7 or 4.6.+)

Thank you very much
 
Old 07-09-2012, 02:00 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
VMware Player http://www.vmware.com/products/player/
→ You can have as many Linux OS, as you want.

Suggest : Install the new Kubuntu 12.04.
The default compiler is gcc-4.6.3 / g++-4.6.3 .

Good luck !
 
Old 07-09-2012, 02:07 PM   #8
esgol
Member
 
Registered: Jul 2012
Posts: 106

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thank you very much! So it seems Debian isnt better.

Im a 64bit system. 64bit has no bugs though 32bit is recomended eh?

Last edited by esgol; 07-09-2012 at 02:10 PM.
 
Old 07-10-2012, 04:07 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If you really want a g++-4.7, you can also install Debian Squeeze.

I'd guees that Ubuntu recommends 32bits because a 64bits OS
can be difficult with certain 32bits programs.

Some very few programs are written to work best on 32bits.
But then again : Some scientific programs are for 64bits 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
LXer: VIA Shows Us Next-Gen Hardware Results, Info LXer Syndicated Linux News 0 01-26-2012 07:20 PM
Booting windows 7 after hard drive removal (Boot Info Script results included) briced Linux - Hardware 17 01-05-2012 08:31 AM
[SOLVED] bash question: searching for info and changing the color of keywords in the results chicone Programming 4 05-06-2011 09:38 AM
What do i need to compile it? ./configure results are.. QueenZ Linux - Newbie 14 04-26-2009 08:30 AM
S.M.A.R.T. info showing odd results on 1 of 3 drives - drive about to fail? checkmate3001 Linux - General 3 08-13-2008 04:57 AM

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

All times are GMT -5. The time now is 06:14 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