MySQL-connector-java build hangs on Mac OS X Server 10.8.3
Brandon Allbery
allbery.b at gmail.com
Wed May 15 11:46:35 PDT 2013
On Wed, May 15, 2013 at 2:10 PM, Greg Earle <earle at isolar.dyndns.org> wrote:
> mac1:~ root# port install mysql-connector-java
>
If you used "su" instead of "sudo" (this includes the shell anti-pattern
"sudo su" / "sudo su -"; don't do that. Use "su -s" or "su -i", that's what
they're there for.) then you're tripping over a change Apple made to root's
environment. And yes, running it directly will work, because Apple put
something else in that makes it work interactively, but the build
environment is sanitized and thereby loses it. There is a workaround for
this change in the (as yet unreleased) trunk revision of MacPorts, but the
correct answer is "don't use su on OS X".
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20130515/c06467d8/attachment.html>
More information about the macports-users
mailing list