All Questions
2,900
questions
1186
votes
38
answers
1.3m
views
How can I start PostgreSQL server on Mac OS X?
Final update:
I had forgotten to run the initdb command.
By running this command
ps auxwww | grep postgres
I see that postgres is not running
> ps auxwww | grep postgres
remcat 1789 0....
852
votes
34
answers
297k
views
nvm keeps "forgetting" node in new terminal session
Upon using a new terminal session in OS X, nvm forgets the node version and defaults to nothing:
$ nvm ls:
.nvm
v0.11.12
v0.11.13
I have to keep hitting nvm use v.0.11.13 in ...
802
votes
32
answers
712k
views
How to fix homebrew permissions?
I have uninstalled and installed Homebrew 3 times now because it seems to never allow me to install anything as it denies me permissions at the end of most installations.
As an example I will post ...
690
votes
47
answers
477k
views
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac
I installed node using homebrew (Mojave), afterwards php stoped working and if I try to run php -v I get this error:
php -v
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
...
646
votes
66
answers
607k
views
Postgres could not connect to server
After I did brew update and brew upgrade, my postgres got some problem. I tried to uninstall postgres and install it again, but it didn't work as well.
This is the error message. (I also got this ...
564
votes
13
answers
606k
views
Uninstall / remove a Homebrew package including all its dependencies
I have a Homebrew formula that I wish to uninstall/remove along with all its dependencies, skipping packages whom other packages depend upon (a.k.a. Cascading package removal in Package manager ...
470
votes
6
answers
56k
views
`pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)
I use postgres from homebrew in my OS X, but when I reboot my system, sometimes the postgres doesn't start after the reboot, and so I manually tried to start it with postgres -D /usr/local/var/...
467
votes
44
answers
319k
views
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
I installed vapor via homebrew and then immediately wanted to jump into a project by executing vapor new Hello but then got the following message back in the terminal:
dyld: Library not loaded: /usr/...
418
votes
3
answers
143k
views
What does brew tap mean?
Sometimes I see articles saying command of brew tap before brew install something. I am wondering what does tap mean? And why must I run tap before install?
416
votes
17
answers
590k
views
brew install mysql on macOS
I'm trying to setup up MySQL on mac os 10.6 using Homebrew by brew install mysql 5.1.52.
Everything goes well and I am also successful with the mysql_install_db.
However when I try to connect to the ...
411
votes
19
answers
266k
views
Brew doctor says: "Warning: /usr/local/include isn't writable."
Brew doctor says:
Warning: /usr/local/include isn't writable. This can happen if you "sudo make install" software that isn't managed by Homebrew.
If a brew tries to write a header file to ...
380
votes
31
answers
838k
views
After installing Homebrew I get `zsh: command not found: brew` [closed]
➜ ~ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-e:77: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040677
It appears ...
367
votes
13
answers
212k
views
Postgres - FATAL: database files are incompatible with server
After restarting my MacBook Pro I am unable to start the database server:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain ...
361
votes
26
answers
784k
views
Installing Homebrew on macOS
According to the Homebrew site, to install it, I need to type:
brew install wget
I get an error message:
-bash: brew: command not found
Found this answer. The problem, however, is I don't see brew ...
338
votes
40
answers
625k
views
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' [duplicate]
I installed MySQL on Mac OS X Mountain Lion with homebrew install mysql, but when I tried mysql -u root I got the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through ...
327
votes
9
answers
109k
views
How to avoid "cannot load such file -- utils/popen" from homebrew on OSX
I'm getting an error when I run brew in the terminal:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such ...
316
votes
17
answers
73k
views
gem eventmachine fatal error: 'openssl/ssl.h' file not found
Just installed El Capitan and can't install gem eventmachine 1.0.7. openssl is at 1.0.2a-1. Tried to use --with-ssl-dir but it seems ignored.
Reported it to their github repo as well.
Any ...
311
votes
24
answers
157k
views
Upgrade all the casks installed via Homebrew Cask
I use Homebrew Cask to install applications on OS X. How do I upgrade all the installed casks?
294
votes
20
answers
332k
views
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)
I use the latest Apple M1 chip processor. And I keep getting errors while application installation.
I run:
brew install openjdk@11
Error: Cannot install in Homebrew on ARM processor in Intel default ...
293
votes
16
answers
812k
views
How do you update Xcode on OSX to the latest version?
What is the easiest way to update Xcode on OSX?
I see this in the terminal:
$ brew install xxxxxxx
Warning: Your Xcode (4.3.3) is outdated
Please install Xcode 4.6.
But when I go to open up Xcode &...
290
votes
8
answers
218k
views
How do I find a list of Homebrew's installable packages?
Recently I installed Brew. How can I retrieve a list of available brew packages to install?
278
votes
8
answers
286k
views
Brew install docker does not include docker engine?
Trying to setup docker from brew, however the engine does not seem to be included in any of the any of the official formulas.
brew install docker-machine docker-compose
So these only installs the ...
251
votes
26
answers
123k
views
Broken references in Virtualenvs
I recently installed a bunch of dotfiles on my Mac along with some other applications (I changed to iTerm instead of Terminal, and Sublime as my default text editor) but ever since, all my virtual ...
237
votes
15
answers
137k
views
"ERROR:root:code for hash md5 was not found" when using any hg mercurial commands
When trying to use any hg Mercurial commands on the console, I keep getting this error.
I installed Python using Homebrew and I am running Mac OS Catalina v. 10.15.1.
Any reference would be ...
237
votes
10
answers
155k
views
What is the recommended way to install Node.js, nvm and npm on MacOS X?
I am trying to use Homebrew as much as possible. What's the recommended way to install Node.js, nvm and npm on MacOS X?
221
votes
10
answers
351k
views
How to brew install java?
I'd like to setup java on a new OS X machine, and prefer to use brew for OS X package management. How can I install latest java using brew?
217
votes
17
answers
346k
views
How to install latest version of Node using Brew
The latest version of NodeJs right now is 0.4.1
The command brew install node right now, installs 0.2.6 - which is not ideal. I would like 0.4.1
I've looked at this list of commands for brew and ...
200
votes
15
answers
238k
views
How to reinstall python@2 from Homebrew?
I have been having issues with openssl and python@2 with brew, which have explained here (unresolved). The documented workaround to reinstall Python and openssl was not working, so I decided I would ...
194
votes
23
answers
81k
views
Library not loaded: /usr/local/lib/libpq.5.4.dylib
I am working on a Ruby on Rails application and installed PostgreSQL using postgresql-9.1.2-1-osx.dmg. I installed the pg gem.
Then when I executed rake db:create, I got
the following error:
dlopen(/...
191
votes
22
answers
224k
views
Error: The 'brew link' step did not complete successfully
I'm trying to install node.js via Homebrew. Unfortunately, I get this error:
➜ ~ brew install node
==> Downloading http://nodejs.org/dist/v0.8.10/node-v0.8.10.tar.gz
#############################...
189
votes
24
answers
137k
views
Cannot connect to Postgres server running through brew services
I've been looking for a solution for this and could not find a working solution.
I've installed postgres using brew (brew install postgres) in my MacBook and I am currently running it using brew ...
182
votes
11
answers
152k
views
Homebrew installs nvm but nvm can't be found afterwards?
I'm using homebrew and oh-my-zsh on a fresh OSX 10.10.1 install. I got nvm via homebrew and then attempted to run it but says - zsh: command not found: nvm
Any idea what the problem is? I was able to ...
181
votes
10
answers
137k
views
Another active Homebrew process is already in progress
When I try to do this:
brew install node
I get this message:
/usr/local/Homebrew/Library/Homebrew/utils/lock.sh: line 19: /usr/local/var/homebrew/locks/update: Permission denied
-e:1:in `...
177
votes
21
answers
547k
views
How to tell if homebrew is installed on Mac OS X
I am doing some Rails programming and I consistently see Homebrew referenced in solutions around the web but have never used it.
I also notice Homebrew in the terminal version 2.9 as an option next ...
174
votes
15
answers
203k
views
Homebrew refusing to link OpenSSL
I'm on: OSX 10.11.6, Homebrew version 0.9.9m OpenSSL 0.9.8zg 14 July 2015
I'm trying to play with with dotnetcore and by following their instructions,
I've upgraded/installed the latest version of ...
171
votes
5
answers
86k
views
How do you install ssh-copy-id on a Mac?
I am having trouble trying to install ssh-copy-id on my Mac. I have tried to follow https://github.com/beautifulcode/ssh-copy-id-for-OSX but every time I run ssh-copy-id it gives me errors. Any ideas ...
169
votes
12
answers
43k
views
PDFtk Server on OS X 10.11
I've been using PDFTK Server on OSX pre 10.11 for over a year without any issues running commands on the command line.
After installing OSX 10.11 beta, I can no longer run any PDFTK Server commands ...
163
votes
8
answers
204k
views
How can I install a previous version of Python 3 in macOS using homebrew?
How can I install a previous version of Python 3 in macOS using brew?
With the command brew install python I got the latest version of Python 3 (currently v3.7.0), but I want the last version of ...
156
votes
1
answer
129k
views
nginx the "ssl" directive is deprecated, use the "listen ... ssl"
After NGINX upgrade to v1.15.2 starts getting the warning.
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /usr/local/etc/nginx/sites-...
155
votes
9
answers
176k
views
Installing MongoDB with Homebrew
I'm relatively new to MongoDB and am trying to install MongoDB on my Mac with Homebrew, but I'm getting the following error:
Error: No available formula with the name "mongodb"
==> Searching for ...
150
votes
2
answers
70k
views
List all files in a homebrew package
How can I get homebrew to list out all files installed for a package? For example, when I run brew list for the exim package, I get these files:
$ brew list exim
/usr/local/Cellar/exim/4.80.1/bin/...
146
votes
10
answers
520k
views
Where do I find the bashrc file on Mac?
Hello I am following this page.. I'm installing Python onto my mac so that I can set up a Django / Eclipse development environment. However I am not too sure how to go about executing this step:
The ...
139
votes
8
answers
257k
views
What is the best/safest way to reinstall Homebrew?
I am getting issues with permissions in Homebrew: After I installed Node and tried to install npm using the curl command Homebrew tells you to use, it would fail due to EACCESS errors. I checked the ...
137
votes
5
answers
323k
views
How can I see the current value of my $PATH variable on OS X?
$ $PATH
returns:
-bash: /usr/local/share/npm/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/local/sbin:~/bin:/Library/Frameworks/Python.framework/Versions/Current/...
136
votes
11
answers
78k
views
"please check gdb is codesigned - see taskgated(8)" - How to get gdb installed with homebrew code signed?
I'm under osx 10.8.4 and have installed gdb 7.5.1 with homebrew (motivation get a new gdb with new features such as --with-python etc... )
Long story short when I run debug within a c++ Eclipse ...
134
votes
9
answers
148k
views
How to run the Homebrew installer under Rosetta 2 on M1 Macbook
I'm on the M1 MacBook.
This is the error when I try to install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Homebrew is not (...
118
votes
6
answers
161k
views
Make python3 as my default python on Mac
What I'm trying to do here is to make python3 as my default python. Except the python 2.7 which automatically installed on mac, I installed python3 with homebrew. This is the website that I'm ...
116
votes
11
answers
106k
views
How to use GNU sed on Mac OS 10.10+, 'brew install --default-names' no longer supported
Under Mac OS 10.10.3, I installed gnu-sed by typing:
brew install gnu-sed --default-names
When I type it again, I get the message:
gnu-sed-4.2.2 already installed
However, even after rebooting the ...
111
votes
5
answers
73k
views
Install Wireshark on MacOS X via brew [closed]
I installed Wireshark on my mac with the command
brew install wireshark
but after that, a message told me that I had to curl and install ChmodBPF, so I did that too.
But there is no command named ...
109
votes
11
answers
96k
views
How to use Homebrew on a Multi-user MacOS Sierra Setup
I have a Mac that is shared between two engineers. Both have separate user accounts. Both need to run brew update and brew install... occasionally.
How do I set this up without getting errors like:
/...