Or, probably, advice fresh SDL libraly for Perl to install
$ dpkg -l | grep sdl
ii libsdl-image1.2:amd64 1.2.12-8 amd64 Image loading library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-image1.2:i386 1.2.12-8 i386 Image loading library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-image1.2-dev:amd64 1.2.12-8 amd64 Image loading library for Simple DirectMedia Layer 1.2, development files
ii libsdl-mixer1.2:amd64 1.2.12-14 amd64 Mixer library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-mixer1.2:i386 1.2.12-14 i386 Mixer library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-mixer1.2-dev:amd64 1.2.12-14 amd64 Mixer library for Simple DirectMedia Layer 1.2, development files
ii libsdl-net1.2:i386 1.2.8-5 i386 Network library for Simple DirectMedia Layer 1.2, libraries
ii libsdl-ttf2.0-0:i386 2.0.11-4 i386 TrueType Font library for Simple DirectMedia Layer 1.2, libraries
ii libsdl1.2-dev 1.2.15+dfsg2-0.1 amd64 Simple DirectMedia Layer development files
ii libsdl1.2debian:amd64 1.2.15+dfsg2-0.1 amd64 Simple DirectMedia Layer
ii libsdl1.2debian:i386 1.2.15+dfsg2-0.1 i386 Simple DirectMedia Layer
ii libsdl2-2.0-0:amd64 2.0.8+dfsg1-1ubuntu1.18.04.3 amd64 Simple DirectMedia Layer
ii libsdl2-2.0-0:i386 2.0.8+dfsg1-1ubuntu1.18.04.3 i386 Simple DirectMedia Layer
ii libsdl2-dev:amd64 2.0.8+dfsg1-1ubuntu1.18.04.3 amd64 Simple DirectMedia Layer development files
cpanm (Menlo) 1.9019 on perl 5.024001 built for x86_64-linux
Work directory is /home/user/.cpanm/work/1566571125.27622
You have make /usr/bin/make
You have /usr/bin/curl: curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
You have /bin/tar: tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://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 /usr/bin/unzip
--> Working on /home/user/work/game/
Entering /home/user/work/game
Configuring /home/user/work/game
-> OK
Checking if you have SDL::App 0 ... No
Checking if you have SDL 0 ... Yes (2.548)
Checking if you have Alien::SDL 0 ... Yes (1.446)
Checking if you have Carton 0 ... Yes (v1.0.34)
==> Found dependencies: SDL::App
Searching SDL::App on mirror index /home/user/work/game/local/cache/modules/02packages.details.txt ...
Searching SDL::App (0) on cpanmetadb ...
-> FAIL Finding SDL::App on cpanmetadb failed.
Searching SDL::App (0) on metacpan ...
--> Working on SDL::App
Fetching http://cpan.metacpan.org/authors/id/W/WK/WKEENAN/SDL-sdlpl-1.08.tar.gz
-> OK
Unpacking SDL-sdlpl-1.08.tar.gz
Copying SDL-sdlpl-1.08.tar.gz to /home/user/work/game/local/cache/authors/id/W/WK/WKEENAN/SDL-sdlpl-1.08.tar.gz
Entering SDL-sdlpl-1.08
META.yml/json not found. Creating skeleton for it.
Configuring SDL-sdlpl-1.08
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for SDL::sdlpl
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.10_02)
Building SDL-sdlpl-1.08
cp sdlpl.pm blib/lib/SDL/sdlpl.pm
AutoSplitting blib/lib/SDL/sdlpl.pm (blib/lib/auto/SDL/sdlpl)
cp lib/SDL/Cursor.pm blib/lib/SDL/Cursor.pm
cp lib/SDL/Sound.pm blib/lib/SDL/Sound.pm
cp lib/SDL/Palette.pm blib/lib/SDL/Palette.pm
cp lib/SDL/Rect.pm blib/lib/SDL/Rect.pm
cp lib/SDL/App.pm blib/lib/SDL/App.pm
cp lib/SDL/Font.pm blib/lib/SDL/Font.pm
cp lib/SDL/Joystick.pm blib/lib/SDL/Joystick.pm
cp lib/SDL/Event.pm blib/lib/SDL/Event.pm
cp lib/SDL/Surface.pm blib/lib/SDL/Surface.pm
cp lib/SDL/Music.pm blib/lib/SDL/Music.pm
cp lib/SDL/OpenGL.pm blib/lib/SDL/OpenGL.pm
cp lib/SDL/OpenGL/App.pm blib/lib/SDL/OpenGL/App.pm
cp lib/SDL/Mixer.pm blib/lib/SDL/Mixer.pm
cp lib/SDL/Cdrom.pm blib/lib/SDL/Cdrom.pm
Running Mkbootstrap for SDL::sdlpl ()
chmod 644 "sdlpl.bs"
cc -c -I/usr/local/include -I/usr/local/include/SDL -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC "-I/home/user/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux/CORE" font.c
"/home/user/perl5/perlbrew/perls/perl-5.24.1/bin/perl" "/home/user/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1/ExtUtils/xsubpp" -typemap "/home/user/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1/ExtUtils/typemap" -typemap "typemap" sdlpl.xs > sdlpl.xsc && mv sdlpl.xsc sdlpl.c
cc -c -I/usr/local/include -I/usr/local/include/SDL -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC "-I/home/user/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux/CORE" sdlpl.c
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_surface_clip_minx’:
sdlpl.xs:1945:21: error: ‘SDL_Surface {aka struct SDL_Surface}’ has no member named ‘clip_minx’; did you mean ‘clip_rect’?
RETVAL = surface->clip_minx;
^~~~~~~~~
clip_rect
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_surface_clip_miny’:
sdlpl.xs:1953:21: error: ‘SDL_Surface {aka struct SDL_Surface}’ has no member named ‘clip_miny’; did you mean ‘clip_rect’?
RETVAL = surface->clip_miny;
^~~~~~~~~
clip_rect
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_surface_clip_maxx’:
sdlpl.xs:1961:21: error: ‘SDL_Surface {aka struct SDL_Surface}’ has no member named ‘clip_maxx’; did you mean ‘clip_rect’?
RETVAL = surface->clip_maxx;
^~~~~~~~~
clip_rect
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_surface_clip_maxy’:
sdlpl.xs:1969:21: error: ‘SDL_Surface {aka struct SDL_Surface}’ has no member named ‘clip_maxy’; did you mean ‘clip_rect’?
RETVAL = surface->clip_maxy;
^~~~~~~~~
clip_rect
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_srcclipping’:
sdlpl.xs:2475:12: error: ‘SDL_SRCCLIPPING’ undeclared (first use in this function); did you mean ‘SDL_SRCALPHA’?
RETVAL = SDL_SRCCLIPPING;
^~~~~~~~~~~~~~~
SDL_SRCALPHA
sdlpl.xs:2475:12: note: each undeclared identifier is reported only once for each function it appears in
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_set_clipping’:
sdlpl.xs:2518:3: warning: implicit declaration of function ‘SDL_SetClipping’; did you mean ‘SDL_SetClipRect’? [-Wimplicit-function-declaration]
SDL_SetClipping(surface,top,left,bottom,right);
^~~~~~~~~~~~~~~
SDL_SetClipRect
In file included from /home/user/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux/CORE/perl.h:5615:0,
from sdlpl.xs:25:
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_load_wav’:
sdlpl.xs:2773:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
av_push(RETVAL,newSViv((Uint32)temp));
^
/home/user/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux/CORE/embed.h:61:44: note: in definition of macro ‘av_push’
#define av_push(a,b) Perl_av_push(aTHX_ a,b)
^
sdlpl.xs:2773:18: note: in expansion of macro ‘newSViv’
av_push(RETVAL,newSViv((Uint32)temp));
^~~~~~~
sdlpl.xs:2774:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
av_push(RETVAL,newSViv((Uint32)buf));
^
/home/user/perl5/perlbrew/perls/perl-5.24.1/lib/5.24.1/x86_64-linux/CORE/embed.h:61:44: note: in definition of macro ‘av_push’
#define av_push(a,b) Perl_av_push(aTHX_ a,b)
^
sdlpl.xs:2774:18: note: in expansion of macro ‘newSViv’
av_push(RETVAL,newSViv((Uint32)buf));
^~~~~~~
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_sfont_new_font’:
sdlpl.xs:3223:3: warning: implicit declaration of function ‘InitFont’ [-Wimplicit-function-declaration]
InitFont(RETVAL);
^~~~~~~~
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_sfont_surface_print’:
sdlpl.xs:3240:3: warning: implicit declaration of function ‘PutString’ [-Wimplicit-function-declaration]
PutString( surface, x, y, text );
^~~~~~~~~
sdlpl.xs: In function ‘XS_SDL__sdlpl_sdl_sfont_text_width’:
sdlpl.xs:3246:12: warning: implicit declaration of function ‘TextWidth’ [-Wimplicit-function-declaration]
RETVAL = TextWidth(text);
^~~~~~~~~
Makefile:386: recipe for target 'sdlpl.o' failed
make: *** [sdlpl.o] Error 1
-> FAIL Installing SDL::App failed. See /home/user/.cpanm/work/1566571125.27622/build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Module 'SDL::App' is not installed
-> FAIL Bailing out the installation for /home/user/work/game/.
May you please help with building
Or, probably, advice fresh SDL libraly for Perl to install