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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A surprisingly common error users make when installing Brew

201 点作者 brendanfalk将近 4 年前

21 条评论

herpderperator将近 4 年前
&gt; You should actually 1. run the line starting with echo in your current shell OR copy and paste the line starting with eval into your relevant dotfile.<p>This isn&#x27;t right. You should be running both commands in your shell. That&#x27;s what the brew instructions are saying, albeit in a confusing manner.<p>The first command makes future shells have brew in their $PATH, the second command applies it for the current shell.<p>To make things even easier for users, brew could forgo the second command and just ask users to close the current terminal and open a new one. This has the added benefit of confirming the first command.
评论 #27901683 未加载
评论 #27902121 未加载
评论 #27901707 未加载
herpderperator将近 4 年前
If people don&#x27;t even know what those commands mean, why are they even presented as a step? The installer could do both things for them.
评论 #27901675 未加载
评论 #27902146 未加载
评论 #27901656 未加载
评论 #27902096 未加载
评论 #27901673 未加载
评论 #27906447 未加载
评论 #27916187 未加载
评论 #27902477 未加载
评论 #27904055 未加载
philo23将近 4 年前
I think up until recently, homebrew was also recommending incorrect instructions for fish shell users in a similar sounding way. The instructions basically said add &quot;fish_add_path &#x2F;usr&#x2F;local&#x2F;bin&quot; to your config.fish file, but in actual fact you only need to run fish_add_path once and its added permanently to your $PATH for all your future sessions, as well as your current session.<p>I only realised when I finally got fed up with my terminal taking several seconds to start, I dug into why and found that my $PATH had something crazy like &gt;1000 items with the homebrew path taking up pretty much all of them.
fouc将近 4 年前
Lately I&#x27;ve been getting tired of homebrew. It&#x27;s not compatible with keeping old versions of software installed. It automatically runs an upgrade of all your installed stuff every so often (when you run brew), which is fundamentally user-hostile behavior.<p>I strongly recommend to consider switching to macports or pkgsrc or nix as your package manager. And&#x2F;or possibly just using a linux VM as your development environment, such as NixOS.
评论 #27901997 未加载
评论 #27904036 未加载
j1elo将近 4 年前
This is not an error users make. It&#x27;s an error that Brew makes, as a software: not taking the chance to, you know, <i>work for the user</i> instead of otherwise, as computing should do.<p>Just ask the user if they want the configuration be automatically applied for them. 99% will say &quot;yes, please&quot; and the rest will be the commenters here who (fairly enough) don&#x27;t want their init scripts touched by an installer.
评论 #27905121 未加载
evanrelf将近 4 年前
This feels more like an advertisement for Fig than a genuinely interesting issue?
评论 #27902367 未加载
评论 #27901831 未加载
noway421将近 4 年前
The eval part of the script is unnecessarily versatile. I think a much simpler (and easier to understand) step is to ask user to relaunch their Terminal.<p>Then the instruction becomes an easy 1 step task.
评论 #27901906 未加载
评论 #27902403 未加载
irjustin将近 4 年前
Ah yes, the instructions should say &quot;Run this in your console (Do not paste into file)&quot; or similar.<p>I really appreciate the quick test to show whether this problem exists for you.
评论 #27901644 未加载
pwrplus1将近 4 年前
&gt; A surprisingly common error users make when installing Brew<p>Installing Homebrew.
评论 #27903004 未加载
kms_2021将近 4 年前
I really appreciate the quick test to show whether this problem exists for you.
lyptt将近 4 年前
I was a long time homebrew user, but I found as time went on it got increasingly frustrating to use. The one thing that kept biting me was it wanting to update itself and all installed packages each time you install a new package. Having to wait 20 minutes for LLVM to recompile itself just so you can install wget is not fun.<p>I use MacPorts now, since it gets out of your way. It&#x27;s up to you when you choose to update its index or your packages, which is much more user friendly in my opinion.
评论 #27906559 未加载
femto113将近 4 年前
at some point I got sufficiently frustrated with all the things that decided they need to add the same various folders to my path over and over that I added this to the end of my .tcshrc (something similar should be possible in most shells)<p><pre><code> # dedupe path set path = ( `echo $path | tr &#x27; &#x27; &#x27;\n&#x27; | perl -ne &#x27;print $_ unless $s{$_}++;&#x27; | tr &#x27;\n&#x27; &#x27; &#x27;` )</code></pre>
atian将近 4 年前
Is the <a href="http:&#x2F;&#x2F;localhost&#x2F;fig.io?ref=github" rel="nofollow">http:&#x2F;&#x2F;localhost&#x2F;fig.io?ref=github</a> link broken?
评论 #27901620 未加载
phendrenad2将近 4 年前
Solution: instead of that text-based installation instruction, show a link to a URL which guides them the rest of the way, with visuals.
评论 #27902039 未加载
rubyist5eva将近 4 年前
The first line adds the brew setup to your shell startup file. The second line executes the same brew setup steps, but for <i>your current shell</i> so you can you start using brew right away. Both lines should be executed in your shell when you first install homebrew.
ngcc_hk将近 4 年前
Wonder given there is an obvious pattern to it can a script (!) one line and ensure even if copy to the dot file still ok to clean it up … if it is so common why not use computer to check and clean it.
评论 #27925928 未加载
icythere将近 4 年前
As discussed [1], please don&#x27;t simply copy shell things without a stop;)<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10554679" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10554679</a>
nxpnsv将近 4 年前
It might be a bit of a baity thing for fig, and I&#x27;ve never encountered this problem, but I guess to work as i signed up...
julienfr112将近 4 年前
Maybe create a developer licence that is required to launch the terminal ?
rectangleboy将近 4 年前
The most common error is installing Brew in the first place.
smoldesu将近 4 年前
I agree with the other commenter, this is just a blatant ad for a paid product.<p>If you&#x27;re a CEO of anything, anywhere who ever interacts with Hacker News: do yourself a favor and don&#x27;t submit anything you have had a hand in. It just feels filthy, and it ruins the integrity of the submissions process. Pieces like this hitting frontpage are the reason I can&#x27;t trust this site anymore...<p>...Furthermore, I also remember seeing <i>another</i> Fig-related submission earlier in the month. It feels like I&#x27;m the target of a hyper-concentrated ad-campaign.