KES777 / sdl

3 stars 1 forks source link

carton: Module 'SDL' is not installed, Module 'SDLx::App' is not installed #2

Open hakonhagland opened 3 years ago

hakonhagland commented 3 years ago

I am trying to install this module, but carton is not able to install SDL:

$ 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 Carton
$ carton
Installing modules using /home/hakon/test/sdl/cpanfile
Successfully installed Class-Inspector-1.36
Successfully installed Module-Find-0.13
Successfully installed Scope-Guard-0.21
Successfully installed Context-Preserve-0.03
Successfully installed Test-Deep-1.128
Successfully installed Module-Build-0.4229
Successfully installed Path-Class-0.37
Successfully installed Class-XSAccessor-1.19
Successfully installed Module-Runtime-0.016
Successfully installed Sub-Name-0.26
Successfully installed Class-Accessor-Grouped-0.10014
Successfully installed Clone-Choose-0.010
Successfully installed Hash-Merge-0.300
Successfully installed DBI-1.642
Successfully installed DBD-SQLite-1.64
Successfully installed Sub-Quote-2.006006
Successfully installed Role-Tiny-2.001003
Successfully installed Sub-Exporter-Progressive-0.001013
Successfully installed Devel-GlobalDestruction-0.14
Successfully installed Class-Method-Modifiers-2.13
Successfully installed Moo-2.003004
Successfully installed MRO-Compat-0.13
Successfully installed SQL-Abstract-1.86
Successfully installed Dist-CheckConflicts-0.11
Successfully installed Try-Tiny-0.30
Successfully installed Module-Implementation-0.09
Successfully installed Package-Stash-XS-0.29
Successfully installed Package-Stash-0.38
Successfully installed Algorithm-C3-0.10
Successfully installed Class-C3-0.34
Successfully installed Class-C3-Componentised-1.001002
Successfully installed Data-Dumper-Concise-2.023
Successfully installed Module-Pluggable-5.2
Successfully installed Config-Any-0.32
Successfully installed Sub-Uplevel-0.2800
Successfully installed Test-Warn-0.36
Successfully installed Test-Exception-0.43
Successfully installed Class-Accessor-0.51
Successfully installed Class-Accessor-Chained-0.01
Successfully installed Data-Page-2.03
Successfully installed Variable-Magic-0.62
Successfully installed B-Hooks-EndOfScope-0.24
Successfully installed namespace-clean-0.27
Successfully installed DBIx-Class-0.082841
Successfully installed Ref-Util-XS-0.117
Successfully installed Ref-Util-0.204
Successfully installed FFI-Platypus-Type-Enum-0.03
Successfully installed Sort-Naturally-1.03
Successfully installed File-Which-1.23
Successfully installed File-HomeDir-1.004
Successfully installed Clone-PP-1.07
Successfully installed Data-Printer-0.40
Successfully installed Path-Tiny-0.108
Successfully installed Class-Tiny-1.006
Successfully installed URI-1.76
Successfully installed Win32-ShellQuote-0.003001
Successfully installed Module-CPANfile-1.1004
Successfully installed CPAN-DistnameInfo-0.12
Successfully installed ExtUtils-Helpers-0.026
Successfully installed IPC-Run3-0.048
Successfully installed HTTP-Tinyish-0.15
Successfully installed Capture-Tiny-0.48
Successfully installed ExtUtils-Config-0.008
Successfully installed ExtUtils-InstallPaths-0.012
Successfully installed File-pushd-1.016
Successfully installed local-lib-2.000024
Successfully installed CPAN-Meta-Check-0.014
Successfully installed Tie-Handle-Offset-0.004
Successfully installed CPAN-Common-Index-0.010
Successfully installed String-ShellQuote-1.04
Successfully installed ExtUtils-MakeMaker-CPANfile-0.09
Successfully installed Parse-PMFile-0.41
Successfully installed Menlo-1.9019
Successfully installed Menlo-Legacy-1.9022
Successfully installed Carton-v1.0.34
Successfully installed FFI-CheckLib-0.25
Successfully installed FFI-Platypus-1.29
Successfully installed Sub-Identify-0.14
Successfully installed Sub-Install-0.928
Successfully installed FFI-C-0.08
Successfully installed Tie-Simple-1.04
Successfully installed Archive-Extract-0.80
Successfully installed Algorithm-Diff-1.1903
Successfully installed Text-Diff-1.45
Successfully installed Text-Patch-1.8
Successfully installed File-ShareDir-Install-0.13
Successfully installed File-ShareDir-1.116
Successfully installed Archive-Zip-1.66
! Installing Alien::SDL failed. See /home/hakon/.cpanm/work/1608977275.1473564/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Alien::SDL' is not installed
! Bailing out the installation for SDL-2.548.
Successfully installed FFI-Platypus-Type-PtrObject-0.02
Successfully installed Modern-Perl-1.20190727
Successfully installed Test-Differences-0.67
Successfully installed Cpanel-JSON-XS-4.15
Successfully installed JSON-MaybeXS-1.004000
Successfully installed Devel-NYTProf-6.06
Successfully installed Carp-Clan-6.08
Successfully installed Data-Dump-1.23
Successfully installed Lingua-Stem-Fr-0.02
Successfully installed Text-German-0.06
Successfully installed Snowball-Norwegian-1.2
Successfully installed Lingua-Stem-Ru-0.04
Successfully installed Snowball-Swedish-1.2
Successfully installed Lingua-PT-Stemmer-0.02
Successfully installed Lingua-Stem-It-0.02
Successfully installed Lingua-Stem-Snowball-Da-1.01
Successfully installed Lingua-Stem-0.84
Successfully installed Memoize-ExpireLRU-0.56
Successfully installed HTML-Tagset-3.20
Successfully installed HTML-Parser-3.72
Successfully installed Lingua-EN-Tagger-0.31
Successfully installed Lingua-EN-Inflect-1.904
Successfully installed Lingua-EN-Inflect-Number-1.12
Successfully installed Lingua-EN-Words2Nums-0.18
Successfully installed Lingua-EN-FindNumber-1.32
Successfully installed Lingua-EN-Number-IsOrdinal-0.05
Successfully installed Lingua-EN-Inflect-Phrase-0.20
Successfully installed Class-Unload-0.11
Successfully installed curry-1.001000
Successfully installed Text-Unidecode-1.30
Successfully installed String-ToIdentifier-EN-0.12
Successfully installed DBIx-Class-Schema-Loader-0.07049
Successfully installed Exporter-Tiny-1.002001
Successfully installed Type-Tiny-1.004004
Successfully installed Text-Brew-0.02
Successfully installed Params-Util-1.07
Successfully installed Data-OptList-0.110
Successfully installed Class-Load-0.25
Successfully installed Devel-OverloadInfo-0.005
Successfully installed Devel-StackTrace-2.04
Successfully installed Class-Load-XS-0.10
Successfully installed Module-Runtime-Conflicts-0.003
Successfully installed Sub-Exporter-0.987
Successfully installed Package-DeprecationManager-0.17
Successfully installed Eval-Closure-0.14
Successfully installed Moose-2.2011
Successfully installed SQL-Tokenizer-0.24
Successfully installed List-MoreUtils-XS-0.428
Successfully installed List-MoreUtils-0.428
Successfully installed Regexp-Common-2017060201
Successfully installed SQL-SplitStatement-1.00020
Successfully installed YAML-1.29
Successfully installed Parse-RecDescent-1.967015
Successfully installed Import-Into-1.002005
Successfully installed indirect-0.39
Successfully installed ExtUtils-Depends-0.8000
Successfully installed B-Hooks-OP-Check-0.22
Successfully installed bareword-filehandles-0.007
Successfully installed multidimensional-0.014
Successfully installed strictures-2.000006
Successfully installed Package-Variant-1.003002
Successfully installed SQL-Translator-1.60
Successfully installed namespace-autoclean-0.29
Successfully installed MooseX-Role-Parameterized-1.11
Successfully installed Fennec-Lite-0.004
Successfully installed Meta-Builder-0.004
Successfully installed Module-Build-Tiny-0.039
Successfully installed aliased-0.34
Successfully installed Exporter-Declare-0.114
Successfully installed Log-Contextual-0.008001
Successfully installed DBIx-Class-DeploymentHandler-0.002233
Successfully installed PerlIO-utf8_strict-0.007
Successfully installed Mixin-Linewise-0.108
Successfully installed Config-INI-0.025
Successfully installed Config-MySQL-0.02
Successfully installed Task-Weaken-1.06
Successfully installed B-Utils-0.27
Successfully installed Data-Dump-Streamer-2.40
Successfully installed Tie-ToObject-0.03
Successfully installed Data-Visitor-0.30
Successfully installed YAML-Syck-1.31
Successfully installed Test-Fatal-0.014
Successfully installed Specio-0.44
Successfully installed Class-Data-Inheritable-0.08
Successfully installed Exception-Class-1.44
Successfully installed Params-ValidationCompiler-0.30
Successfully installed DateTime-Locale-1.25
Successfully installed Class-Singleton-1.5
Successfully installed DateTime-TimeZone-2.37
Successfully installed DateTime-1.51
Successfully installed DateTime-Format-Strptime-1.76
Successfully installed Params-Validate-1.29
Successfully installed DateTime-Format-Builder-0.82
Successfully installed DateTime-Format-Pg-0.16013
Successfully installed IO-All-0.87
Successfully installed DateTime-Format-MySQL-0.06
Successfully installed File-Copy-Recursive-0.45
Successfully installed Devel-Confess-0.009004
Successfully installed DateTime-Format-SQLite-0.11
Successfully installed Data-UUID-1.224
Successfully installed DBIx-Class-UUIDColumns-0.02006
Successfully installed DBICx-TestDatabase-0.05
Successfully installed DBIx-Class-InflateColumn-FS-0.01007
Successfully installed DBIx-Class-Fixtures-1.001039
Successfully installed Log-Any-1.707
Successfully installed MooX-Attribute-ENV-0.02
Successfully installed MooX-Locale-Passthrough-0.001
Successfully installed MIME-Charset-1.012.2
Successfully installed Unicode-LineBreak-2019.001
Successfully installed Getopt-Long-Descriptive-0.104
Successfully installed MooX-Options-4.103
Successfully installed MooX-Traits-0.005
Successfully installed Path-IsDev-1.001003
Successfully installed Path-FindDev-v0.5.3
Successfully installed File-ShareDir-ProjectDistDir-1.000009
Successfully installed Devel-PartialDump-0.20
Successfully installed DBIx-Class-Migration-0.074
Successfully installed DBD-Pg-3.10.0
Successfully installed DBIx-Class-InflateColumn-Serializer-0.09
! Installing the dependencies failed: Module 'SDL' is not installed, Module 'SDLx::App' is not installed
! Bailing out the installation for /home/hakon/test/sdl/.
207 distributions installed
Installing modules failed
KES777 commented 3 years ago

