Fedora 16 - Colorgcc howto
08 Feb
Posted by admin
in color-gcc, colorgcc, f16, Fedora 16
To install colorgcc on Fedora 16, do the following assuming perl is installed:
- sudo yum install colorgcc -y
- wget search.cpan.org/CPAN/authors/id/R/RR/RRA/Term-ANSIColor-3.01.tar.gz
- tar-xzvf Term-ANSIColor-3.01.tar.gz
- cd Term-ANSIColor-3.01/
- perl Makefile.PL
- make
- sudo make test
- sudo make install
Download the config file from here and move it to:
- wget pacificsimplicity.ca/sites/default/files/uploads/colorgccrc.txt
- mv colorgccrc.txt to ~/.colorgccrc
Make this directory and the following symlink:
- cd ~/home/bin
- ln -s /usr/bin/color-gcc gcc
Alter the color-gcc script to look something like the below section - NOTE the starting "elsif ($option =~ m/color$/)":
- sudo vi /usr/bin/color-gcc
- }
- elsif ($option eq "nocolor")
- {
- # The nocolor option lists terminal types, separated by
- # spaces, not to do color on.
- {
- $nocolor{$termtype} = "true";
- }
- }
- elsif ($option =~ m/color$/)
- {
- $colors{$option} = color($value);
- }
- else
- {
- $compilerPaths{$option} = $value;
- }
- }
- close(PREFS);
Now adjust your .bashrc PATH variable to look similar to the following:
- vi ~/.bashrc
- export PATH=$HOME/bin:$PATH
Logout, log backin and try running gcc with a known error. You should see colors!
Attachment | Size |
---|---|
colorgccrc.txt | 1.51 KB |
Comments
Post new comment