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

colin mcdermott colinjamesmcdermott at gmail.com
Mon Aug 27 23:07:20 UTC 2012

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

> Date: Mon, 27 Aug 2012 08:23:31 +1000
> From: Juan Pablo Quiroga <juaquiroga at gmail.com>
> To: ubuntu-au at lists.ubuntu.com
> Subject: GCC _ no command found - Ubuntu 7.10
> Message-ID:
>         <
> CAAHz4PiWCpeKXR04GKb31bOBFHmjyERUfz+BsWUxpPKf1z6v5Q at 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 "


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

Good luck.

Colin McDermott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-au/attachments/20120828/d4fcc5dc/attachment.html>

More information about the ubuntu-au mailing list