See /home/hakon/.cpanm/work/1608977275.1473564/build.log for details

Probably you need to install sdl into system:

$ apt list --installed | grep sdl

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libsdl-image1.2/bionic-updates,bionic-security,now 1.2.12-8ubuntu0.1 i386 [installed]
libsdl-mixer1.2/bionic,now 1.2.12-14 i386 [installed]
libsdl-net1.2/bionic,now 1.2.8-5 i386 [installed]
libsdl-ttf2.0-0/bionic,now 2.0.11-4 i386 [installed]
libsdl1.2debian/bionic-updates,bionic-security,now 1.2.15+dfsg2-0.1ubuntu0.1 i386 [installed]
libsdl2-2.0-0/bionic-updates,bionic-security,now 2.0.8+dfsg1-1ubuntu1.18.04.4 i386 [installed]
  1. For ffi.pl the SDL and SDLx::App is not required, so you can comment them and run carton again
hakonhagland commented 3 years ago

I have previously installed both libsdl-dev and libsdl2-dev (I am on Ubuntu 20.04), so I think it should not be a problem:

$ apt list --installed | grep sdl
libalien-sdl-perl/focal,focal,now 1.446-3 all [installed,automatic]
libsdl-gfx1.2-5/focal,now 2.0.25-11 amd64 [installed,automatic]
libsdl-image1.2/focal,now 1.2.12-12 amd64 [installed,automatic]
libsdl-mixer1.2/focal,now 1.2.12-16build1 amd64 [installed,automatic]
libsdl-pango1/focal,now 0.1.2-8 amd64 [installed,automatic]
libsdl-perl/focal,now 2.548-1build2 amd64 [installed,automatic]
libsdl-ttf2.0-0/focal,now 2.0.11-6 amd64 [installed,automatic]
libsdl1.2-dev/focal,now 1.2.15+dfsg2-5 amd64 [installed]
libsdl1.2debian/focal,now 1.2.15+dfsg2-5 amd64 [installed,automatic]
libsdl2-2.0-0/focal,now 2.0.10+dfsg1-3 amd64 [installed,automatic]
libsdl2-dev/focal,now 2.0.10+dfsg1-3 amd64 [installed]
KES777 commented 3 years ago

