/usr/local question

Phil Dobbin phildobbin at gmail.com
Wed Apr 4 11:40:57 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/04/2012 18:30, Saiwing Yeung wrote:
> On Apr 4, 2012, at 9:19 AM, Ryan Schmidt wrote:
>> On Apr 4, 2012, at 11:16, Saiwing Yeung wrote:
>>
>>> oh... I didn't know that. I just took a look in my /usr/local, and found a whole bunch of stuff for texlive, and then various programs that I remember installing.
>>>
>>> is there a recommended place for me to put these programs?
>>
>> Any other place on the hard drive that doesn't already have a defined meaning. So any prefix other than /, /usr, /usr/local, /opt/local or /sw should be fine. 
> 
> Thanks!
> 
> In addition, I agree with Jan Stary that it would be nice to amend the #defaultprefix: section in the FAQ. If possible, it would also be nice to also add this to the "A port fails to build. What should I do?" section in the FAQ, as the section title of #defaultprefix is "Why is /opt/local the default install location for MacPorts?" and if a port fails to build for me, I probably wouldn't realize that pertinent information is in that section.

If you want to install in directories other than /usr/local to avoid any
conflicts with Mac Ports, you could use the other *nix location $HOME/bin.

On most, if not all, Linux distros that PATH is already present in
~/.bashrc.

You'd probably have to create the directory in /Users/yourname as well
as add the above line to your bash_profile but I use $HOME/bin a lot on
OS X & Linux. It also has the added advantage of not having to use sudo
when installing stuff.

Cheers,

  Phil...

- -- 
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

	Wm. Shakespeare - Much Ado About Nothing


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPfJW2AAoJEKpMeDHWT5AD/iAIAIVHGason4hfmufPOKocPpMI
M1A+Bx8M3GjnMXr75nhC4mYA8h+t5Qh8tbMido5Rtne4CVazpynCPp6CA4N4nUBF
iKgiiRP1Ab/+Erl1+rFVsELAtsxWvTI1VSFi/quwUJpNiFLwsS6PG37fcCfUV6uC
D9KhFhcgUNz7SEhEvfQlTZXw35CEAOXX8uZNP6SAPEAZ8nSoHe0HsQg8ee3lWa7O
VALRvhSXRDdXS29GMugY7/ERLNo35ooNGpz5lgIxOEV3Gjs+41gPtBw8GeC9P3uH
ohBiwHEYrkTuRaCBDz7cym/I4uhkRmfaIfHf8sumvAwETY9T3UpE7Q3LQRI6mgg=
=FwLK
-----END PGP SIGNATURE-----


More information about the macports-users mailing list