TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

El Capitan and Homebrew

540 点作者 juanfatas超过 9 年前

42 条评论

mapgrep超过 9 年前
Macports, meanwhile, continues to work quite well because it 1. places packages in &#x2F;opt and 2. has always installed via sudo.<p>Macports just has a much more robust philosophy of building its own universe largely separate from OS X, and only rarely impacted by system updates. The downside is that it takes forever to install the first few packages. Homebrew offers a much faster initial install because it leans on OS X libraries for various things. But then it is much more fragile when your system updates. Macports really only depends on a slice of Xcode; from time to time updates will fail to install until you open Xcode and accept whatever new license Apple has bundled with it. But you don&#x27;t get key components changing out from underneath your packages due to an Apple System Update.<p>My bias here is that I&#x27;m a longtime happy Macports user who has tried to use homebrew repeatedly, encountered lots of failed recipes, and gone back to Macports, shaking my head at all the hype around homebrew and the fact that is has somehow become a defacto developer default despite some really sloppy, poorly thought through practices. (And I know that&#x27;s harsh but for a long time they trashed Macports right in their tagline — &quot;Is MacPorts driving you to drink?&quot; — which just seemed gratuitous.)
评论 #10311471 未加载
评论 #10311443 未加载
评论 #10311478 未加载
评论 #10311330 未加载
评论 #10315302 未加载
评论 #10313008 未加载
alex1超过 9 年前
I&#x27;m curious to know if there&#x27;s a reason everyone installs Homebrew in &#x2F;usr&#x2F;local (other than it being the default installation path). I&#x27;ve always chosen to install it in ~&#x2F;.homebrew and haven&#x27;t had any problems. Everything I install with Homebrew seems to handle an alternative prefix without issue.
评论 #10309858 未加载
评论 #10309838 未加载
评论 #10309814 未加载
评论 #10310714 未加载
评论 #10311142 未加载
评论 #10309804 未加载
_b8r0超过 9 年前
To be fair, homebrew shouldn&#x27;t need to change perms, it should follow common unix standards or at least fit in with OSX rather than require a hack. For years I&#x27;ve felt homebrew should really use either &#x2F;opt&#x2F; or ~&#x2F;.homebrew&#x2F; by default.
评论 #10312252 未加载
评论 #10310464 未加载
评论 #10310843 未加载
评论 #10310437 未加载
评论 #10314235 未加载
antouank超过 9 年前
Installed El Capitan yesterday. Process took almost half an hour. Afterwards, brew just gave me a warning to do &quot;chown&quot; to my usr&#x2F;local. That&#x27;s it. Everything works fine.
评论 #10310096 未加载
评论 #10310974 未加载
评论 #10310246 未加载
nailer超过 9 年前
This is one of the reasons I love HN: a grapevine of important things to help developers fix their dev environments, security things we need to be aware of for our servers, new APIs to take advantage of, and other important stuff.
评论 #10310264 未加载
aorth超过 9 年前
If you only need a Unix-style package manager for things like coreutils, nodejs, tmux, irssi, vim, etc, pkgsrc runs on OS X and installs to <i>&#x2F;opt&#x2F;pkg</i>. There is no Google Chrome, or fonts, etc in it though, so if you enjoy installing those from Homebrew then this is not for you.<p><a href="http:&#x2F;&#x2F;pkgsrc.joyent.com&#x2F;install-on-osx&#x2F;" rel="nofollow">http:&#x2F;&#x2F;pkgsrc.joyent.com&#x2F;install-on-osx&#x2F;</a>
rolux超过 9 年前
How to disable SIP altogether:<p><a href="http:&#x2F;&#x2F;arstechnica.com&#x2F;apple&#x2F;2015&#x2F;09&#x2F;os-x-10-11-el-capitan-the-ars-technica-review&#x2F;9&#x2F;" rel="nofollow">http:&#x2F;&#x2F;arstechnica.com&#x2F;apple&#x2F;2015&#x2F;09&#x2F;os-x-10-11-el-capitan-t...</a>
评论 #10312760 未加载
评论 #10310478 未加载
drinchev超过 9 年前
Yeah I see Permission denied messages everywhere now.<p><pre><code> $ brew update error: unable to unlink old &#x27;.gitignore&#x27; (Permission denied) error: unable to create file .travis.yml (Permission denied) error: unable to unlink old &#x27;.yardopts&#x27; (Permission denied) error: unable to unlink old &#x27;README.md&#x27; (Permission denied) Error: Failure while executing: git pull --quiet origin refs&#x2F;heads&#x2F;master:refs&#x2F;remotes&#x2F;origin&#x2F;master </code></pre> Nice. I saw that I can&#x27;t change also system icons ( like Automator, AppStore, Maps, Notes, etc. ).<p>Quick check on some forums suggest that I should do that in recovery mode. I guess it will be a mess with almost any other app that needs a bit more permissions and needs the raw UNIX filesystem.
评论 #10310698 未加载
评论 #10309759 未加载
jackgavigan超过 9 年前
Couldn&#x27;t all this be avoided if Homebrew installed itself in a sub-directory of &#x2F;usr&#x2F;local (e.g. &#x2F;usr&#x2F;local&#x2F;homebrew) instead of &#x2F;usr&#x2F;local itself?<p>Edit: For the avoidance of any doubt&#x2F;confusion, this is what a virgin &#x2F;usr&#x2F;local&#x2F; looks like after Homebrew has been installed:<p><pre><code> $ ls -la &#x2F;usr&#x2F;local total 96 drwxrwxr-x 13 root admin 442 31 Aug 21:52 . drwxr-xr-x@ 12 root wheel 408 31 Aug 21:52 .. drwxr-xr-x 14 jgavigan admin 476 31 Aug 21:52 .git -rw-r--r-- 1 jgavigan admin 448 31 Aug 21:52 .gitignore -rw-r--r-- 1 jgavigan admin 291 31 Aug 21:52 .yardopts -rw-r--r-- 1 jgavigan admin 3161 31 Aug 21:52 CODEOFCONDUCT.md -rw-r--r-- 1 jgavigan admin 1103 31 Aug 21:52 CONTRIBUTING.md -rw-r--r-- 1 jgavigan admin 1241 31 Aug 21:52 LICENSE.txt drwxr-xr-x 9 jgavigan admin 306 31 Aug 21:52 Library -rw-r--r-- 1 jgavigan admin 2319 31 Aug 21:52 README.md -rw-r--r-- 1 jgavigan admin 23801 31 Aug 21:52 SUPPORTERS.md drwxr-xr-x 3 jgavigan admin 102 31 Aug 21:52 bin drwxr-xr-x 4 jgavigan admin 136 31 Aug 21:52 share</code></pre>
评论 #10309915 未加载
评论 #10311646 未加载
shurcooL超过 9 年前
I just did this (from [1]):<p><pre><code> sudo chown -R $(whoami):admin &#x2F;usr&#x2F;local </code></pre> And not `sudo chown $(whoami):admin &#x2F;usr&#x2F;local`. Are both really necessary?<p>[1]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10307800" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10307800</a>
评论 #10309763 未加载
评论 #10311234 未加载
评论 #10309793 未加载
neckro23超过 9 年前
By the way, there&#x27;s a way to create &#x2F;usr&#x2F;local without rebooting four times like suggested in the doc:<p>- Boot into Recovery (hold cmd+R during boot)<p>- Open Disk Utility<p>- Unlock your system drive (assuming it&#x27;s encrypted) -- I forget where exactly the option was but it&#x27;s in DU somewhere.<p>- Open Terminal<p>- Go to your system drive now mounted under &#x2F;Volumes and do what you gotta do.
heimatau超过 9 年前
This didn&#x27;t work for me. Upon 3rd bullet point &#x27;Reboot back into OS X&#x27; my system kept showing me the apple logo, black background and status bar. When the status bar progressed ~30%, information about my system would popup and then stagnate&#x2F;momentarily freeze. Then the system would go to black saying &#x27;os had a problem, rebooting in a few seconds&#x27; then...it would repeat this process again and again, without any input from me.<p>I&#x27;m not sure what to do to fix this.
评论 #10313984 未加载
lectrick超过 9 年前
It does kind of make sense to me that user-owned things should <i>kind of</i> live in &#x2F;Users&#x2F;username.<p>Unfortunately that pattern in this case would lead to the redundant-seeming &#x2F;Users&#x2F;username&#x2F;usr&#x2F;local, but at least that&#x27;s rooted to the user in the event other users don&#x27;t want a &quot;global&quot; Homebrew install.<p>Also, I believe (even if it kills some ignorant build scripts) that Homebrew lets you reconfigure where this directory lives, anyway.
评论 #10311184 未加载
评论 #10311106 未加载
ohthehugemanate超过 9 年前
In case it&#x27;s helpful, I blogged the steps I had to take to get my environment back up and running:<p><a href="https:&#x2F;&#x2F;ohthehugemanatee.org&#x2F;blog&#x2F;2015&#x2F;10&#x2F;01&#x2F;how-i-got-el-capitain-working-with-my-developer-tools&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ohthehugemanatee.org&#x2F;blog&#x2F;2015&#x2F;10&#x2F;01&#x2F;how-i-got-el-ca...</a>
skrause超过 9 年前
Why does brew need to install everything owned by my user in &#x2F;usr&#x2F;local? I would honestly prefer if everything installed by brew was owned by root:wheel and brew would gracefully abort if I forgot to run it with sudo.<p>Is all that current mess just so that I don&#x27;t need sudo for brew?
评论 #10309790 未加载
评论 #10309787 未加载
评论 #10310206 未加载
t413超过 9 年前
Will homebrew switch the default install location out of &#x2F;usr&#x2F;local for new installations then? I doubt most developers will want to dive into recovery mode just to install wget.
评论 #10309775 未加载
atmosx超过 9 年前
My MacTex (Latex) installation broke for the same reason. Luckily, all I had to do was set put &quot;&#x2F;Library&#x2F;TeX&#x2F;Root&#x2F;bin&#x2F;universal-darwin&#x2F;&quot; in my $PATH and change the path of &quot;pdtlatex&quot; and &quot;bibtex&quot; to the GUI tools I use. But still, I lost about an hour or so trying to figure out what is happening.
vbezhenar超过 9 年前
So I guess, for new installations it&#x27;s better to put homebrew into $HOME?
评论 #10309789 未加载
dvcrn超过 9 年前
The first thing I did after the upgrade was disabling SIP. Now my system acts exactly the same way before with all the goodies (except rootless) el capitan has to offer.<p>Having root not able to write system stuff is good for people that like to blindly execute shell scripts from the internet but I think apple should add something that makes it easier for developers to disable it.<p>I don&#x27;t know if there is a new method yet, but before you had to boot into recovery and execute `csrutil disable`. In the early days there was a boot flag you could set but that got removed quickly.
评论 #10310123 未加载
LaSombra超过 9 年前
To me, the fact that you are directed to install Homebrew to &#x2F;usr&#x2F;local is wrong since there&#x27;s no guarantee how &#x2F;usr&#x2F;local is going to treated by Apple in the future and this is now an example of that. The only directory that Apple, probably, doesn&#x27;t have control is your home directory.<p>I&#x27;ve been using homebrew for a long time without issues because, in my opinion, I installed it on ~&#x2F;homebrew. I wonder why is that so difficult for others to use.
评论 #10310106 未加载
评论 #10310091 未加载
No1超过 9 年前
Does is still take a few hours to copy over &#x2F;usr&#x2F;local during the upgrade like it did during the Yosemite upgrade or has Apple fixed that?<p>I&#x27;m glad I read this before moving the &#x2F;usr&#x2F;local directory as was previously suggested <a href="https:&#x2F;&#x2F;jimlindley.com&#x2F;blog&#x2F;yosemite-upgrade-homebrew-tips&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jimlindley.com&#x2F;blog&#x2F;yosemite-upgrade-homebrew-tips&#x2F;</a>
glogla超过 9 年前
Homebrew troubles aside, does System Integrity Protection means the end of OpenVPN and FUSE on Mac OS? Those need to add kernel modules and such.
评论 #10311172 未加载
评论 #10310309 未加载
评论 #10310268 未加载
phkahler超过 9 年前
Should I create this folder or install brew now? I&#x27;ve been thinking about installing it on my macbook and doing some development on it but haven&#x27;t yet. Last night it told me the OSX update was available. Which order should I do this? Or should I just not put brew in &#x2F;usr&#x2F;local ??
评论 #10310674 未加载
l3x5超过 9 年前
It&#x27;s easy to get Homebrew and Java running smoothly after the El Capitan upgrade.<p>Read this:<p><a href="http:&#x2F;&#x2F;lexsheehan.blogspot.com&#x2F;2015&#x2F;10&#x2F;el-capitan-homebrew-and-java.html" rel="nofollow">http:&#x2F;&#x2F;lexsheehan.blogspot.com&#x2F;2015&#x2F;10&#x2F;el-capitan-homebrew-a...</a>
mjs超过 9 年前
Is this also related to why you can&#x27;t rename &#x2F;usr&#x2F;local to &#x2F;usr&#x2F;local.old? (To do a fresh install of homebrew into &#x2F;usr&#x2F;local.)<p><pre><code> $ sudo mv local local.old mv: rename local to local.old: Operation not permitted</code></pre>
评论 #10309989 未加载
ilaksh超过 9 年前
Using a $150 Chromebook from Walmart with the built-in ssh and my VPSs or xfce via crouton when I feel like it. Works great for web development. No UNIX&#x2F;linux compatibility problems since it is actually Linux.
dafstone超过 9 年前
I installed El Capitan this morning and was expecting to have to do this - I did not. chown stayed owned to me properly, brew functioned as it was before... everything fine.
评论 #10315494 未加载
评论 #10315491 未加载
littlewing超过 9 年前
When I first read this I was a little pissed at Apple, but what if brew were to install everything to &#x2F;brew? It doesn&#x27;t need to install into &#x2F;usr&#x2F;local.
评论 #10310535 未加载
anuraaga超过 9 年前
Before Apple there was companies&#x27; IT&#x27;s Puppet mangaging away &#x2F;usr&#x2F;local from usefulness. Main reason I only use Macports which has never failed me.
sandaru1超过 9 年前
Just make sure that if there are any launch daemons plist files, those should be root:wheel. Otherwise &quot;launchctl&quot; won&#x27;t load those daemons.
rhapsodyv超过 9 年前
Anyone having issues with macports too?
liveoneggs超过 9 年前
pkgsrc allows you to build into any directory you want.
grandalf超过 9 年前
Dear Apple: Please start using apt
mozumder超过 9 年前
The sad part is that &#x2F;usr was supposed to be the original Unix user home directories.<p>&#x2F;bin was where you kept your binaries, and &#x2F;lib for your libraries.
fleitz超过 9 年前
I&#x27;m starting to regret upgrading...
评论 #10309828 未加载
sabujp超过 9 年前
osx just got selinux?
schmichael超过 9 年前
Why does homebrew install things as root anyway? Seems like defaulting to installing in your home directory would be a much better practice.
评论 #10312610 未加载
senthilnayagam超过 9 年前
I update 6 hours ago and tweeted about it<p>brew doctor brew prune sudo chown -R `whoami` &#x2F;usr&#x2F;local brew missing<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;senthilnayagam&#x2F;status&#x2F;649400417323880448" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;senthilnayagam&#x2F;status&#x2F;649400417323880448</a>
amelius超过 9 年前
Concepts such as &quot;ownership&quot; and &quot;permissions&quot; have always been a bit of an issue with Apple.
quotemstr超过 9 年前
Users should have full control over their own machines. System Integrity Protection is obnoxious paternalism at best, and at worst, it&#x27;s just another step toward iOS-ification. If Apple keeps this up, I expect a revival of Linux desktop distributions.
评论 #10310408 未加载
评论 #10310452 未加载
评论 #10310194 未加载
评论 #10310197 未加载
评论 #10310280 未加载
评论 #10310712 未加载
评论 #10310192 未加载
评论 #10310255 未加载
评论 #10324963 未加载
评论 #10311028 未加载
omegote超过 9 年前
Shit like this happens everyday and yet many regard OS X as the best development platform. Wtf?
评论 #10310612 未加载
评论 #10310908 未加载
评论 #10310865 未加载
eccstartup超过 9 年前
Homebrew sounds like a malware of EI Capitan. :)