TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A surprisingly common error users make when installing Brew

201 pointsby brendanfalkalmost 4 years ago

21 comments

herpderperatoralmost 4 years ago
&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 未加载
herpderperatoralmost 4 years ago
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 未加载
philo23almost 4 years ago
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.
foucalmost 4 years ago
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 未加载
j1eloalmost 4 years ago
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 未加载
evanrelfalmost 4 years ago
This feels more like an advertisement for Fig than a genuinely interesting issue?
评论 #27902367 未加载
评论 #27901831 未加载
noway421almost 4 years ago
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 未加载
irjustinalmost 4 years ago
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 未加载
pwrplus1almost 4 years ago
&gt; A surprisingly common error users make when installing Brew<p>Installing Homebrew.
评论 #27903004 未加载
kms_2021almost 4 years ago
I really appreciate the quick test to show whether this problem exists for you.
lypttalmost 4 years ago
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 未加载
femto113almost 4 years ago
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>
atianalmost 4 years ago
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 未加载
phendrenad2almost 4 years ago
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 未加载
rubyist5evaalmost 4 years ago
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_hkalmost 4 years ago
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 未加载
icytherealmost 4 years ago
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>
nxpnsvalmost 4 years ago
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...
julienfr112almost 4 years ago
Maybe create a developer licence that is required to launch the terminal ?
rectangleboyalmost 4 years ago
The most common error is installing Brew in the first place.
smoldesualmost 4 years ago
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.