HomebrewのPostgreSQLをきれいにインストールした

Heroku用にインストールしていたPostgreSQL.app をHomebrewのものに変更 しました。 PostgreSQL.app をアンインストール [Mac] PostgreSQL.app をアンインストール at technote を参考に。 /Library/PostgreSQL/9.3/uninstall-postgresql.appを実行 /Library/PostgreSQLを削除 OSXのシステム環境設定→ユーザとグループからpostgresユーザを削除 ~/.zshenvからsource /Library/PostgreSQL/9.3/pg_env.shを削除 環境変数とか残っているので、OSXを再起動するのが無難です。 HomebrewのPostgreSQLをインストール まずは普通にbrewコマンドでインストール。 (実際はbrew bundle[2014-01-25-1] でインストールしてます。) $ brew install postgres ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/postgresql-9.3.2.mavericks.bottle.tar.gz Already downloaded: /Library/Caches/Homebrew/postgresql-9.3.2.mavericks.bottle.tar.gz ==> Pouring postgresql-9.3.2.mavericks.bottle.tar.gz ==> Caveats If builds of PostgreSQL 9 are failing and you have version 8.x installed, you may need to remove the previous version first. See: https://github.com/Homebrew/homebrew/issues/issue/2510 To migrate existing data from a previous major version (pre-9....

2014-02-01 (Sat) · masutaka