Opened 11 years ago

Closed 10 years ago

#41827 closed defect (worksforme)

MacPorts package installer did not adjust bash PATH

Reported by: michellebsalazar@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.2.1
Keywords: Cc:
Port:

Description (last modified by mf2k (Frank Schima))

I installed macports by downloading the pkg and now I'm getting this error: -bash: port: command not found

and cannot get macports to do anything. Plus I think I've corrupted some files. This is what's in the bash_profile:

export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin

Change History (3)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Description: modified (diff)
Resolution: invalid
Status: newclosed

In the future, please use WikiFormatting.

Trac is not for tech support. Use the Macports Users mailing list instead. Your path is not correctly setup for Macports.

comment:2 in reply to:  1 Changed 11 years ago by larryv (Lawrence Velázquez)

Component: portsbase
Resolution: invalid
Status: closedreopened
Summary: macports installation problemMacPorts package installer did not adjust bash PATH

The installer should have modified .bash_profile, though. Are those all the lines in your .bash_profile that mention PATH?

Can you please provide the output of the following commands?

$ echo $PATH
$ /opt/local/bin/port usage

(By the way, we do not support using MacPorts while other software is installed in /usr/local. We advise installing any such software using MacPorts instead; if we don’t have a port for a particular piece of software, feel free to request one.)

comment:3 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: reopenedclosed
Note: See TracTickets for help on using tickets.