Opened 12 years ago

Closed 12 years ago

#34567 closed request (wontfix)

Add /opt/local/lib/postgresql91/bin to $PATH on install and remove it on uninstall

Reported by: sam.kuper@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: mww@…, jyrkiwahlstedt
Port: postgresql91

Description

It would be helpful if upon installing the postgresql91 port, the following directory was added to the $PATH environment variable:

/opt/local/lib/postgresql91/bin

and if the same directory was removed from the $PATH environment variable upon uninstalling the same port.

This would be helpful for the following reason: it would allow the "pg" Ruby gem to be installed simply by specifying it in a Gemfile and then running "bundle install", because it would make pg_config visible on the $PATH.

Quite a lot of people seem to encounter this problem.

Change History (2)

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mww@… jwa@… added
Resolution: wontfix
Status: newclosed

No, we're not going to do that. You're free to do that to your PATH if you want to, but MacPorts ports are not in the business of modifying user config files.

What you probably actually want to use is "sudo port select postgresql postgresql91".

Note: See TracTickets for help on using tickets.