Questions tagged [homebrew]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
15 views

How to install bash completion in zsh using Homebrew Formula

In bash, my Homebrew Formula installs the completion: bash_completion.install "completions.bash" => "dgtools.tz.bash" However, in zsh it seems that you can only install ...
DavidGamba's user avatar
12 votes
2 answers
8k 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 ...
Osbridge's user avatar
  • 123
1 vote
1 answer
478 views

Command output evaluation not working in Bash script [duplicate]

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)&...
unrealapex's user avatar
1 vote
0 answers
170 views

gawk inplace error

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 '/...
user1424739's user avatar
0 votes
1 answer
108 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 ...
user569364's user avatar
0 votes
0 answers
6 views

How to execute homebrew installed apps with sudo? [duplicate]

I use homebrew to manage apps in Linux, Ubuntu being more precise. On homebrew installation, I followed recommendations and put its app install location into PATH for my user session (into file ~/....
Antonio's user avatar
  • 101
0 votes
2 answers
579 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 ...
Mrschwifty's user avatar
0 votes
0 answers
196 views

ld: error: undefined symbol: X509_STORE_new

I build grpc static library, but I get error: ld: error: undefined symbol: X509_STORE_new I have installed openssl: mindgood@minds-MacBook-Pro grpc % whereis openssl openssl: /usr/bin/openssl /...
user avatar
1 vote
0 answers
280 views

getting WGET to save clean file extensions, without query parameter

I am using wget on mac to download hundreds of thousands of images... however the saved files all have a '?' saved at the end of the file extension (like the start of a query parameter) How can i get ...
Matthew Swart's user avatar
0 votes
1 answer
827 views

Brew no longer works - macOs 12.6

I work on macOs monterey 12.6 with a M1 pro chip. I was working on a project with php (8.1), composer and symfony installed and everything was working fine. I closed my terminal and since when I go ...
Cedric Petetin's user avatar
0 votes
1 answer
1k 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 ...
Saurabh's user avatar
0 votes
1 answer
2k 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 ...
bobbymurd's user avatar
1 vote
1 answer
1k 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. ...
port5432's user avatar
  • 911
0 votes
0 answers
575 views

Error: Cask 'visual-studio-code' is unavailable: No Cask with this name exists

I try to download visual studio code via brew, and on https://formulae.brew.sh/cask/visual-studio-code its clearly written that the install command is brew install --cask visual-studio-code but when ...
Game0verZeus's user avatar
0 votes
2 answers
1k views

problem with homebrew installation path on linux

So the problem looks like that : I followed all the instructions from https://docs.brew.sh/Homebrew-on-Linux , to install oh my posh via brew. The problem is that I think I putted a wrong path while ...
Game0verZeus's user avatar
2 votes
2 answers
1k views

Using jq in a bash script to get an element with a certain value pattern

I'm calling the homebrew api in a shell script with the goal of getting the App name for the item before trying to install it. Luckily the api provides this in an element called artifacts. Unluckily, ...
Aaryn's user avatar
  • 123
1 vote
1 answer
11k 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
User8889's user avatar
1 vote
0 answers
30 views

Installed a package using brew, but when I try to run its command, it's not identified

I am using homebrew on ubuntu to install x86_64-elf-gcc. After installing it, I tried running it, but Ubuntu won't recognize the installed package...
Matthew G.'s user avatar
1 vote
1 answer
1k views

Brew installation fails due to Ruby versioning?

I am trying to install Linux Brew on Garuda Linux (Arch Linux based distro) but the install script fails with the following error: ==> Pouring portable-ruby-2.6.8.x86_64_linux.bottle.tar.gz Error: ...
ITA's user avatar
  • 123
1 vote
1 answer
193 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 instructions). When using the Ubuntu machine directly, brew works fine. But with ssh, I get the the ...
Py_Dream's user avatar
  • 131
1 vote
0 answers
183 views

how to make brew output log in terminal

I am using this command to start nginx on macOS (M1 chip): brew services nginx start the output tell me the service start success, but when I using this commnad to check the services and check the ...
Dolphin's user avatar
  • 509
0 votes
1 answer
83 views

