gcc: command not found

gcc: command not found

Post by Noah J Cow » Mon, 05 Jun 1995 04:00:00



I recently download gcc-2.6.3.bin.tar.gz and executed the commands:

cd /
gzip -dc gcc-2.6.3.bin.tar.gz | tar xvvf -

and it seemed to work ok, with the exception that now when I type `gcc'
at the command line, I get "gcc: command not found".  If I type
`which gcc' it says /usr/bin/gcc, and gcc is mod 755, as it should be.

is going on here?  Suddenly, I can't compile anything!

Please help!  Thanks in advance.

-njc

--

 
 
 

gcc: command not found

Post by E. Schwei » Wed, 07 Jun 1995 04:00:00




 >I recently download gcc-2.6.3.bin.tar.gz and executed the commands:
 >
 >cd /
 >gzip -dc gcc-2.6.3.bin.tar.gz | tar xvvf -
 >
 >and it seemed to work ok, with the exception that now when I type `gcc'
 >at the command line, I get "gcc: command not found".  If I type
 >`which gcc' it says /usr/bin/gcc, and gcc is mod 755, as it should be.

 >is going on here?  Suddenly, I can't compile anything!
 >
 >Please help!  Thanks in advance.

Not sure what shell you are using, but some shells "cache" the paths for
executables in your path.  When you change such a file you have to do a
"rehash" command (tcsh) or equivalent to update the shell's internal
database.

Eric

 
 
 

gcc: command not found

Post by Tony Nugen » Sat, 10 Jun 1995 04:00:00





> >I recently download gcc-2.6.3.bin.tar.gz and executed the commands:

> >cd /
> >gzip -dc gcc-2.6.3.bin.tar.gz | tar xvvf -

> >and it seemed to work ok, with the exception that now when I type `gcc'
> >at the command line, I get "gcc: command not found".  If I type
> >`which gcc' it says /usr/bin/gcc, and gcc is mod 755, as it should be.

> >is going on here?  Suddenly, I can't compile anything!

> >Please help!  Thanks in advance.
>Not sure what shell you are using, but some shells "cache" the paths for
>executables in your path.  When you change such a file you have to do a
>"rehash" command (tcsh) or equivalent to update the shell's internal
>database.

I've just had *exactly* the same experience!  I tried logging out
then logging in again and all sorts of things... and still get
the "command not found" error.  Weird.

I had only just installed 2.5.8 from the slackware distribution,
and for some reason it didn't work (I couldn't compile anything,
not even a simple "hello world").  So I tried for 2.6.3 and this
happens.  Now I'm faced with deleting all the development stuff
from my hard drive and starting again fresh. :-(

Is there some way to install software in a manner that isn't so
brutal and crude as a gzip -dc | tar xvf - from the root
directory (or wherever)?  So that it gets recorded nicely into
the /var/adm/* subdirs etc.  Is there something magical about
.lsm files that allows this to happen?

Cheers
Tony
  _      ___   _  _                        _                               _
 (:)====/__/\=(:)(:)======================(:)=============================(:)


 |\| /  /\  __/\|(:)======================(:)=============================(:)
 |=|/  / /\ \ |=||=|  "There are three kinds of lies: lies, damn lies,    |=|
 |\/__/  \_\/ |\||\|   and statistics."                                   |\|
 |=\__\/\ \   |=||=|                                - Mark Twain          |=|
 (:)==\__\/===(:)(:)======================================================(:)
  ~            ~  ~                                                        ~

 
 
 

1. gcc: command not found ...

Hya,
        Ok here is the schtick. I compiled a new linux kernel
(whatever the latest is), I think without ELF (how can I check?)
and then downloaded a new gcc. But now I get "gcc: command not found"
even though it is sitting right there, exectable and readable. My
guess is that it uses ELF and my kernel does not, but I have no idea.
Can anyone suggest a way around this problem? I am a little short on
time, as I have a C project due soon, so please email me ;(

        Aron!

---
                                 \\\///
                                 ( oo )
          *------------------oOO--(__)--OOo-------------------*

          *------------------oOOo------oOOo-------------------*

2. Help in security

3. Newbie Question: gcc a.out command not found

4. LILO and Win95??

5. Need to find vi command to remove ^H from command man find > find.txt

6. unbuffered pipe I/O of an exec'ed process

7. ?updatedb: @find@: command not found???

8. Are there any good linix books?

9. command not found not solved with ./

10. gcc , command not recognised

11. GCC math functions not found

12. gcc: 'iostream: not found' ???

13. Program compiled with gcc fails register_frame_info not found