Solved [Solved] On FreeBSD 10-BETA4 -can't run gcc from PKG

I am aware of the fact that GCC was deprecated in FreeBSD 10, nonetheless, I'd like to be able to use it. I went ahead and installed it from packages. The installation was successful. The PKG manager got all the needed dependencies and now I'd like to run it. When I try to access gcc --version or any gcc command (even man gcc) I get the non-existent command error back:
Code:
: Command not found.
I tried installing gcc 4.6, gcc 4.8 and I get the same result. I have the FreeBSD 10-BETA4 DVD image installed.

If I try to re-install GCC, PKG manager says that the application is already installed.

Any ideas would be appreciated. Thanks.
 
Re: On FreeBSD 10-BETA4 -can't run gcc from PKG

Did you run rehash or hash -r?
 
Re: On FreeBSD 10-BETA4 -can't run gcc from PKG

I do believe that when you install GCC from the ports, the actual executable has the version suffix on it; i.e. if you install the lang/gcc46 port, look for gcc46 and g++46.
 
Re: On FreeBSD 10-BETA4 -can't run gcc from PKG

Thank you, @ljboiler. That took care of it. Kudos and help points for all the helpers.
 
Last edited by a moderator:
Back
Top