G95 on snow leopard

Discussion in 'Mac Basics and Help' started by anoopmj, Dec 7, 2009.

  1. anoopmj macrumors member


    Oct 31, 2006
    Hi Everyone,

    I am trying to install G95 on my macbook to run fortran. Its turning out to be a nightmare so far. I have downloaded the binary from the website (for x86 OSX), but from then on, installing it seems difficult.

    If I try the command they mention on the manual, it says that I do not have permission to access the usr/bin directory. Then if I try to sudo the commands, it says that the directory urs/bin/g95 is not there. I used sudo to create one and everything seemed to work - except, it does not recognise the g95 command! I even tried to install it in usr/local/bin using the same procedure.

    Is there anything I am missing?
  2. J the Ninja macrumors 68000

    Jul 14, 2008
    /usr/local/bin does not exist by default. The system knows about it, but it isn't needed for anything in a bare install, so the installer never creates it.

    Try these commands, then try the install in /usr/local/bin with sudo:

    sudo mkdir /usr/local
    cd /usr/local
    sudo mkdir bin sbin
    Also, if you will be doing unix-y stuff with your Mac, you may want to install a package manager like Fink or MacPorts. (I prefer Fink, although it seems G95 isn't in the repos, not even as a source)

Share This Page