1. GCC _ no command found - Ubuntu 7.10 (Juan Pablo Quiroga)

> Date: Mon, 27 Aug 2012 08:23:31 +1000
> From: Juan Pablo Quiroga <juaquir...@gmail.com>
> To: ubuntu-au@lists.ubuntu.com
> Subject: GCC _ no command found - Ubuntu 7.10
> Message-ID:
>         <
> caahz4piwcpekxr04gkb31bobfhmjyerufz+bswuxppkf1z6...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Heya Guys,
>
> I hope your weekend would have been great,
>
> Guys, I'm having some issues with my gcc. I'm running a new backup solution
> for that server but it can't be updated to a new Ubuntu versions so having
> said that, when I run gcc -v --> No command found and I gave a try to
> install it again apt-get install gcc --> the package has already been
> installed, I'm not sure why I'm having this behaviour, please advise.
>
> Cheers,
>
> --
> ~~!Juan Pablo!~~
>
>
Hi Juan

The number 1 possibility is that your path does not reference the location
of the gcc executable.

So do an echo $PATH (as root, logged in as the root user or via su - (with
dash -)).. The $PATH is a list of directories that will be searched for
executable programs.

ok do a which gcc? does anything get returned?

If not (or gcc -v does not work as root). do a slocate -u and then locate
gcc (or a cd / ; find ./ -name "gcc").

If gcc is on your system like in /usr/whatever/sbin/gcc you can add it to
your path. PATH=$PATH:/usr/whatever/sbin Keep in mind any executable files
in that directory will be executed. (this wont survive a reboot).

If gcc is not on your system. Then you need to either install it or
reinstall it.

apt-file search filename

apt-file search /path/to/file

quote "

http://superuser.com/questions/10997/find-what-package-a-file-belongs-to-in-ubuntu-debian";



once you know the package. apt-get install --reinstall packagename


Good luck.


Colin McDermott
-- 
ubuntu-au mailing list
ubuntu-au@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-au

Reply via email to