Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
2782 views
Upgrade python from 3.8 to 3.9
I have manually downloaded the latest python upgrade - 3.9.6, however when I check the version of python on my terminal (iMac - big Sur): ``` -iMac ~ % python --version Python 3.8.8 ``` However, when I try to upgrade my python using home-brew: ``` ~ % brew upgrade python Warning: python 3.9.5 alread...
I have manually downloaded the latest python upgrade - 3.9.6, however when I check the version of python on my terminal (iMac - big Sur):
-iMac ~ % python --version
Python 3.8.8
However, when I try to upgrade my python using home-brew:
~ % brew upgrade python
Warning: python 3.9.5 already installed
I seem to not have the one that I downloaded - python 3.9.6. Is there a way to remove these other python languages i.e. 3.8.8, 3.9.5 and just keeping the latest python 3.9.6?
Stackbeans (101 rep)
Jul 3, 2021, 09:17 AM • Last activity: Jul 2, 2025, 03:03 AM
0 votes
1 answers
71 views
Unable to use zparseopts
I'm having issues with `zparseopts` and it looks like Brew didn't install it correctly. See this simple test below (all similar tests fail): ``` ❯ short_test_zpo() { autoload -Uz zparseopts || { echo "🔴 Autoload FAILED"; return 1; } local my_flag zparseopts -E -- f=my_flag -- "$@" # Use "$@"...
I'm having issues with zparseopts and it looks like Brew didn't install it correctly. See this simple test below (all similar tests fail):
❯ short_test_zpo() {
  autoload -Uz zparseopts || { echo "🔴 Autoload FAILED"; return 1; }
  local my_flag
  zparseopts -E -- f=my_flag -- "$@" # Use "$@" to pass args from func call
  if (( ${#my_flag[@]} )); then
    echo "✅ zparseopts PARSED the -f flag."
    echo "   Remaining args: $@"
  else
    echo "❌ zparseopts DID NOT parse the -f flag (or -f was not given)."
    echo "   Remaining args: $@"
  fi
}


❯ short_test_zpo some arg
short_test_zpo:3: zparseopts: function definition file not found
❌ zparseopts DID NOT parse the -f flag (or -f was not given).
   Remaining args: some arg
I read online that perhaps zparseopts is expected to be under functions, but that doesn't seem to be the case for me:
❯ ls -l $(brew --prefix)/share/zsh/functions/zparseopts

ls: /opt/homebrew/share/zsh/functions/zparseopts: No such file or directory
Reinstalling zsh works successfully (see the trace below), but does not seem to make a difference:
❯ brew reinstall zsh
==> Downloading https://ghcr.io/v2/homebrew/core/zsh/manifests/5.9-3 
Already downloaded: /Users/amelio/Library/Caches/Homebrew/downloads/2913dc2cb6e58f61f4261bc20839152f766b9eaf2f55e601c528b77f4c91a364--zsh-5.9-3.bottle_manifest.json
==> Fetching zsh
==> Downloading https://ghcr.io/v2/homebrew/core/zsh/blobs/sha256:93cacab325d2a9 
Already downloaded: /Users/amelio/Library/Caches/Homebrew/downloads/655b05f05860b07b382da3cd3866feb12706ed25b0a4d381ff276f1ba84c6d18--zsh--5.9.arm64_sequoia.bottle.3.tar.gz
==> Reinstalling zsh
==> Pouring zsh--5.9.arm64_sequoia.bottle.3.tar.gz
🍺  /opt/homebrew/Cellar/zsh/5.9: 1,579 files, 16MB
==> Running brew cleanup zsh...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
### My output from brew config:
❯ brew config
HOMEBREW_VERSION: 4.5.3
ORIGIN: https://github.com/Homebrew/brew 
HEAD: dc0f9d50fd170492a33fd7234d06de1b94df363c
Last commit: 4 days ago
Branch: stable
Core tap JSON: 28 May 05:12 UTC
Core cask tap JSON: 28 May 05:12 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.4.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.4/bin/ruby
CPU: dodeca-core 64-bit arm_blizzard_avalanche
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.5-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: N/A
Rosetta 2: false
### My output from brew doctor
❯ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  icu4c@76

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libfido2.1.14.0.dylib

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.

Unexpected header files:
  /usr/local/include/fido.h
  /usr/local/include/fido/*

Warning: Unbrewed '.pc' files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae and may need to be deleted.

Unexpected '.pc' files:
  /usr/local/lib/pkgconfig/libfido2.pc
Any suggestions on what may be going on, or what I could try to diagnose further?
Amelio Vazquez-Reina (42851 rep)
May 29, 2025, 09:38 PM • Last activity: Jun 10, 2025, 01:19 PM
1 votes
0 answers
950 views
how to debug oh-my-zsh auto-completion not working?
The title largely says it. Most of my auto-completion is working, but `git` is not. It does not complete commands, e.g. `git check `, nor does it complete branches, e.g. `git checkout ge `. It used to until at most a few weeks ago (no idea what changed). Other completions, such as filenames and dire...
The title largely says it. Most of my auto-completion is working, but git is not. It does not complete commands, e.g. git check, nor does it complete branches, e.g. git checkout ge. It used to until at most a few weeks ago (no idea what changed). Other completions, such as filenames and directories and commands, work fine. macOS, git installed via homebrew, zsh with oh-my-zsh, lots of common (i.e. bash and zsh) commands in ~/.common_profile, which is sourced by both ~/.zshrc and ~/.bashrc. It is not that disabling it, as I tried commenting it out. I have both git and gitfast plugins enabled. The git plugin aliases seem to be working fine. I can run ^X? to get a dump, but no idea how to interpret the dump. UPDATE 1: I switched from the default macOS zsh (5.8) to the one installed via homebrew (5.9) and now it works. But I still want to understand why it failed. UPDATE 2: As suggested by Gilles in the comments, I posted the debug output. See this gist .
deitch (473 rep)
Sep 12, 2022, 05:21 PM • Last activity: May 5, 2025, 09:20 AM
0 votes
1 answers
75 views
tlrc not working with homebrew on mac for unknown reason
I installed the package using `brew install` as indicated in `READ.me` with no caveats, then installed rust because it was a missing dependency, and the command `tlrc` is not recognised still. Here's the output of brew info and use of the command: ``` brew info tlrc ==> tlrc: stable 1.9.3 (bottled),...
I installed the package using brew install as indicated in READ.me with no caveats, then installed rust because it was a missing dependency, and the command tlrc is not recognised still. Here's the output of brew info and use of the command:
brew info tlrc
==> tlrc: stable 1.9.3 (bottled), HEAD
Official tldr client written in Rust
https://github.com/tldr-pages/tlrc 
Conflicts with:
  tealdeer (because both install tldr binaries)
  tldr (because both install tldr binaries)
Installed
/opt/homebrew/Cellar/tlrc/1.9.3 (12 files, 2.3MB) *
  Poured from bottle using the formulae.brew.sh API on 2024-12-14 at 09:50:31
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/t/tlrc.rb 
License: MIT
==> Dependencies
Build: rust ✔
==> Options
--HEAD
	Install HEAD version
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
==> Analytics
install: 456 (30 days), 1,420 (90 days), 7,478 (365 days)
install-on-request: 456 (30 days), 1,420 (90 days), 7,478 (365 days)
build-error: 0 (30 days)
❯ tlrc h
zsh: correct 'tlrc' to 'tr' [nyae]? n
zsh: command not found: tlrc
rust has been properly installed: ``` brew info rust ==> rust: stable 1.83.0 (bottled), HEAD Safe, concurrent, practical language https://www.rust-lang.org/ Installed /opt/homebrew/Cellar/rust/1.83.0 (3,552 files, 312.8MB) * Poured from bottle using the formulae.brew.sh API on 2024-12-14 at 09:56:51 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/r/rust.rb License: Apache-2.0 OR MIT ==> Dependencies Required: libgit2 ✔, libssh2 ✔, llvm ✔, openssl@3 ✔, pkgconf ✔, zstd ✔ ==> Requirements Required: macOS >= 10.12 (or Linux) ✔ ==> Options --HEAD Install HEAD version ==> Caveats zsh completions have been installed to: /opt/homebrew/share/zsh/site-functions ==> Analytics install: 38,074 (30 days), 106,686 (90 days), 460,024 (365 days) install-on-request: 28,723 (30 days), 80,606 (90 days), 344,330 (365 days) build-error: 248 (30 days)
Kamil (49 rep)
Dec 23, 2024, 08:06 PM • Last activity: Mar 21, 2025, 01:57 PM
0 votes
0 answers
74 views
Does homebrew and Xcode python share the same environment?
I am trying to flesh-out a mental model of Python environments for my MacBook (MacOS Ventura 12.x). I am aware of venv (virtual environments) and that it serves to prevent updates from changing the venv python3 version and its venv modules (separate configuration management). My Mac is outfitted wit...
I am trying to flesh-out a mental model of Python environments for my MacBook (MacOS Ventura 12.x). I am aware of venv (virtual environments) and that it serves to prevent updates from changing the venv python3 version and its venv modules (separate configuration management). My Mac is outfitted with homebrew: 1) /usr/bin/python3 -V1 returns the **Xcode** Python version: 3.9.6 2) python3 --version or python3 -V returns "Python 3.10.8" 3) brew list | grep python returns: python-packaging python@3.10 python@3.11 python@3.12 python@3.13 mysql-connector-python 4. which python3 returns /usr/local/bin/python3 (Xcode python I presume) 5. brew install python returns: Warning: python@3.13 3.13.1 is already installed, it's just **not linke**d. To link this version, run: brew link python@3.13 Does the Xcode python and homebrew python share the same environment / space or are they somehow separate? If they are separate, how is toggling between the two performed? I ask because I would like to install the pyserial module so that I do not have to use it in a venv and use it with either the Xcode OR the homebrew python (preferable).
gatorback (1522 rep)
Feb 6, 2025, 02:20 AM • Last activity: Feb 6, 2025, 02:58 AM
17 votes
2 answers
12852 views
Cannot change bash shell in Mac OS X
I'm trying to update `bash` shell on my Mac OS Mavericks. $ brew install bash $ which -a bash /bin/bash /usr/local/bin/bash $ which bash /bin/bash $ chsh -s /usr/local/bin/bash $ which bash /bin/bash In Terminal's preference: Shells open with -> Command (complete path) : `/usr/local/bin/bash`. But s...
I'm trying to update bash shell on my Mac OS Mavericks. $ brew install bash $ which -a bash /bin/bash /usr/local/bin/bash $ which bash /bin/bash $ chsh -s /usr/local/bin/bash $ which bash /bin/bash In Terminal's preference: Shells open with -> Command (complete path) : /usr/local/bin/bash. But still, I cannot switch to brew-installed bash shell. What can I do?
chepukha (271 rep)
Feb 3, 2015, 03:37 AM • Last activity: Jan 24, 2025, 11:20 AM
25 votes
2 answers
35634 views
What does command eval "$(/opt/homebrew/bin/brew shellenv)" actually do?
Homebrew requires us to add `eval $(/opt/homebrew/bin/brew shellenv)` to `~/.zprofile`. What does this actually evaluate to and what does this accomplish? I am a bit new to shell scripting. I know `$var` is used to refer to a variable named var but that's about it. What is the meaning of putting a p...
Homebrew requires us to add eval $(/opt/homebrew/bin/brew shellenv) to ~/.zprofile. What does this actually evaluate to and what does this accomplish? I am a bit new to shell scripting. I know $var is used to refer to a variable named var but that's about it. What is the meaning of putting a path inside of $()? Also is shellenv an argument here and what does it signify?
Osbridge (353 rep)
Feb 17, 2023, 12:17 AM • Last activity: Jul 11, 2024, 08:35 AM
2 votes
1 answers
521 views
Homebrew unavailable on Ubuntu when connecting via ssh (PATH doesn't include brew location)
I am connecting with ssh from a Mac to a Ubuntu machine with Homebrew installed (as per [these](https://docs.brew.sh/Homebrew-on-Linux) instructions). When using the Ubuntu machine directly, `brew` works fine. But with ssh, I get the the message `zsh: command not found: brew`. I am using zsh with oh...
I am connecting with ssh from a Mac to a Ubuntu machine with Homebrew installed (as per [these](https://docs.brew.sh/Homebrew-on-Linux) instructions). When using the Ubuntu machine directly, brew works fine. But with ssh, I get the the message zsh: command not found: brew. I am using zsh with oh-my-zsh on both machines. The PATH variable when I connect using ssh is not the same (doesn't have many of the locations, including the one for brew) as when I'm using the machine directly. I suspect the problem may be the one mentioned [here](https://unix.stackexchange.com/questions/543157/brew-is-not-found-when-i-sshpass-to-the-server) , but I couldn't quite figure out what the solution is. Would be of very useful to know how to get the same path as on the machine when connecting via ssh. Thanks.
Py_Dream (151 rep)
Feb 11, 2022, 04:06 PM • Last activity: Jun 13, 2024, 09:37 AM
0 votes
1 answers
4710 views
Why does "alias python=/usr/local/bin/python3.7" keep getting appended to my .zshrc every time I open up a homebrew managed version of Anaconda?
I run a fairly stock .zshrc configuration. Stock meaning only a couple of aliases and a theme. But every time I open my .zshrc, I see several appended lines that all say this: ```` "alias python=/usr/local/bin/python3.7" ```` Here is the teminal output from during the launch: ``` To access the noteb...
I run a fairly stock .zshrc configuration. Stock meaning only a couple of aliases and a theme. But every time I open my .zshrc, I see several appended lines that all say this:
`
"alias python=/usr/local/bin/python3.7"
` Here is the teminal output from during the launch:
To access the notebook, open this file in a browser:
        file:///Users/alexrook/Library/Jupyter/runtime/nbserver-22716-open.html
    Or copy and paste one of these URLs:
        http://localhost:8890/?token=d9124fbeae0ec69f3bad4e31cfd0b22d568a08c4ef053227
     or http://127.0.0.1:8890/?token=d9124fbeae0ec69f3bad4e31cfd0b22d568a08c4ef053227 
[E 20:14:12.598 NotebookApp] Could not open static file ''
[W 20:14:12.726 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (::1) 13.87ms referer=http://localhost:8890/tree?token=d9124fbeae0ec69f3bad4e31cfd0b22d568a08c4ef053227
[W 20:14:12.861 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (::1) 1.45ms referer=http://localhost:8890/tree?token=d9124fbeae0ec69f3bad4e31cfd0b22d568a08c4ef053227
hrokr (109 rep)
Aug 25, 2019, 02:16 AM • Last activity: Apr 24, 2024, 11:02 AM
0 votes
1 answers
3449 views
MacOS terminal issues
I tried installing hombrew for mac os and faced some issues while adding to path, now terminal welcomes me with this messages, how can I fix it? .zprofile:export:4: not valid in this context: export HOMEBREW_PREFIX .zshrc:export:1: not valid in this context: Support/JetBrains/Toolbox/scripts .zprofi...
I tried installing hombrew for mac os and faced some issues while adding to path, now terminal welcomes me with this messages, how can I fix it? .zprofile:export:4: not valid in this context: export HOMEBREW_PREFIX .zshrc:export:1: not valid in this context: Support/JetBrains/Toolbox/scripts .zprofile : # Added by Toolbox App export PATH="$PATH:/Users/randus/Library/Application Support/JetBrains/Toolbox/scripts"eval "$(/opt/homebrew/bin/brew shellenv)" eval "$(/opt/homebrew/bin/brew shellenv)" .zshrc : export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/randus/Library/Application Support/JetBrains/Toolbox/scripts
bobbymurd (11 rep)
Sep 2, 2022, 02:07 PM • Last activity: Apr 9, 2024, 02:25 PM
0 votes
1 answers
118 views
Building and installing GCC 12 in a parallel/sub prefix on heavily modified Ubuntu 14.04
One of my systems that I still use a lot runs a kind of "Frankenbuntu" 14.04 that has received lots of additional updates via PPAs and software I build and install to `/opt/local` (using an adapted version of the MacPorts ports system for Mac; in fact I have most of my Linux ports installed on Mac t...
One of my systems that I still use a lot runs a kind of "Frankenbuntu" 14.04 that has received lots of additional updates via PPAs and software I build and install to /opt/local (using an adapted version of the MacPorts ports system for Mac; in fact I have most of my Linux ports installed on Mac too). The library dirs under that prefix aren't added to ldconfig so I rely on the use or rpaths and runtime setting of LD_LIBRARY_PATH. I've been using clang 8 as my main compiler (newest version that was once provided through LLVM repos) because it's a bit faster and probably more capable than the latest GCC available from Ubuntu (9.4.0). I've built clang 12 myself (an extremely boring exercise in patience!) but just read that you really need clang 17 to get proper c++20 support . Or GCC 12. I happen to have a port for GCC 12 too, but I've run into troubles before installing GCC (7) under /opt/local, issues that had to do with mixing libstdc++ runtimes. Those *may* have been due to the fact that the OS already had (or got updated to) a newer libstdc++ (the one from GCC 9.4.0), and a similar situation is not going occur again. Not until I upgrade the OS at least. Still, I'd like to ask about some up-to-date best-practises and a succinct overview of the pitfalls (the ones less evident for someone who's been installing to and running from a parallel prefix for years). Are there any known incompatibilities between libstdc++ 9.4.0 and 12.3.0? Or the libstdc++ from 13.2.0 which is the one I have installed on my Mac? Thanks in advance! In reaction to the first couple of comments: - I'm a retro-computing "fan". - I know my OS is old and no longer supported. I have reasons to keep it at this version on this particular machine, and am really not looking for further suggestions that it would only take XX minutes to upgrade. I know from experience it'll take a lot more, the system is likely to be unstable until I at least downgrade to a known-compatible kernel (4.14.328 ATM) and in the meantime I won't be able to use it for anything useful. Just building GCC for my parallel prefix will take maybe 5h and will be perfectly reversible (MacPorts has a very handy de/activation feature - I am also aware that libstdc++ isn't forward ABI compatible but that it is at least intended to be *backwards* ABI compatible: > apt contains /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++6:amd64: /usr/lib/x86_64-linux-gnu/libstdc++.so.6 > apt show libstdc++6 Package: libstdc++6 State: installed Automatically installed: no Multi-Arch: same Version: 9.4.0-1ubuntu1~14.04 The libstdc++ version installed by port:libgcc13 on my Mac: > otool -L /opt/local/lib/libgcc/libstdc++.6.dylib /opt/local/lib/libgcc/libstdc++.6.dylib: /opt/local/lib/libgcc/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.32.0) Same SOVERSION (6), also apparent from the more tighly controlled baked-in versioning numbers of the dylib. I interpret this as indicating that libstdc++ v13.2.0 is *supposed to be* a drop-in replacement for the one I currently have, just as that one was a drop-in replacement for the earlier versions that are still available for 14.04: > aptitude versions libstdc++6:amd64 Package libstdc++6: p 4.8.2-19ubuntu1 trusty 500 p 4.8.4-2ubuntu1~14.04.4 trusty-security,trusty-updates 500 i 9.4.0-1ubuntu1~14.04 trusty 500 My question about known incompatibilities and/or issues was thus meant to be read with in the context of the intended backwards compatibility. I have already discovered that GCC 13 no longer provides std::auto_ptr even in C++03 mode where it really ought to be present (but not if that's because of a build configuration thing).
RJVB (254 rep)
Mar 12, 2024, 12:55 PM • Last activity: Mar 15, 2024, 01:32 PM
1 votes
1 answers
140 views
how to install brew forumlae simultaneously?
I tried this, I'll keep the list short: ```bash IFS=$'\n' pkgs=( go gcc make node ) installPkgs() { brew install $1 } export -f installPkgs parallel -j 0 installPkgs ::: ${pkgs[@]} ``` This didn't work as when I typed `node` I got 'command not found'. I know you can do: ``` brew install \ go \ gcc \...
I tried this, I'll keep the list short:
IFS=$'\n'

pkgs=(
  go
  gcc
  make
  node
) 

installPkgs() {
   brew install $1
}

export -f installPkgs

parallel -j 0 installPkgs ::: ${pkgs[@]}
This didn't work as when I typed node I got 'command not found'. I know you can do:
brew install \
  go         \
  gcc        \
  make       \
  node
But this a sequential install, is it possible to do a simultaneous or async install?
Nickotine (554 rep)
Dec 10, 2023, 08:00 PM • Last activity: Dec 11, 2023, 08:27 AM
0 votes
1 answers
57 views
Can't install GDK on Catalina
Welcome, while trying to install Gitlab GDK on a MacBook Pro Catalina 16G RAM it goes ok except three dependencies which already exist but the GDK says they are not installed or outdated! bin/gdk install The following Brewfile's dependencies are missing or outdated: - dpkg - git-lfs - graphicsmagick...
Welcome, while trying to install Gitlab GDK on a MacBook Pro Catalina 16G RAM it goes ok except three dependencies which already exist but the GDK says they are not installed or outdated! bin/gdk install The following Brewfile's dependencies are missing or outdated: - dpkg - git-lfs - graphicsmagick To install these dependencies, run the following command: (cd /Users/wpplumber/Workspace/Gitlab/dev/gitlab-development-kit && brew bundle) make: *** [support/makefiles/Makefile.config.mk:208: preflight-checks-run] Error 1 make: *** [support/makefiles/Makefile.timing.mk:4: preflight-checks-timed] Error 2 ❌️ ERROR: Failed to install. ------------------------------------------------------- You can try the following that may be of assistance: - Run 'gdk doctor'. - Visit the troubleshooting documentation: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/troubleshooting/index.md . - Visit https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues to see if there are known issues. - Run 'gdk reset-data' if appropriate. - Run 'gdk pristine' which will restore your GDK to a pristine state. After running the cmd: brew bundle it shows the following error which seems a bug with tar ! ==> Fetching dpkg ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/e579248a9a82f75681ed695591446505bb91b864/Formula/d/dpkg.rb ==> Downloading https://deb.debian.org/debian/pool/main/d/dpkg/dpkg_1.22.0.tar.xz ==> Installing dependencies for dpkg: gnu-tar ==> Installing dpkg dependency: gnu-tar ==> ./configure --mandir=/usr/local/Cellar/gnu-tar/1.35/share/man --program-pref ==> make install Last 15 lines from /Users/wpplumber/Library/Logs/Homebrew/gnu-tar/02.make: _verify_volume in compare.o _process_rawdata in compare.o _dump_regular_file in create.o _sparse_dump_region in sparse.o _main in tar.o _read_error_details in libtar.a(paxerror.o) ... "_libintl_setlocale", referenced from: _main in tar.o "_libintl_textdomain", referenced from: _main in tar.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [tar] Error 1 make: *** [install-recursive] Error 1 Do not report this issue to Homebrew/brew or Homebrew/homebrew-core! Error: You are using macOS 10.15. We (and Apple) do not provide support for this old version. It is expected behaviour that some formulae will fail to build in this old version. It is expected behaviour that Homebrew will be buggy and slow. Do not create any issues about this on Homebrew's GitHub repositories. Do not create any issues even if you think this message is unrelated. Any opened issues will be immediately closed without response. Do not ask for help from Homebrew or its maintainers on social media. You may ask for help in Homebrew's discussions but are unlikely to receive a response. Try to figure out the problem yourself and submit a fix as a pull request. We will review it but may or may not accept it. Installing dpkg has failed! Using exiftool Using git Installing git-lfs
Tarik (101 rep)
Oct 17, 2023, 11:20 AM • Last activity: Nov 5, 2023, 08:02 AM
0 votes
1 answers
307 views
Homebrew in Ubuntu getting uninstalled after reboot
I am installing properly Homebrew in my ubuntu 22.04 and everything is fine brew doctor, brew --version everything is running properly. But everytime I am rebooting my system, the homebrew is getting uninstalled I dont know why this is happening. Please someone suggest a solution
I am installing properly Homebrew in my ubuntu 22.04 and everything is fine brew doctor, brew --version everything is running properly. But everytime I am rebooting my system, the homebrew is getting uninstalled I dont know why this is happening. Please someone suggest a solution
user569364 (1 rep)
Nov 21, 2022, 05:54 PM • Last activity: Jul 27, 2023, 07:29 PM
0 votes
2 answers
940 views
Homebrew Installation Issue
Fairly new at Linux here and have a question about installing Homebrew. I'm using Centos7 and already updated all the required dependencies (cURL, etc.). When I run the Linux installation script from the Homebrew homepage, the process fails with the following error: ``` ==> /usr/bin/sudo /bin/chown...
Fairly new at Linux here and have a question about installing Homebrew. I'm using Centos7 and already updated all the required dependencies (cURL, etc.). When I run the Linux installation script from the Homebrew homepage, the process fails with the following error:
==> /usr/bin/sudo /bin/chown -R username:username /home/linuxbrew/.linuxbrew/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (7/7), done.
remote: Total 16 (delta 7), reused 7 (delta 7), pack-reused 9
Unpacking objects: 100% (16/16), 3.98 KiB | 94.00 KiB/s, done.
From https://github.com/Homebrew/brew 
   560f5717a..31758eaa0  master     -> origin/master
HEAD is now at 31758eaa0 Merge pull request #14027 from MikeMcQuaid/devcontainer
/home/linuxbrew/.linuxbrew/bin/brew: line 26: !": event not found
/home/linuxbrew/.linuxbrew/bin/brew: line 24: HOMEBREW_NO_ENV_FILTERING: unbound variable
Failed during: /home/linuxbrew/.linuxbrew/bin/brew update --force --quiet
[usernamek@centos ~]$
Has anyone seen this before, or might be able to point me in the right direction? I couldn't find any info pertaining to this particular installation failure anywhere else the I looked during my research. Per comment, adding lines from
/home/linuxbrew/.linuxbrew/bin/brew
:
#!/bin/bash    #line 1
#lines 21-28:
# Fail fast with concise message when requesting unfiltered environment.
# This is basically odisabled so can be removed at any major release afterwards
# and definitely if this is still here in 2023.
if [ -n "${HOMEBREW_NO_ENV_FILTERING}" ]
then
  echo "Error: HOMEBREW_NO_ENV_FILTERING was deprecated for over a year and has now been removed (because it breaks many things)!" >&2
  exit 1
fi
Edit: Here is the exact install command I ran, from the Homebrew homepage:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) "
Thanks!
Mrschwifty (1 rep)
Oct 27, 2022, 09:04 PM • Last activity: Apr 4, 2023, 12:39 AM
1 votes
1 answers
2870 views
After restarting terminal, Brew commands not working and getting some error in terminal
I have macOS Monterey(v12.3) and had installed brew with exact guidelines shown in youtube videos. But brew commands work only if I run in the same terminal session. When I restart the terminal and try to run the brew command it shows the following error: zsh: command not found: brew I have tried to...
I have macOS Monterey(v12.3) and had installed brew with exact guidelines shown in youtube videos. But brew commands work only if I run in the same terminal session. When I restart the terminal and try to run the brew command it shows the following error: zsh: command not found: brew I have tried to install the brew multiple time but every time same thing happens. I am new to MacOS. Please help. screenshot
Saurabh (13 rep)
Sep 4, 2022, 06:01 AM • Last activity: Mar 8, 2023, 11:41 AM
1 votes
1 answers
1148 views
Command output evaluation not working in Bash script
I am trying to automate adding Homebrew to my path in a shell script, but these two lines do not evaluate inside my shell script: ```bash #!/bin/sh eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" ``` The second line of code runs the program `[home]brew` with [the argument `shellenv`](https://...
I am trying to automate adding Homebrew to my path in a shell script, but these two lines do not evaluate inside my shell script:
#!/bin/sh
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
The second line of code runs the program [home]brew with [the argument shellenv](https://github.com/Homebrew/brew/blob/master/Library/Homebrew/cmd/shellenv.sh) . It echoes several environment variables to set which are then evaluated. The first line just adds the second line to my ~/.profile so brew's PATH is setup in every shell. I noticed that this statement does not work in my shell script, ***but*** it does when I type it into my terminal. What might be causing this? I tried running the commands I was instructed to run after Homebrew installed in a shell script and got the same behavior. **similar question:** - [problem with homebrew installation path on linux](https://unix.stackexchange.com/questions/713835/problem-with-homebrew-installation-path-on-linux)
unrealapex (132 rep)
Feb 16, 2023, 01:37 AM • Last activity: Feb 19, 2023, 08:41 AM
1 votes
1 answers
20307 views
Error while trying to source a .zshrc file
What am I doing wrong here? % echo "export HOMEBREW_GITHUB_API_TOKEN=XXXX">> ~/.zshrc; % source ~.zshrc; zsh: no such user or named directory: .zshrc
What am I doing wrong here? % echo "export HOMEBREW_GITHUB_API_TOKEN=XXXX">> ~/.zshrc; % source ~.zshrc; zsh: no such user or named directory: .zshrc
User8889 (11 rep)
Apr 29, 2022, 09:47 AM • Last activity: Feb 9, 2023, 11:17 AM
1 votes
0 answers
385 views
gawk inplace error
https://unix.stackexchange.com/questions/496179/how-to-change-a-file-in-place-using-awk-as-with-sed-i When I follow the solution above, I get the following error on mac. How to find why it does not work on mac? ``` awk -i inplace '/hello/ { print "oh,", $0 }' file awk: fatal: cannot open source file...
https://unix.stackexchange.com/questions/496179/how-to-change-a-file-in-place-using-awk-as-with-sed-i When I follow the solution above, I get the following error on mac. How to find why it does not work on mac?
awk -i inplace '/hello/ { print "oh,", $0 }' file
awk: fatal: cannot open source file `inplace' for reading: No such file or directory
$ awk --version
GNU Awk 5.2.1, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.1.0-p13, GNU MP 6.2.1)
Copyright (C) 1989, 1991-2022 Free Software Foundation.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/ .

$ brew info gawk
==> gawk: stable 5.2.1 (bottled), HEAD
GNU awk utility
https://www.gnu.org/software/gawk/ 
Conflicts with:
  awk (because both install an awk executable)
/usr/local/Cellar/gawk/5.2.0 (98 files, 5.7MB)
  Poured from bottle on 2022-10-30 at 23:05:46
/usr/local/Cellar/gawk/5.2.1 (98 files, 5.8MB) *
  Poured from bottle on 2022-12-28 at 23:01:26
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gawk.rb 
License: GPL-3.0-or-later
==> Dependencies
Required: gettext ✔, mpfr ✔, readline ✔
==> Options
--HEAD
	Install HEAD version
==> Analytics
install: 24,742 (30 days), 82,190 (90 days), 178,408 (365 days)
install-on-request: 20,593 (30 days), 67,741 (90 days), 135,672 (365 days)
build-error: 7 (30 days)
user1424739 (315 rep)
Dec 29, 2022, 05:02 AM • Last activity: Dec 29, 2022, 05:08 AM
2 votes
1 answers
1993 views
Homebrew multiuser on Monterey M1
I am trying to setup a 2 user Homebrew configuration on my M1 Mac on Monterey. I have 2 accounts on the laptop: `bob` and `work`. `bob` will be the Homebrew owner, and `work` will access it via a sudo to `bob`. Following [this article](https://www.codejam.info/2021/11/homebrew-multi-user.html), unde...
I am trying to setup a 2 user Homebrew configuration on my M1 Mac on Monterey. I have 2 accounts on the laptop: bob and work. bob will be the Homebrew owner, and work will access it via a sudo to bob. Following [this article](https://www.codejam.info/2021/11/homebrew-multi-user.html) , under sectiion "the good", I have installed homebrew into bob and have created a sudo alias in the .zshrc of work, my .zshrc contains
fpath+=("/opt/homebrew/share/zsh/site-functions")
alias brew='sudo -Hu bob brew'
However, when I run brew commands from work it is not working.
❯ brew
Password:
sudo: brew: command not found

~
❯ which brew
brew: aliased to sudo -Hu bob brew
These other articles were not helpful but linking here for completeness: - https://unix.stackexchange.com/questions/351513/multiuser-homebrew-privileges - https://unix.stackexchange.com/questions/598733/configuring-homebrew-for-multiple-users-on-macos
port5432 (969 rep)
Aug 25, 2022, 06:20 AM • Last activity: Oct 17, 2022, 05:01 AM
Showing page 1 of 20 total questions