简体   繁体   English

如何从 macOS Big Sur(英特尔)中删除 PostgreSQL 9.6 - 卸载程序失败并显示“可执行文件中的 CPU 类型错误”

[英]How to remove PostgreSQL 9.6 from macOS Big Sur(intel) - Uninstaller fails with "Bad CPU type in executable"

I wonder if anyone can help....I upgraded to macOS BigSur(Intel).我想知道是否有人可以提供帮助....我升级到 macOS BigSur(英特尔)。 I am trying to remove PostgreSQL 9.6 via uninstaller script and receive the following error:我试图通过卸载程序脚本删除 PostgreSQL 9.6 并收到以下错误:

$ cd /Library/PostgreSQL/9.6/uninstall-postgresql.app/Contents/MacOS/
$ sudo ./installbuilder.sh

./installbuilder.sh: line 20: ./osx-intel: Bad CPU type in executable

I think it is EnterpriseDB version of postgreSQL....我认为是postgreSQL的EnterpriseDB版本....

How do I manually remove PostgreSQL EnterpriseDB?如何手动删除 PostgreSQL EnterpriseDB?

It worked for me它对我有用

  1. Download latest PostgreSql 9.6 patch at https://www.enterprisedb.com/downloads/postgres-postgresql-downloads在 https 下载最新的 PostgreSql 9.6 补丁://www.enterprisedb.com/downloads/postgres-postgresql-downloads

  2. Reinstall PostgreSql 9.6 downloaded重新安装PostgreSql 9.6下载

  3. open /Library/PostgreSQL/9.6/uninstall-postgresql.app/打开/Library/PostgreSQL/9.6/uninstall-postgresql.app/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM