Location of the mongodb database on mac

If MongoDB is installed on macOS via Homebrew, the default data directory depends on the type of processor in the system. Intel Processor Apple M1 Processor Data Directory /usr/local/var/mongodb /opt/homebrew/var/mongodb Configuration file /usr/local/etc/mongod.conf /opt/homebrew/etc/mongod.conf Log directory /usr/local/var/log/mongodb /opt/homebrew/var/log/mongodb Run brew –prefix to see where Homebrew installed these files. See the MongoDB “Install on macOS” documentation … Read more

configure: error: C compiler cannot create executables

I have 10.8 installed and Xcode 4.4 with Command Line tools, and yet I was still getting this error. Rather than reinstall Xcode, I noticed there were two relevant lines in my config.log: configure:5130: checking for C compiler version configure:5139: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc –version >&5 That path did not exist for me. Instead I had: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain The … Read more

Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?

The following is the un-installation for PostgreSQL 9.1 installed using the EnterpriseDB installer. You most probably have to replace folder /9.1/ with your version number. If /Library/Postgresql/ doesn’t exist then you probably installed PostgreSQL with a different method like homebrew or Postgres.app. To remove the EnterpriseDB One-Click install of PostgreSQL 9.1: Open a terminal window. … Read more

Repairing Postgresql after upgrading to OSX 10.7 Lion

It’s a PATH issue. Mac OSX Lion includes Postgresql in the system now. If you do a which psql you’ll likely see usr/bin/psql instead of usr/local/bin/psql which is HomeBrew’s correct one. If you run brew doctor you should get a message stating that you need to add usr/local/bin to the head of your PATH env … Read more