zonkyio / embedded-database-spring-test

A library for creating isolated embedded databases for Spring-powered integration tests.
Apache License 2.0
399 stars 37 forks source link

Zonky "initdb" file getting returning file not found #253

Closed fx310ferreira closed 7 months ago

fx310ferreira commented 8 months ago

Using zonky the the database initdb script does not run it returns the following error: ./initdb: cannot execute: required file not found

I went to the directory, tried to run the file manually and got this error: bash: ./initdb: cannot execute: required file not found

I have deleted the folder and retried several times. What can i do to solve this?

tomix26 commented 8 months ago

There are some steps you can do:

Because the problem you are facing might be related to the following issue: https://github.com/zonkyio/embedded-postgres-binaries/issues/75, which was caused by a missing library in PostgreSQL 14.10 binaries for the macOS platform.

fx310ferreira commented 8 months ago

The file exists I think the initdb script is trying to run some file that does not exist. I am using NixOs

    testImplementation "io.zonky.test:embedded-database-spring-test:2.4.0"
    testImplementation "io.zonky.test:embedded-postgres:2.0.3"

I don't have the binaries

tomix26 commented 8 months ago

Actually, I have no experience with NixOs, so maybe the following questions might sound a little stupid.

tomix26 commented 7 months ago

I'm closing the issue, feel free to reopen it if the problem persists.