If gcc 4.6.3 is included with Kubuntu 12.04 LTS, in wich directory does it live? I'm new at this. Yesterday I installed Kubuntu 12.04 LTS on my old IBM! ThinkPad G41. I had created for this purpose a 200 GB and a 2GB partition on a 320 GB hard disk. I now have a dual-boot setup for Kubuntu and Windows XP. From reading some release-notes-like document it seemed to me that Kubuntu 12.04 comes with the compiler gcc 4.6.3 included. Today, after Nepomuk was done indexing the files on my Kubuntu partition, I searched for files which had gcc in their names. All I found were approximately 18 files in folders /usr/src/linux-headers-3.2.0-2n* where n = 3 or 4. That made me wonder if only gcc ver 3.2.0 is included instead of 4.6.3. Is that true? If gcc 4.6.3 is actually included please tell me in which directory it is stored. Thanks! Vim
Announcement
Collapse
No announcement yet.
is gcc 4.6.3 included with Kubuntu 12.04 LTS?
Collapse
This topic is closed.
X
X
-
-
$ apt-cache policy gcc
gcc:
Installed: 4:4.6.3-1ubuntu5
Candidate: 4:4.6.3-1ubuntu5
Version table:
*** 4:4.6.3-1ubuntu5 0
500 http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive/ precise/main amd64 Packages
100 /var/lib/dpkg/status
$ locate gcc
produces a long list, including /usr/bin/gcc-4.6
- Top
- Bottom
-
Just open a console and type:
Code:sudo apt-get update && sudo apt-get install gcc
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Originally posted by Snowhog View PostJust open a console and type:
Code:sudo apt-get update && sudo apt-get install gcc
What does && do in a command like the one you provided above? Author Mark Sobell in A Practical Guide to Linux indicates that a single & at the end of a command will result in that command executing in the background, without output in the terminal. But that still made me wonder what the answer is to my question involving &&.
Does it 'break' (another) kubuntu forums thread if, in the middle of it, I change its title? Thanks for all your help! Vim
- Top
- Bottom
Comment
-
Originally posted by Vim View PostThat resulted in the installation of gcc 4.6.3. I was pleased about that!
What does && do in a command like the one you provided above? Author Mark Sobell in A Practical Guide to Linux indicates that a single & at the end of a command will result in that command executing in the background, without output in the terminal. But that still made me wonder what the answer is to my question involving &&.
Does it 'break' (another) kubuntu forums thread if, in the middle of it, I change its title? Thanks for all your help! Vim
1 && 2 means run 1 and if 1 exits successfully run 2 but if 1 fails (with a return code of something other then 0) then don't run 2.
Try this example:
Code:true && echo "True" false && echo "False"
In addition to && there is also 1 || 2 which means run 1 and if and only if it fails then run 2. It is useful in scripts for doing things like command || exit 1 which will terminate the script it command fails to complete successfully.
Try this example:
Code:true || echo "True" false || echo "False"
Code:(sleep 2 && echo 2) & (sleep 1 && echo 1) & (sleep 3 && echo 3)
Last edited by james147; May 10, 2012, 01:37 PM.
- Top
- Bottom
Comment
-
Originally posted by james147 View Post... [snip] ...
Try this example:
Code:true && echo "True" false && echo "False"
Try this example:
Code:true || echo "True" false || echo "False"
Code:(sleep 2 && echo 2) & (sleep 1 && echo 1) & (sleep 3 && echo 3)
1
2
3
However I got:
[1] 14305
[2] 14306
1
2
3
[1]- Done ( sleep 2 && echo 2 )
After I get printing from within 12.04 to work I intend to print your much appreciated tutorial and paste it in one of my 2 books by Mark Sobel.
- Top
- Bottom
Comment
-
Originally posted by Vim View Post[1] 14305
[2] 14306
1
2
3
[1]- Done ( sleep 2 && echo 2 )
If you pipe the each command in last example to a text file you can split the output:
Code:[B]% (sleep 2 && echo 2) >> test & (sleep 1 && echo 1) >> test & (sleep 3 && echo 3) >> test[/B][1] 7934 [2] 7936 [2] + done ( sleep 1 && echo 1; ) >> test [1] + done ( sleep 2 && echo 2; ) >> test [B]% cat test[/B] 1 2 3 [B]% [/B]
Last edited by james147; May 11, 2012, 06:48 AM.
- Top
- Bottom
Comment
-
PS - I wonder whether it would 'break' a thread like this one if, in the middle of it, I would change its title.
- Top
- Bottom
Comment
Comment