Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

f24u23

macrumors newbie
Original poster
Feb 8, 2013
3
0
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
 

Wich

macrumors newbie
Nov 24, 2012
7
0
In the terminal type:
Code:
echo $PATH
and check if you see the folder where macports is installed
 

f24u23

macrumors newbie
Original poster
Feb 8, 2013
3
0
if I type echo $PATH MacPort
it returns
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin MacPort
 

Wich

macrumors newbie
Nov 24, 2012
7
0
if I type echo $PATH MacPort
it returns
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin MacPort
something's wrong...post the result of the command(or just the part relative to macports):
Code:
cat ~/.profile
 

murphychris

macrumors 6502a
Mar 19, 2012
661
2
There is a Macports mailing list. They're responsive.

<macports-users@lists.macosforge.org>
 

f24u23

macrumors newbie
Original poster
Feb 8, 2013
3
0
# 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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.