In any case:

See /home/hakon/.cpanm/work/1608977275.1473564/build.log for details
hakonhagland commented 3 years ago

For ffi.pl the SDL and SDLx::App is not required, so you can comment them and run carton again

I tried that now:

$ carton
Complete! Modules were installed into /home/hakon/test/sdl/local
$ perl ffi.pl
Can't locate FFI/Platypus.pm in @INC (you may need to install the FFI::Platypus module)
hakonhagland commented 3 years ago

Ok, according to the documentation I needed to add /home/hakon/test/sdl/local/lib/perl5 to the include path. But still it does not find SDL2::SDL:

$ perl -I /home/hakon/test/sdl/local/lib/perl5/ ffi.pl
Can't locate SDL2/SDL.pm in @INC (you may need to install the SDL2::SDL module) 
hakonhagland commented 3 years ago

Of course, I missed that I need to add ./lib to the include path also. But still something is wrong:

$ perl -I /home/hakon/test/sdl/local/lib/perl5/ -I./lib ffi.pl
not a array ref or scalar: CODE(0x55c5bc6e67b8) at lib/SDL2/Pixels.pm line 511.
hakonhagland commented 3 years ago

Added as a new issue

hakonhagland commented 3 years ago

Installing Alien::SDL failed. See /home/hakon/.cpanm/work/1608977275.1473564/build.log for details.

Added new issue at Alien::SDL