Computer And Technologies

Computer And Technologies: GCC Setup for compiling the Bootloader (Debian Linux)

Thursday, 7 May 2009

GCC Setup for compiling the Bootloader (Debian Linux)

To compile the bootloader on Ubuntu, follow these steps:
  • check gcc version :-
command :- gcc --version
example:-
amaresh@AmSi:~$ gcc --version
gcc (GCC) 3.3.6 (Ubuntu 1:3.3.6-15ubuntu4)
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.
  • Do following way:-
sudo apt-get install gcc-
sudo rm /usr/bin/gcc
sudo ln /usr/bin/gcc- /use/bin/gcc

Example:-
sudo apt-get install gcc-3.3
        sudo rm /usr/bin/gcc
sudo ln /usr/bin/gcc-3.3 /usr/bin/gcc

No comments:

Post a Comment