[RUBY] PG :: ConnectionBad: could not connect to server: No such file or directory

I got the error PG :: ConnectionBad: could not connect to server: No such file or directory

Solution

1, Go to the front of the desktop in the terminal.

2,

3,

$ cat postgres.log


Then I get the following error

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib


  Referenced from: /usr/local/bin/postgres

4, Execute by referring to the following articles https://qiita.com/eightfoursix/items/bf11693b085eced95e29

4-1

4-2

In my case, this was the solution.

Recommended Posts

PG :: ConnectionBad: could not connect to server: No such file or directory
When I did rails new, I got an error saying PG :: ConnectionBad: could not connect to server: No such file or directory
PG :: ConnectionBad: could not connect to server: No such file or directory
When I did rails new, I got an error saying PG :: ConnectionBad: could not connect to server: No such file or directory
No such file or directory @ rb_sysopen --Error like public/user_images/1.jpg
No such file or directory @ rb_sysopen-/Users/○○/Gemfile.lock (Errno :: ENOENT) suffered
When dealing with whenever in Docker No such file or directory --crontab
What to do if you get Could not locate Gemfile or .bundle / directory
Attempting to run gnome-terminal inside a Docker container fails (Failed to execute child process “dbus-launch” (No such file or directory))
ERROR! MySQL server PID file could not be found!
[chown] How to change the owner of a file or directory