On 23 May 1998, Bonard B. Timmons III wrote:
> 
> su -c 'cd /usr/local/bin ; ln -s ../../bin/egcc gcc'
> 
> There is probably a cleaner way, but this should work, since
> /usr/local/bin is usually searched for non-root users before /usr/bin.
> 

The "Official" way is to use /etc/alternatives, I think.
$ls -l /usr/bin/cc
lrwxrwxrwx  1 root root 20 Dec  9 00:08 /usr/bin/cc -> /etc/alternatives/cc
$ls -l /etc/alternatives/cc
lrwxrwxrwx  1 root root 13 Mar 30 21:54 /etc/alternatives/cc -> /usr/bin/egcc

To change to plain gcc:
ln -sf /usr/bin/gcc /etc/alternatives/cc 

There is also a c++ there for g++/eg++.

Havoc Pennington ==== http://pobox.com/~hp


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to