12/27/2023 0 Comments Brew uninstall postgres=> /usr/local/Cellar/postgresql/9.3. To install gems without sudo, see the Homebrew wiki. When installing the postgres gem, including ARCHFLAGS is recommended: To migrate existing data from a previous major version (pre-9.3) of PostgreSQL, see: You may need to remove the previous version first. If builds of PostgreSQL 9 are failing and you have version 8.x installed, Having cleaned up the symlinks, my system works much better and finally postgresql installed as a charm ➜ brew uninstall postgresql I found that being a dead symlink/usr/local/etc/wgetrc` If you did a migration of your databases to a new version or dont need any of the databases anymore you can just delete these folders manually. Say you had trouble with postgres, and decided to reinstall it, you dont want to lose your data because of it. I couldn't even install wget, brew install wget´ because of somewgetrc issue. 1 Answer Sorted by: 1 It does contain your data, this is why its not deleted. Sudo ls -lR /usr | grep \^l | grep postgresql # and only those pointing to something postgresql: To find symlinks in a folder and subfolders do sudo ls -lR /usr | grep \^l This test that the target of symlinks exists and delete if not. Move into the /usr/local/bin and others in the /usr and do sudo find. What I did was to hunt down those dead symlinks and kill them over again. Homebrew mostly use /usr/, more specifically /usr/local/bin and puts all source on /usr/local/Cellar, symlink local/bin to Cellar bin What I learn is that then I have a bunch of dead symlinks. This is similar to updatedb on ubuntu and you might want to alias it.Ĭhances are you made the mistake of deleting the files and folders just like me (sorry, that's a stupid thing to do). To help finding files, update the files db sudo /usr/libexec/locate.updatedb Warning: postgresql-9.3.5 already installed, it's just not linked I'm installing postgresql 9.3.5, I couldn't care less about 9.2.3 not being found! ➜ ~ brew install postgresql No such file or directory - /usr/local/Cellar/postgresql/9.2.3/include/serverĮrror: No such file or directory - /usr/local/Cellar/postgresql/9.2.3/include/server The formula built, but is not symlinked into /usr/local Launchctl load ~/Library/LaunchAgents/Įrror: An unexpected error occurred during the `brew link` step During the upgrade I had issues with installing postgresql: ➜ ~ brew install postgresqlĪlready downloaded: /Library/Caches/Homebrew/postgresql-9.3.5.mountain_ I picked up an older mac air and wanted to set it up for Ruby and Rails training. This is QA style post, sharing my path to resolve the issue. Manual deletion may caused uninstall and install programs to crash. load /Library/LaunchAgents/ gem uninstall pg bundle install. sudo '/Applications/Utilities/Activity Monitor.app/Contents/MacOS/Activity Monitor'. Warning: Do not start deleting files manually in Terminal unless you've tried everything else first. brew install postgresql brew services start postgresql initdb.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |