I downloaded the current release (2023-04-01) : wget https://github.com/nextcloud/server/archive/refs/tags/v25.0.2.tar.gz
extracted it: tar xzf v25.0.2.tar.gz
./occ maintenance:install --database "mysql" --database-name "xxx" --database-user "xxx" --database-pass "xxx" --admin-user "xxx" --admin-pass "xxx"
and the answer was:
Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".
Iām on shared hosting (namecheap).
Nextcloud was running on this account a year ago (on a different url/db. This is a fresh new installation)
EDIT:
actually, even running just ./occ
without args, gives the same error.