Regarding Mac port and git installation

Discussion in 'OS X Mountain Lion (10.8)' started by f24u23, Feb 8, 2013.

  1. f24u23 macrumors newbie

    Joined:
    Feb 8, 2013
    #1
    I am trying to install git and "openjdk6" using mac port, however when I type:

    sudo port install git-core in the terminal

    it returns: sudo: port: command not found

    I think it might be a path problem, but I am new to mac so I don't how to fix it, can someone help ?

    Any advice would be appreciated
     
  2. Wich macrumors newbie

    Joined:
    Nov 24, 2012
    #2
    In the terminal type:
    Code:
    echo $PATH
    and check if you see the folder where macports is installed
     
  3. f24u23 thread starter macrumors newbie

    Joined:
    Feb 8, 2013
    #3
    if I type echo $PATH MacPort
    it returns
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin MacPort
     
  4. Wich macrumors newbie

    Joined:
    Nov 24, 2012
    #4
    something's wrong...post the result of the command(or just the part relative to macports):
    Code:
    cat ~/.profile
     
  5. murphychris macrumors 6502a

    Joined:
    Mar 19, 2012
    #5
    There is a Macports mailing list. They're responsive.

    <macports-users@lists.macosforge.org>
     
  6. f24u23 thread starter macrumors newbie

    Joined:
    Feb 8, 2013
    #6
    # MacPorts Installer addition on 2013-02-08_at_18:45:01: adding an appropriate PATH variable for use with MacPorts.
    export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    # Finished adapting your PATH environment variable for use with MacPorts.


    ##
    # Your previous /Users/f24u23/.profile file was backed up as /Users/f24u23/.profile.macports-saved_2013-02-08_at_19:27:58
    ##

    # MacPorts Installer addition on 2013-02-08_at_19:27:58: adding an appropriate PATH variable for use with MacPorts.
    export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    # Finished adapting your PATH environment variable for use with MacPorts.
     

Share This Page