Reputation: 3278
I am trying to use the gcc
on Lubuntu
.
I have done the following installs but get the message "The program 'gcc' can be found in the following packages"
sudo apt-get install gcc
sudo apt-get install build-essential
What I am doing wrong, is there a way I can verify the gcc was correctly installed?
Upvotes: 0
Views: 3553
Reputation: 5963
I bet its not in your path variable
env | grep path
If that doesn't work you need to add the location of gcc to your path environment variable by the looks of it.
To find gcc try:
find . -name gcc
Then to add to path
export PATH=$PATH:/path/to/gcc
echo $PATH;
If that fails, try this guide it may be an issue with your calls to apt-get https://askubuntu.com/questions/240919/how-to-install-gcc-4-7-on-lubuntu-11-10
Upvotes: 2