The diagnostic command $ brew doctor should exit cleanly with the simple message 'Your system is ready to brew. Make sure your Homebrew is fully updated and give Homebrew a chance to diagnose any problems: $ brew update After the reboot run the following commands to get your fresh installation of postgreSQL: Or search your entire system for file name matches: $ sudo find / -name "*postgres*" -o -name "*psql*"īefore reinstalling postgreSQL it might be a good time to reboot your machine. If you want to make sure there are no other Postgres-adjacent Homebrew formulae still installed you can eihter check via: $ brew list -formula | grep -e postgres -e psql Gem install pg -v 1.2.3 -with-pg_config=/usr/local/Cellar/postgresql/13.3/bin/pg_config -with-pq-dir=/usr/local/Cellar/libpq/13.Disclaimer: Make sure you backup your db's in case you need them later because running these commands will delete all your local Postgres databases.įirst you need to run: $ brew uninstall postgres # brew install -build-from-source postgresqlīrow install -build-from-source postgresql # You can try to install from source with: # Error: postgresql: no bottle available! Installed pg successfully with Ruby 2.6 too. noĬhecking for PQconnectdb() in -lms/libpq. Does anyone know how I can install libpq-dev on Mac OS 10.6 Its a pre-requisite for something else I want to install. Using config values from /opt/homebrew/bin/pg_configĬhecking for PQconnectdb() in -llibpq. ❯ gem install pg -v 1.2.3 -with-pq-dir=/usr/local/Cellar/libpq/13.3īuilding native extensions with: '-with-pq-dir=/usr/local/Cellar/libpq/13.3'ĭone installing documentation for pg after 0 secondsīut failed with Ruby 2.6, I don't know why gem install pg -v 1.2.3 -with-pq-dir=/usr/local/Cellar/libpq/13.3Ĭurrent directory: /Users/felix/.rvm/gems/ruby-2.6.6/gems/pg-1.2.3/ext Homebrew/homebrew-cask (git revision 2ab51af9c3 last commit ) Homebrew/homebrew-core (git revision ec99d74792c last commit ) ❯ brew install PostgreSQL # Install arm64 PostgreSQLĥ01 23655 1 0 2:29PM ? 0:00.10 /opt/homebrew/opt/postgresql/bin/postgres -D /opt/homebrew/var/postgres Since pg must be compiled with x86 libpq, so I installed libpq with x86 brewīrow: aliased to arch -x86_64 /usr/local/Homebrew/bin/brew
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |