KES777 / sdl

3 stars 1 forks source link

How to install? Error: No such container: postgres-db #1

Open hakonhagland opened 3 years ago

hakonhagland commented 3 years ago

I tried to install this with cpanm:

$ git clone  git@github.com:KES777/sdl.git
$ cd sdl
$ perl --version | head -2
This is perl 5, version 30, subversion 2 (v5.30.2) built for x86_64-linux-thread-multi
$ cpanm -v .
cpanm (App::cpanminus) 1.7044 on perl 5.030002 built for x86_64-linux-thread-multi
Work directory is /home/hakon/.cpanm/work/1608976361.1469636
You have make /bin/make
You have LWP 6.44
You have /bin/tar: tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /bin/unzip
--> Working on .
Entering /home/hakon/test/sdl
Configuring /home/hakon/test/sdl ... N/A
Finding PREREQ from Makefile ...
Building and testing . ... echo "create user game_n_cleaner                                        \
    with login createdb createrole noinherit password 'Zo4Tb7uuJUfJRNAZ'; \
    CREATE EXTENSION btree_gist;" |                                       \
    docker exec -i postgres-db psql postgres postgres
Error: No such container: postgres-db
make: *** [Makefile:53: docker-deploy] Error 1
FAIL
! Installing . failed. See /home/hakon/.cpanm/work/1608976361.1469636/build.log for details. Retry with --force to force install it.
KES777 commented 3 years ago

You do not need to install it. Just clone then run carton

$ apt install libsdl2-dev
$ perlbrew install -v perl-5.30.1 -Dusethreads --as perl-5.30.1t
$ perlbrew use perl-5.30.1
$ perlbrew install-cpanm
$ cpanm Carton
$ git clone https://github.com/KES777/sdl
$ cd sdl
$ carton
$ perl ffi.pl
hakonhagland commented 3 years ago

Oh, I see :smiley: Anyway now carton fails. I added a new issue