Opened 15 years ago

Closed 15 years ago

#7952 closed defect (invalid)

installer DarwinPorts-1.2-10.3.dmg should create or edit ~./bash_profile instead of ~./profile

Reported by: cbl016@… Owned by: kvv@…
Priority: Normal Milestone:
Component: base Version: 1.2
Keywords: DarwinPorts Cc:


After installing DarwinPorts the installer log said it had installed it fine but when I tried to run a port command it said port command not found. After I had added the line "export PATH=/opt/local/bin:/opt/local/sbin:$PATH" to the .bash_profile everything seemed to work fine.

Change History (2)

comment:1 Changed 15 years ago by kevin@…

Component: darwinbuildbase
Keywords: DarwinPorts added; darwinbuild removed
product: darwinbuildDarwinPorts
Version: current1.2

comment:2 Changed 15 years ago by markd@…

Resolution: invalid
Status: newclosed

The DP installer creates a .profile file with the DP paths, but if someone has another type of profile such as .bash_profile it may override the .profile. The same effect would be achieved if you removed the .bash_profile. I used to use .bash_profile but I've now switched to .profile because I think its usage is more common and it avoids the problem you've noticed. So this really isn't a bug with DP but a usage issue, but thank you for reporting this because it points up the need to address it in the forthcoming documentation (of which right now there is very little) which we will now do. So I'll mark it invalid for now, but the issue will be addressed.

Note: See TracTickets for help on using tickets.