On Tue, 8 Oct 2002 08:25, hans schneidhofer wrote:
> > Try:
> >   which cc
> > It should respond with /usr/bin/cc. If not, make sure that gcc and the
> > related packages are installed.
>
> hi again,
> have discovered a seldom thing here :
> was looking in /usr/bin and found cc as well as gcc. doing a ls -al I saw,
> that cc is a link to gcc and gcc is a link to /etc/alernatives/gcc
> and that is a link to gcc-3.2
>
> is this correct or something of stupid ?
>
> calling gcc within the directory /usr/bin/gcc says "not found" or better as
> an origin message :
> [root@hanna bin]# gcc
> bash: gcc: command not found
>
> but as you can see in detail, the file gcc is there in /usr/bin :
> [root@hanna bin]# ls -al gcc*
> lrwxrwxrwx    1 root     root  21 Sep 17 22:06 gcc -> /etc/alternatives/gcc
> -rwxr-xr-x    1 root     root    80876 Aug 17 11:52 gcc-3.2*
> -rwxr-xr-x    1 root     root    21 Aug 17 11:52 gcc3.2-version*
>
> whats going here ? am sorry, but cannot understand such a stupid behavior.
> do you have a glue about ?
>
> thanks and bye
> hans

Interesting, On my box ....
[root@vlad andrew]# ls -al /etc/alternatives/gcc
lrwxrwxrwx    1 root  root 16 Oct  1 06:17 /etc/alternatives/gcc-> 
/usr/bin/gcc-3.2*

and 
[root@vlad andrew]# urpmf /usr/bin/gcc
gcc:/usr/bin/gcc-3.2
gcc:/usr/bin/gcc3.2-version
gcc2.96:/usr/bin/gcc-2.96
gcc2.96:/usr/bin/gcc2-version

so I'd say theres a script in the gcc packages to setup the symlnks and allow 
multiple gcc's to be used on the same box (on via $path and the other 
explicitly)

try going into usr bin and running the command ./gcc and see what you get
-- 
Andrew George
-------------------

Most people are unable to write because they are unable to think, and
they are unable to think because they congenitally lack the equipment
to do so, just as they congenitally lack the equipment to fly over the moon.
                -- H.L. Mencken


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to