PostgreSQL installation fails with macOS Big Sur(M1) - postgresql

I am struggling to install PostgreSQL on my macOS Big Sur with M1 chip.
These are the message I get when I try to install PostgreSQL in the last step. I tried installing version 12, 11, 10. Anyone knows how to solve this problem?
A non-fatal error occur whilst creating menu shortcuts.
Problem running post-install step. Installation may not complete correctly
Failed to start the database server.

There is a permissions issue produced by Big Sur sec policies. https://pgsnake.blogspot.com/2020/11/macos-big-sur-upgrade-breaking.html
This will happen if you're installing in the default location, which in this case is Library. I was struggling with this for a few days and found that if I define my own installation path not located in the Library folder(say some folder in my Desktop), I was able to install without issue.
Give that a try and see if it works for you.
Edit: Be sure to delete all previous failed installations if any exist.

Related

PostgreSQL 10.6_1 Extensions Missing

I'm looking for a way around a bug I found with the OSX PostgreSQL 10.6_1 Extensions mapping. Upon update, it misses the new directory for the binaries and the PG gem can't find them:
2019-02-09 17:48:06 - PG::UndefinedFile - ERROR: could not access file "$libdir/uuid-ossp": No such file or directory
I've filed the bug with PostgreSQL but I need a workaround until they fix it. Anybody have any ideas how I can get this to work? My app relies on this and a slight version change has halted my work. Installed with Homebrew, contacted the package manager and PostgreSQL.

Unable to download PostgreSQL - Unknown error while running C:

I'm attempting to install PostgreSQL (10.1) and pgAdmin 4 for an online course I'm taking. Every time I try to run the .exe file for the download I get the following error message:
There has been an error. Unknown error while running C:
\Temp\postgresql_installer_a8b04b6e60\getlocales.exe
I've tried to Run as Admin, I've tried downloaded previous versions of PostgreSQL and nothing seems to work. I've found others who have had the same issue but haven't found a resolution.
Does anyone know how I can install? Thanks.
Before installation, I closed all antivirus and antispy-patch for cryptolocker. Some rules added by protection softwares, blocked install file from running another place and change-read settings. First I installed pgadmin 4 v1.6, then upgrade it to v2.0.
I also using PHPStorm built-in database browser. Faster than pgadmin4.

Install4j exception during all installations

When trying to install any Install4j installer (tried with several different of our installers that are normally working correctly), I get the following Setup error on my Windows 10 laptop:
The installation/removal of a previoius program was not completed. You will need to restart your computer to complete that installation.
After restarting your computer, run Setup again to complete the installation of Program name.
Restarting my computer does not help. Removing the "PendingFileRenameOperations" from the registry did not help either, even after restarting (from https://support.microsoft.com/nl-nl/help/310335/error-message-the-installation-removal-of-a-previous-program-was-not-completed ). The install4j logs do not mention this problem, so no help from that either.
This issue started after doing some program uninstallations (both install4j and not install4j) and some got stuck and needed to be stopped with Task Manager.
Please check the registry keys
HKEY_CURRENT_USER\SOFTWARE\ej-technologies\install4j\RebootCheckFile
HKEY_LOCAL_MACHINE\SOFTWARE\ej-technologies\install4j\RebootCheckFile
and remove them if they exist.

Error "end of central directory record signature not found" while installing ionide-fsharp in vscode

I have installed VS Code version 1.8.1. Machine is Windows 7, 64 bit. While installing ionide-fsharp extension, I am getting error "end of central directory record signature not found". It seems version 1.7.2 of VS Code works, however this issue probably seems fixed for version 1.8.0 see this git link. Any idea on how to get the extn installed?
Thanks
Found a workaround for this. Downloaded '.vsix' file of ionide-fs from this link. In VS Code Extensions tab, there is an option 'Install from VSIX'. That worked. So in case anyone is unable to install from vscode extensions tab directly(i.e. from Marketplace), they may try this way of installing an extension.
Just for information, I was getting the same error for version 1.7.2 of vscode as well while trying to install from Marketplace.
Seems there were bugs that exist in past versions, due to the embedded browser and other reasons; these have since been fixed.
The above solution seems a common way to install a troublesome plugin.
However, there is a long standing reason for this error, running out of disk space.
As of v1.54.1 (2021/03) and it turns out this can happen if your disk/home folder can run out of space during download OR install.
https://github.com/microsoft/vscode/issues/118711

Failed to install PostgreSQL 8.3, failed to run initdb:1?

I am reinstalling PostgreSQL using pgInstaller postgresql-8.3.16-1. An Error occurs in the last step of the install process:
Failed to run initdb:1!
\tmp\initdb.log shows this message:
The application has failed to start because its side-by-side
configuration is incorrect. Please see the application event log or
use the command-line sxstrace.exe tool for more detail.
The message is quite simple but I can't locate the root cause of the install failure.
Any one knows what's the reason?
You probably already have a database cluster installed in the location where your Posgres8.3 install is trying to init a new one. You can't really mix and match versions like that.
If possible, install the old version you had when you created the existing database. Then use pg_dumpall to create a .SQL dump of all of your data. You can then move or delete the old database (usually at /var/lib/pgsql) and install the new version. finally, apply the database dump to get the old data back.
For more details on this, read the Upgrading a PostgreSQL cluster manual page.
If you are installing the same version, there's no need to upgrade the cluster, you can probably safely ignore errors about initdb, so long as everything runs Ok.