29
Jun
07

Downgrading versi gcc

Maaf langsung saja…
Berdasarkan kebutuhan instalasi paket, gw kudu downgrade gcc dari versi standar feisty (versi 4) menjadi versi 3.3

msdarmawan@mc7:~$ sudo aptitude install gcc-3.3 g++-3.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
dst...
Selecting previously deselected package g++-3.3.
Unpacking g++-3.3 (from .../g++-3.3_1%3a3.3.6-15ubuntu1_i386.deb) ...
Setting up cpp-3.3 (3.3.6-15ubuntu1) ...
Setting up gcc-3.3 (3.3.6-15ubuntu1) ...
Setting up libstdc++5-3.3-dev (3.3.6-15ubuntu1) ...
Setting up g++-3.3 (3.3.6-15ubuntu1) ...


msdarmawan@mc7:~$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.1 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.1
msdarmawan@mc7:~$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-3.3 60 --slave /usr/bin/g++ g++ /usr/bin/g++-3.3
msdarmawan@mc7:~$ sudo update-alternatives --config gcc


There are 2 alternatives which provide `gcc'.

Selection Alternative
-----------------------------------------------
1 /usr/bin/gcc-4.1
*+ 2 /usr/bin/gcc-3.3

Press enter to keep the default[*], or type selection number:
msdarmawan@mc7:~$ gcc --version
gcc (GCC) 3.3.6 (Ubuntu 1:3.3.6-15ubuntu1)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Beres dah…

Powered by ScribeFire.

Advertisements

0 Responses to “Downgrading versi gcc”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Smiling Calendar

June 2007
M T W T F S S
« May   Jul »
 123
45678910
11121314151617
18192021222324
252627282930  

Smiling Archives

Smiling Stats

  • 6,195 hits

Smiling Categories

Smiling Tags


%d bloggers like this: