I have downloaded gfortran and gcc and they are safely tucked into /usr/local/bin!

However, gfortran test.f (where test.f is a Hello World write statement!) gives me the above error message.

Would some kind person suggest the next step!

FIX:

This error usually means that gcc isn’t installed. However since you have it installed in /usr/local/bin you’ll want to make sure /usr/local/bin is in your default PATH. This error means that ‘as’ which is the assembler can’t be found.

In csh/tcsh:

setenv PATH ${PATH}:/usr/local/bin

In bash/sh:

I use the gcc that comes with Xcode, so it appears by default. In my case, it’s located in /usr/bin:

[computer:apbs] admin% which as
/usr/bin/as

I’d check for ‘as’ in /usr/bin and /usr/local/bin . Alternatively you may want to install gcc from Xcode, unless you need a newer gcc.

export PATH=${PATH}:/usr/local/bin

Hope that helps,