I have searched for solution to this problem but everywhere it is solved by installation of gcc. In my case I'm pretty sure it already it installed.
I have followed this instruction which I suppose is 100% fine: http://slackbuilds.org/howto/
It gave me nothing but this:
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
What is more it doesn't generate config.log (although it should)
I can show you also this:
bash-4.2$ which gcc
Please help me. I really need it asap.