Ubuntu 24.10 Error: cannot execute: required file not found
I am trying to use the latest V1.3.0 but I am getting the following error
./pgschema --help
bash: ./pgschema: cannot execute: required file not found
You use ./pgschema which expects the pgschema binary available under your current directory, is that the case?
Yes, pgschema binary is available in the current folder.
Can you paste the screenshot showing your folder structure? and also make sure the binary is executable.
Also normally it won't installed under local folder following the standard installation guide. How do you install it?
Can you paste the screenshot showing your folder structure? and also make sure the binary is executable.
Also normally it won't installed under local folder following the standard installation guide. How do you install it?
I have downloaded pgschema binary fromhttps://github.com/pgschema/pgschema/releases/tag/v1.3.0
The screenshot shows a typo, it's pgschema instead of pgcshema
Yes it was a typo here is the update screenshot
What's your OS version and architecture? It could be that you downloaded the incompatible binary
My os is Ubuntu 24.10 and I have downloaded this binary https://github.com/pgschema/pgschema/releases/download/v1.3.0/pgschema-linux-amd64
could you please running "arch" to check the architecture?
I'm running into the same issue now that we're trying to run this on an amazon linux machine.
echo Machine type: $(uname -m)
curl -LO https://github.com/pgschema/pgschema/releases/download/v1.3.0/pgschema-linux-amd64
chmod +x pgschema-linux-amd64
sudo mv pgschema-linux-amd64 /usr/local/bin/pgschema
which pgschema
pgschema --help
oututs: Machine type: x86_64 /usr/local/bin/pgschema
/usr/local/bin/pgschema: cannot execute: required file not found.
I've also tried installing via the rpm but get the same issue:
curl -LO https://github.com/pgschema/pgschema/releases/download/v1.3.0/pgschema-1.3.0-1.x86_64.rpm
sudo dnf install -y pgschema-1.3.0-1.x86_64.rpm
pgschema
/usr/bin/pgschema: cannot execute: required file not found
EDIT:
this seems to be introduced in version 1.3.0, using version 1.2.1 I'm able to get it working correctly :)
Fixed in 1.4.1