pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Ubuntu 24.10 Error: cannot execute: required file not found

Open ansarizafar opened this issue 1 year ago • 11 comments

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

ansarizafar avatar Oct 19 '25 17:10 ansarizafar

You use ./pgschema which expects the pgschema binary available under your current directory, is that the case?

tianzhou avatar Oct 20 '25 13:10 tianzhou

Yes, pgschema binary is available in the current folder.

ansarizafar avatar Oct 20 '25 18:10 ansarizafar

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?

tianzhou avatar Oct 21 '25 04:10 tianzhou

Can you paste the screenshot showing your folder structure? and also make sure the binary is executable.

Image Image

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

ansarizafar avatar Oct 22 '25 12:10 ansarizafar

The screenshot shows a typo, it's pgschema instead of pgcshema

tianzhou avatar Oct 23 '25 02:10 tianzhou

Yes it was a typo here is the update screenshot

Image

ansarizafar avatar Oct 23 '25 07:10 ansarizafar

What's your OS version and architecture? It could be that you downloaded the incompatible binary

tianzhou avatar Oct 23 '25 07:10 tianzhou

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

Image

ansarizafar avatar Oct 23 '25 07:10 ansarizafar

could you please running "arch" to check the architecture?

tianzhou avatar Oct 23 '25 07:10 tianzhou

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 :)

PadenZach avatar Oct 23 '25 19:10 PadenZach

Fixed in 1.4.1

tianzhou avatar Nov 01 '25 10:11 tianzhou