sqliteからpostgresqlへDBを替えたい
動画通りに
sudo apt install postgresqlを入力すると。
password?
色々試したがこれが分からない。
sudo: 3 incorrect password attemptsが表示される。
appleのpasswordを入力すると。
The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.
Please visit http://www.java.com for information on installing Java.
$ brew update
$ brew install postgresql
で解決しました。
ありがとうございました!!
動画はLinuxのUbuntu環境なので、MacでPostgreSQLをインストールする場合はbrewコマンドを使ってみてください。