Tmux changes to default preinstalled nano version instead of newly installed homebrew one

When i use nano in the terminal without enabling tmux, it shows the path for the brew version nano is an alias for /opt/homebrew/Cellar/nano However when i use tmux, type nano shows the same path but ...
Vanillamice's user avatar
3 votes
1 answer
2k views

cp setattrlist Permission denied on MacOS

I am a second "Administrator" user on a Mac OS. I am in the admin group, and am trying to use homebrew, which was installed by the first user. I have made sure everything in /usr/local/* is ...
Tri Nguyen's user avatar
5 votes
2 answers
3k views

GDB Installed From homebrew on macOS Big Sur Fails to Load Symbols From elf32-i386 Binary

for the past little bit I've been slowly working on developing a hobbyist kernel, and for all that time I've been using GDB with QEMU to investigate memory locations and registers and what not. ...
aurxenon's user avatar
0 votes
1 answer
699 views

Debian stuck on login screen loop after homebrew install

I installed homebrew today on Debian buster. After a reboot, it's not going past the initial login screen even with correct password. But I am able to log onto console. I think I messed up the ./...
Awakened's user avatar
  • 111
0 votes
0 answers
292 views

zsh: run function after specific command and argument

Currently structuring my dotfiles and figured i would make a copy of all installed homebrew and cask packages. This is very nicely done via homebrew-bundle. However, I want to add some automation to ...
hpl002's user avatar
  • 101
1 vote
0 answers
774 views

What do the avifenc min/max quality settings do?

I'm using avifenc by joedrago to create AVIF images (for use on the web). I installed it via Homebrew on macOS using: brew install joedrago/repo/avifenc There doesn't seem to be a single quality ...
DisgruntledGoat's user avatar
2 votes
1 answer
1k views

Configuring homebrew for multiple users on MacOs

UPDATES brew --prefix returns: /usr/local CONTEXT A MacOs Mojave desktop is: initially configured with brew a new user is added A new group, brew, is added per instructions and user 2 was added to ...
gatorback's user avatar
  • 1,214
1 vote
0 answers
540 views

How do I install an older version of boost-python3 on Mac OS

Currently, brew install boost-python3 installs a new version of boost and the library boost_python38 (libboost_python38.dylib), however I need boost_python37 or older. I managed to install an ...
aaronkawa's user avatar
3 votes
1 answer
75k views

Python "SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/docutils/"

PROBLEM Whatever I try to install from terminal with pip (macOS 10.12) I get this error message I may have installed and fully deleted homebrew before but I am not sure how to solve this Installs ...
sogu's user avatar
  • 141
1 vote
1 answer
1k views

Fedora: Command not found with sudo

I am aware of the --preserve-env or -E flag in sudo, however, it seems like this flag causes sudo to act weird in Fedora. I installed ranger with LinuxBrew, Here's what I get when I type in which ...
David's user avatar
  • 133
0 votes
1 answer
197 views

Symlink pointing at wrong file when executing

I'm having a strange issue with hugo binary installed using brew on Ubuntu 18.04. When I run which hugo I get /home/linuxbrew/.linuxbrew/bin/hugo and when I look at that directory with ls -la /home/...
Miloš Kroulík's user avatar
1 vote
1 answer
1k views

Problem Adding PATH to ~/.zshrc

I am having an issue adding a path variable on my zsh. This is the warning that was produced: Warning: Homebrew's sbin was not found in your PATH but you have installed formulae that put executables ...
Kevin Kavai's user avatar
1 vote
1 answer
167 views

Homebrew throws error when running make to move binaries

I am trying to write a formula for homebrew to install a C++ tool I made. I have the following rule in my makefile to copy binaryFile file to /usr/local/bin: install: @install -m 0755 binaryFile ...
k-a-v's user avatar
  • 202
0 votes
1 answer
4k 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/...
hrokr's user avatar
  • 109
3 votes
1 answer
2k views

Homebrew replaced Python3, how to reverse?

While trying to install AWS SAM CLI on a linux box, I had to install Homebrew/Linuxbrew. The AWS package have a dependency to python 3, which I already have installed on my system. In the middle of ...
DrakaSAN's user avatar
  • 441
1 vote
1 answer
284 views

Where is the location of linuxbrew's log files?

In MacOS, homebrew output logs to ~/Library/Logs/Homebrew. What is the equivalent in Linux for linuxbrew?
hanxue's user avatar
  • 551
7 votes
1 answer
883 views

byobu configuration menu escape / exit always closes the tab

I've been using byobu for ~4 years at this point and I do not remember this behavior before. If I press F1 (this always happens by accident actually, with the exception of initial setup I never want ...
Asaf's user avatar
  • 173
2 votes
2 answers
119 views

Having a hard time understanding package-manager repositories? [duplicate]

I'm currently starting to play around in the Terminal (MacOS), and learning to get the most out of it. I knew Homebrew was a very populair alternative package-manager on MacOS, so I decided to look ...
LeeSwaggers's user avatar
4 votes
2 answers
201 views

Why does LC_MESSSAGES need to be exported on macOS homebrew bash to take effect?

On macOS, with bash installed from homebrew, I noticed that setting LC_MESSAGES seems to have some effect on the current shell's locale settings, but messages doesn't actually change until LC_MESSAGES ...
user avatar
0 votes
1 answer
409 views

ZSH and GDBM support

I am trying to learn more about ZSH and the way that my shell is setup and operates. I am running OSX and have installed ZSH with HomeBrew so as not to use my standard system ZSH. However, before ...
TheDelChop's user avatar
5 votes
2 answers
2k views

"brew install -s" does not compile from source

I want to install vim via homebrew, from the compile, but even when I ran the command with -s flag, the compile does not occur. brew install -s vim --with-luajit Or brew reinstall -s vim --with-...
Blaszard's user avatar
  • 359
0 votes
3 answers
626 views

Prevent script from sudoing

I have a script that runs an utility every two days. This utility does some stuff on my system. It is a very known, widely used piece of open source software. #!/usr/bin/env bash #...do stuff here ...
Thom's user avatar
  • 103
2 votes
1 answer
715 views

Brew Formula: How can I define cask and external dependencies?

I’m writing a brew formula for my own tap, having XQuartz and external sources (not available on brew) as dependencies. How can I include them in my formula?
oioioi's user avatar
  • 33
0 votes
1 answer
917 views

OS X - Why is python not properly sourced in `which python`?... and is more broken in the system-level python?

TL;DR: Is this $PATH string backwards if I'm trying to source python 2.7 from the homebrew-installed version? $ echo $PATH /Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/...
user3.1415927's user avatar
2 votes
2 answers
1k views

There is no Cellar in /usr/local for brew

I have been trying to use brew to install tmux but every time I put in brew install tmux it would tell me: Error: Could not create /usr/local/Cellar Check you have permission to write to /usr/local ...
StrangeRanger's user avatar
1 vote
1 answer
1k views

How to install libzip 1.2 on Debian as well as OSx via homebrew? [closed]

I want to use http://php.net/manual/en/ziparchive.setencryptionname.php but this relies on libzip version 1.2 being available. On Debian, a $ dpkg -s libzip-dev prints Package: libzip-dev Status: ...
Adrian Föder's user avatar
8 votes
3 answers
4k views

How Do I Unbuffer The Output Passed From an Interactive Command Into a Pipeline Ending With `tee`?

     I'm troubleshooting an interactive command and would like to: see output printed to my screen with its original coloration, unbuffered or line-buffered (instead of ...
RandomDSdevel's user avatar
0 votes
1 answer
67 views

How can I set ENV from a path

I just installed android-sdk using Homebrew. The path is /usr/local/Caskroom/android-sdk/3859397,26.0.1. I know I can export ANDROID_HOME with that value. How can I set it dynamically using the ...
Jin Kwon's user avatar
  • 480
11 votes
1 answer
23k views

gsed: command not found on macOS with Homebrew

I am using oh my zsh. I am not able to use some commands which I could do on ubuntu for e.g.. \s in regular expressions. I installed home-brew and then brew install gnu-sed --default-names but still I ...
Ishan Srivastava's user avatar