yuki-kimoto / gitprep

Portable GitHub system into your own server
http://gitprep.yukikimoto.com/
906 stars 118 forks source link

modules updating fails: "Can't locate Module/CoreList.pm" #182

Closed brainchild0 closed 2 years ago

brainchild0 commented 2 years ago

Working from 948df4a21a6f210ad9839b607e4e41b10c3033e6, currently HEAD on master, I have the following problem:

$ ./setup_module 
--> Working on .
Configuring /path/to/application ... OK
==> Found dependencies: Text::Markdown::Hoedown, Data::Page::Navigation, DBD::SQLite, DBI, Time::Moment, Time::HiRes
--> Working on Text::Markdown::Hoedown
Fetching http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Text-Markdown-Hoedown-1.03.tar.gz ... OK
Configuring Text-Markdown-Hoedown-1.03 ... OK
Can't locate Module/CoreList.pm in @INC (@INC contains: FatPacked::17329032=HASH(0x1086b88) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at cpanm line 129.
yuki-kimoto commented 2 years ago

Generally Module::CoreList exists in Perl core module path.

Can you tell me the results of 'perl -V' and 'perldoc -l Module::CoreList'?

brainchild0 commented 2 years ago
$ perl -V
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:

  Platform:
    osname=linux, osvers=4.18.0-193.14.2.el8_2.x86_64, archname=x86_64-linux-thread-multi
    uname='linux buildfarm02.cloudlinux.com 4.18.0-193.14.2.el8_2.x86_64 #1 smp sun jul 26 03:54:29 utc 2020 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -Dccdlflags=-Wl,--enable-new-dtags -Dlddlflags=-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -Wl,-z,relro  -DDEBUGGING=-g -Dversion=5.16.3 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 -Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5/vendor_perl -Darchlib=/usr/lib64/perl5 -Dvendorarch=/usr/lib64/perl5/vendor_perl -Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Dusedtrace=/usr/bin/dtrace -Duselargefiles -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto -Dscriptdir=/usr/bin -Dusesitecustomize'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.8.5 20150623 (Red Hat 4.8.5-44)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -fstack-protector'
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.17'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro '

Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
                        USE_REENTRANT_API USE_SITECUSTOMIZE
  Locally applied patches:
    Fedora Patch1: Removes date check, Fedora/RHEL specific
    Fedora Patch3: support for libdir64
    Fedora Patch4: use libresolv instead of libbind
    Fedora Patch5: USE_MM_LD_RUN_PATH
    Fedora Patch6: Skip hostname tests, due to builders not being network capable
    Fedora Patch7: Dont run one io test due to random builder failures
    Fedora Patch9: Fix find2perl to translate ? glob properly (RT#113054)
    Fedora Patch10: Fix broken atof (RT#109318)
    Fedora Patch13: Clear $@ before "do" I/O error (RT#113730)
    Fedora Patch14: Do not truncate syscall() return value to 32 bits (RT#113980)
    Fedora Patch15: Override the Pod::Simple::parse_file (CPANRT#77530)
    Fedora Patch16: Do not leak with attribute on my variable (RT#114764)
    Fedora Patch17: Allow operator after numeric keyword argument (RT#105924)
    Fedora Patch18: Extend stack in File::Glob::glob, (RT#114984)
    Fedora Patch19: Do not crash when vivifying $|
    Fedora Patch20: Fix misparsing of maketext strings (CVE-2012-6329)
    Fedora Patch21: Add NAME headings to CPAN modules (CPANRT#73396)
    Fedora Patch22: Fix leaking tied hashes (RT#107000) [1]
    Fedora Patch23: Fix leaking tied hashes (RT#107000) [2]
    Fedora Patch24: Fix leaking tied hashes (RT#107000) [3]
    Fedora Patch25: Fix dead lock in PerlIO after fork from thread (RT#106212)
    Fedora Patch26: Make regexp safe in a signal handler (RT#114878)
    Fedora Patch27: Update h2ph(1) documentation (RT#117647)
    Fedora Patch28: Update pod2html(1) documentation (RT#117623)
    Fedora Patch29: Document Math::BigInt::CalcEmu requires Math::BigInt (CPAN RT#85015)
    RHEL Patch30: Use stronger algorithm needed for FIPS in t/op/crypt.t (RT#121591)
    RHEL Patch31: Make *DBM_File desctructors thread-safe (RT#61912)
    RHEL Patch32: Use stronger algorithm needed for FIPS in t/op/taint.t (RT#123338)
    RHEL Patch33: Remove CPU-speed-sensitive test in Benchmark test
    RHEL Patch34: Make File::Glob work with threads again
    RHEL Patch35: Fix CRLF conversion in ASCII FTP upload (CPAN RT#41642)
    RHEL Patch36: Do not leak the temp utf8 copy of namepv (CPAN RT#123786)
    RHEL Patch37: Fix duplicating PerlIO::encoding when spawning threads (RT#31923)
    RHEL Patch38: Add SSL support to Net::SMTP (CPAN RT#93823) [1]
    RHEL Patch39: Add SSL support to Net::SMTP (CPAN RT#93823) [2]
    RHEL Patch40: Add SSL support to Net::SMTP (CPAN RT#93823) [3]
    RHEL Patch41: Add SSL support to Net::SMTP (CPAN RT#93823) [4]
    RHEL Patch42: Do not overload ".." in Math::BigInt (CPAN RT#80182)
    RHEL Patch43: Fix CVE-2018-18311 Integer overflow leading to buffer overflow
    RHEL Patch44: Fix a spurious timeout in Net::FTP::close (CPAN RT#18504)
    RHEL Patch45: Fix day of year parsing (CPAN RT#88211)
    RHEL Patch47: Fix CVE-2020-12723 (GH#16947)
    RHEL Patch48: Fix CVE-2020-10543
    RHEL Patch49: Fix CVE-2020-10878
  Built under linux
  Compiled at Feb  3 2021 04:37:33
  @INC:
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5
    .
yuki-kimoto commented 2 years ago

Is perl-core package installed?

yum install perl-core

CentOS separates Perl Core modules from Perl itself.

brainchild0 commented 2 years ago

I am running on a shared host. I have no permissions to install system packages, or even access to a package manager.

GitPrep has been very helpful, because it runs entirely in a regular user account. It requires no daemon, or system installation, and allows users in the application to have access to Git over HTTP, without creating any system users that use SSH.

Is it possible to run the new version the same way, as before?

yuki-kimoto commented 2 years ago

Can you try the following command?

perl cpanm -n -l extlib Module::CoreList
brainchild0 commented 2 years ago
$ perl cpanm -n -l extlib Module::CoreList
--> Working on Module::CoreList
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/Module-CoreList-5.20211120.tar.gz ... OK
Configuring Module-CoreList-5.20211120 ... OK
Building Module-CoreList-5.20211120 ... OK
Successfully installed Module-CoreList-5.20211120 (upgraded from 5.20190220)
1 distribution installed
yuki-kimoto commented 2 years ago
./setup_module 
brainchild0 commented 2 years ago
$ ./setup_module
--> Working on .
Configuring /path/to/application ... OK
==> Found dependencies: Text::Markdown::Hoedown, Data::Page::Navigation, DBD::SQLite, DBI, Time::Moment, Time::HiRes
--> Working on Text::Markdown::Hoedown
Fetching http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Text-Markdown-Hoedown-1.03.tar.gz ... OK
Configuring Text-Markdown-Hoedown-1.03 ... OK
Can't locate Module/CoreList.pm in @INC (@INC contains: FatPacked::29973384=HASH(0x1c95b88) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at cpanm line 129.
yuki-kimoto commented 2 years ago

I find old setup_module script.

https://github.com/yuki-kimoto/gitprep/commit/e1acdf67e091dc9447d41151fea95f95df54a947

perl cpanm -n -l extlib Module::CoreList
perl -Iextlib/lib/perl5 cpanm -f -L extlib ExtUtils::MakeMaker
perl -Iextlib/lib/perl5 cpanm -L extlib --installdeps .

Can you do this?

brainchild0 commented 2 years ago

I have tested in a clean copy of the repository (not the previous installation).

(I had to rewrite the last command.)

$ git clone  https://github.com/yuki-kimoto/gitprep.git gitprep.test
$ cd gitprep.test
$ git checkout e1acdf6
HEAD is now at e1acdf6... add gitprep-shell wrappter script to run current perl
$ 
$ perl cpanm -n -l extlib Module::CoreList
--> Working on Module::CoreList
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/Module-CoreList-5.20211120.tar.gz ... OK
Configuring Module-CoreList-5.20211120 ... OK
==> Found dependencies: Test::More
--> Working on Test::More
Fetching http://www.cpan.org/authors/id/E/EX/EXODIST/Test-Simple-1.302188.tar.gz ... OK
Configuring Test-Simple-1.302188 ... OK
Building Test-Simple-1.302188 ... OK
Successfully installed Test-Simple-1.302188
Building Module-CoreList-5.20211120 ... OK
Successfully installed Module-CoreList-5.20211120
2 distributions installed
$ 
$ perl -Iextlib/lib/perl5 cpanm -f -L extlib ExtUtils::MakeMaker
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.62.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.62 ... OK
Building and testing ExtUtils-MakeMaker-7.62 ... OK
Successfully installed ExtUtils-MakeMaker-7.62 (upgraded from 6.63_02)
1 distribution installed
$ 
$ perl -Iextlib/lib/perl5 cpanm -L extlib --installdeps
Usage: cpanm [options] Module [...]

Try `cpanm --help` or `man cpanm` for more options.
$ 
$ perl -Iextlib/lib/perl5 cpanm -L --installdeps extlib 
! Finding extlib on cpanmetadb failed.
! Finding extlib () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution extlib
yuki-kimoto commented 2 years ago
# Wrong
perl -Iextlib/lib/perl5 cpanm -L extlib --installdeps

# Right
perl -Iextlib/lib/perl5 cpanm -L extlib --installdeps .
brainchild0 commented 2 years ago

My mistake.

$ perl -Iextlib/lib/perl5 cpanm -L extlib --installdeps .
--> Working on .
Configuring /path/to/application/gitprep.test ... OK
==> Found dependencies: Text::Markdown::Hoedown, Data::Page::Navigation, Validator::Custom, Mojolicious::Plugin::AutoRoute, DBIx::Connector, DBD::SQLite, DBIx::Custom, Mojolicious::Plugin::INIConfig, Object::Simple, DBI, Time::Moment, Mojolicious::Plugin::DBViewer, Time::HiRes, Mojolicious::Plugin::BasicAuth, Mojolicious, Data::Page, Config::Tiny
--> Working on Text::Markdown::Hoedown
Fetching http://backpan.perl.org/authors/id/T/TO/TOKUHIROM/Text-Markdown-Hoedown-1.01.tar.gz ... OK
==> Found dependencies: File::pushd, ExtUtils::ParseXS, Module::Build
--> Working on File::pushd
Fetching http://backpan.perl.org/authors/id/D/DA/DAGOLDEN/File-pushd-1.016.tar.gz ... OK
Configuring File-pushd-1.016 ... OK
Building and testing File-pushd-1.016 ... OK
Successfully installed File-pushd-1.016
--> Working on ExtUtils::ParseXS
Fetching http://backpan.perl.org/authors/id/S/SM/SMUELLER/ExtUtils-ParseXS-3.35.tar.gz ... OK
Configuring ExtUtils-ParseXS-3.35 ... OK
==> Found dependencies: ExtUtils::CBuilder
--> Working on ExtUtils::CBuilder
Fetching http://backpan.perl.org/authors/id/A/AM/AMBS/ExtUtils-CBuilder-0.280236.tar.gz ... OK
Configuring ExtUtils-CBuilder-0.280236 ... OK
==> Found dependencies: IPC::Cmd, Perl::OSType
--> Working on IPC::Cmd
Fetching http://backpan.perl.org/authors/id/B/BI/BINGOS/IPC-Cmd-1.04.tar.gz ... OK
Configuring IPC-Cmd-1.04 ... OK
==> Found dependencies: Locale::Maketext::Simple, Module::Load::Conditional, Params::Check
--> Working on Locale::Maketext::Simple
Fetching http://backpan.perl.org/authors/id/J/JE/JESSE/Locale-Maketext-Simple-0.21.tar.gz ... OK
Configuring Locale-Maketext-Simple-0.21 ... OK
Building and testing Locale-Maketext-Simple-0.21 ... OK
Successfully installed Locale-Maketext-Simple-0.21
--> Working on Module::Load::Conditional
Fetching http://backpan.perl.org/authors/id/B/BI/BINGOS/Module-Load-Conditional-0.74.tar.gz ... OK
Configuring Module-Load-Conditional-0.74 ... OK
==> Found dependencies: Module::Metadata, Module::Load, Params::Check
--> Working on Module::Metadata
Fetching http://backpan.perl.org/authors/id/E/ET/ETHER/Module-Metadata-1.000037.tar.gz ... OK
Configuring Module-Metadata-1.000037 ... OK
Building and testing Module-Metadata-1.000037 ... OK
Successfully installed Module-Metadata-1.000037
--> Working on Module::Load
Fetching http://backpan.perl.org/authors/id/B/BI/BINGOS/Module-Load-0.36.tar.gz ... OK
Configuring Module-Load-0.36 ... OK
Building and testing Module-Load-0.36 ... OK
Successfully installed Module-Load-0.36
--> Working on Params::Check
Fetching http://backpan.perl.org/authors/id/B/BI/BINGOS/Params-Check-0.38.tar.gz ... OK
Configuring Params-Check-0.38 ... OK
Building and testing Params-Check-0.38 ... OK
Successfully installed Params-Check-0.38
Building and testing Module-Load-Conditional-0.74 ... OK
Successfully installed Module-Load-Conditional-0.74
Building and testing IPC-Cmd-1.04 ... OK
Successfully installed IPC-Cmd-1.04
--> Working on Perl::OSType
Fetching http://backpan.perl.org/authors/id/D/DA/DAGOLDEN/Perl-OSType-1.010.tar.gz ... OK
Configuring Perl-OSType-1.010 ... OK
Building and testing Perl-OSType-1.010 ... OK
Successfully installed Perl-OSType-1.010
Building and testing ExtUtils-CBuilder-0.280236 ... OK
Successfully installed ExtUtils-CBuilder-0.280236
Building and testing ExtUtils-ParseXS-3.35 ... OK
Successfully installed ExtUtils-ParseXS-3.35 (upgraded from 3.16)
--> Working on Module::Build
Fetching http://backpan.perl.org/authors/id/L/LE/LEONT/Module-Build-0.4231.tar.gz ... OK
Configuring Module-Build-0.4231 ... OK
==> Found dependencies: TAP::Harness
--> Working on TAP::Harness
Fetching http://backpan.perl.org/authors/id/L/LE/LEONT/Test-Harness-3.42.tar.gz ... OK
Configuring Test-Harness-3.42 ... OK
Building and testing Test-Harness-3.42 ... OK
Successfully installed Test-Harness-3.42 (upgraded from 3.23)
Building and testing Module-Build-0.4231 ... OK
Successfully installed Module-Build-0.4231
Configuring Text-Markdown-Hoedown-1.01 ... OK
Building and testing Text-Markdown-Hoedown-1.01 ... OK
Successfully installed Text-Markdown-Hoedown-1.01
--> Working on Data::Page::Navigation
Fetching http://backpan.perl.org/authors/id/K/KA/KAZEBURO/Data-Page-Navigation-0.06.tar.gz ... OK
Configuring Data-Page-Navigation-0.06 ... OK
==> Found dependencies: Data::Page
--> Working on Data::Page
Fetching http://backpan.perl.org/authors/id/L/LB/LBROCARD/Data-Page-2.02.tar.gz ... OK
Configuring Data-Page-2.02 ... OK
==> Found dependencies: Class::Accessor::Chained::Fast, Test::Exception
--> Working on Class::Accessor::Chained::Fast
Fetching http://backpan.perl.org/authors/id/R/RC/RCLAMP/Class-Accessor-Chained-0.01.tar.gz ... OK
Configuring Class-Accessor-Chained-0.01 ... OK
==> Found dependencies: Class::Accessor
--> Working on Class::Accessor
Fetching http://backpan.perl.org/authors/id/K/KA/KASEI/Class-Accessor-0.51.tar.gz ... OK
Configuring Class-Accessor-0.51 ... OK
Building and testing Class-Accessor-0.51 ... OK
Successfully installed Class-Accessor-0.51
Building and testing Class-Accessor-Chained-0.01 ... OK
Successfully installed Class-Accessor-Chained-0.01
--> Working on Test::Exception
Fetching http://backpan.perl.org/authors/id/E/EX/EXODIST/Test-Exception-0.43.tar.gz ... OK
Configuring Test-Exception-0.43 ... OK
==> Found dependencies: Sub::Uplevel
--> Working on Sub::Uplevel
Fetching http://backpan.perl.org/authors/id/D/DA/DAGOLDEN/Sub-Uplevel-0.2800.tar.gz ... OK
Configuring Sub-Uplevel-0.2800 ... OK
Building and testing Sub-Uplevel-0.2800 ... OK
Successfully installed Sub-Uplevel-0.2800
Building and testing Test-Exception-0.43 ... OK
Successfully installed Test-Exception-0.43
Building and testing Data-Page-2.02 ... OK
Successfully installed Data-Page-2.02
Building and testing Data-Page-Navigation-0.06 ... OK
Successfully installed Data-Page-Navigation-0.06
--> Working on Validator::Custom
Fetching http://backpan.perl.org/authors/id/K/KI/KIMOTO/Validator-Custom-1.01.tar.gz ... OK
Configuring Validator-Custom-1.01 ... OK
==> Found dependencies: Object::Simple
--> Working on Object::Simple
Fetching http://backpan.perl.org/authors/id/K/KI/KIMOTO/Object-Simple-3.14.tar.gz ... OK
Configuring Object-Simple-3.14 ... OK
Building and testing Object-Simple-3.14 ... OK
Successfully installed Object-Simple-3.14
Building and testing Validator-Custom-1.01 ... OK
Successfully installed Validator-Custom-1.01
--> Working on Mojolicious::Plugin::AutoRoute
Fetching http://backpan.perl.org/authors/id/K/KI/KIMOTO/Mojolicious-Plugin-AutoRoute-0.19.tar.gz ... OK
Configuring Mojolicious-Plugin-AutoRoute-0.19 ... OK
==> Found dependencies: Mojolicious
--> Working on Mojolicious
Fetching http://backpan.perl.org/authors/id/S/SR/SRI/Mojolicious-6.57.tar.gz ... OK
Configuring Mojolicious-6.57 ... OK
==> Found dependencies: IO::Socket::IP
--> Working on IO::Socket::IP
Fetching http://backpan.perl.org/authors/id/P/PE/PEVANS/IO-Socket-IP-0.41.tar.gz ... OK
Configuring IO-Socket-IP-0.41 ... OK
Building and testing IO-Socket-IP-0.41 ... OK
Successfully installed IO-Socket-IP-0.41
Building and testing Mojolicious-6.57 ... OK
Successfully installed Mojolicious-6.57
Building and testing Mojolicious-Plugin-AutoRoute-0.19 ... OK
Successfully installed Mojolicious-Plugin-AutoRoute-0.19
--> Working on DBIx::Connector
Fetching http://backpan.perl.org/authors/id/D/DW/DWHEELER/DBIx-Connector-0.53.tar.gz ... OK
Configuring DBIx-Connector-0.53 ... OK
==> Found dependencies: Test::MockModule, DBI
--> Working on Test::MockModule
Fetching http://backpan.perl.org/authors/id/G/GF/GFRANKS/Test-MockModule-v0.177.0.tar.gz ... OK
Configuring Test-MockModule-v0.177.0 ... OK
==> Found dependencies: Test::Warnings, SUPER
--> Working on Test::Warnings
Fetching http://backpan.perl.org/authors/id/E/ET/ETHER/Test-Warnings-0.031.tar.gz ... OK
Configuring Test-Warnings-0.031 ... OK
Building and testing Test-Warnings-0.031 ... OK
Successfully installed Test-Warnings-0.031
--> Working on SUPER
Fetching http://backpan.perl.org/authors/id/C/CH/CHROMATIC/SUPER-1.20190531.tar.gz ... OK
Configuring SUPER-1.20190531 ... OK
==> Found dependencies: Sub::Identify
--> Working on Sub::Identify
Fetching http://backpan.perl.org/authors/id/R/RG/RGARCIA/Sub-Identify-0.14.tar.gz ... OK
Configuring Sub-Identify-0.14 ... OK
Building and testing Sub-Identify-0.14 ... OK
Successfully installed Sub-Identify-0.14
Building and testing SUPER-1.20190531 ... OK
Successfully installed SUPER-1.20190531
Building and testing Test-MockModule-v0.177.0 ... OK
Successfully installed Test-MockModule-v0.177.0
--> Working on DBI
Fetching http://backpan.perl.org/authors/id/T/TI/TIMB/DBI-1.634.tar.gz ... OK
Configuring DBI-1.634 ... OK
Building and testing DBI-1.634 ... OK
Successfully installed DBI-1.634
Building and testing DBIx-Connector-0.53 ... OK
Successfully installed DBIx-Connector-0.53
--> Working on DBD::SQLite
Fetching http://backpan.perl.org/authors/id/I/IS/ISHIGAKI/DBD-SQLite-1.50.tar.gz ... OK
Configuring DBD-SQLite-1.50 ... OK
Building and testing DBD-SQLite-1.50 ... OK
Successfully installed DBD-SQLite-1.50
--> Working on DBIx::Custom
Fetching http://backpan.perl.org/authors/id/K/KI/KIMOTO/DBIx-Custom-0.36.tar.gz ... OK
Configuring DBIx-Custom-0.36 ... OK
Building and testing DBIx-Custom-0.36 ... OK
Successfully installed DBIx-Custom-0.36
--> Working on Mojolicious::Plugin::INIConfig
Fetching http://backpan.perl.org/authors/id/K/KI/KIMOTO/Mojolicious-Plugin-INIConfig-0.03.tar.gz ... OK
Configuring Mojolicious-Plugin-INIConfig-0.03 ... OK
==> Found dependencies: Config::Tiny
--> Working on Config::Tiny
Fetching http://backpan.perl.org/authors/id/R/RS/RSAVAGE/Config-Tiny-2.23.tgz ... OK
Configuring Config-Tiny-2.23 ... OK
Building and testing Config-Tiny-2.23 ... OK
Successfully installed Config-Tiny-2.23
Building and testing Mojolicious-Plugin-INIConfig-0.03 ... OK
Successfully installed Mojolicious-Plugin-INIConfig-0.03
--> Working on Time::Moment
Fetching http://backpan.perl.org/authors/id/C/CH/CHANSEN/Time-Moment-0.38.tar.gz ... OK
Configuring Time-Moment-0.38 ... OK
==> Found dependencies: Test::Requires, Test::Fatal, Time::HiRes, Test::Number::Delta
--> Working on Test::Requires
Fetching http://backpan.perl.org/authors/id/T/TO/TOKUHIROM/Test-Requires-0.11.tar.gz ... OK
Configuring Test-Requires-0.11 ... OK
Building and testing Test-Requires-0.11 ... OK
Successfully installed Test-Requires-0.11
--> Working on Test::Fatal
Fetching http://backpan.perl.org/authors/id/R/RJ/RJBS/Test-Fatal-0.016.tar.gz ... OK
Configuring Test-Fatal-0.016 ... OK
==> Found dependencies: Try::Tiny
--> Working on Try::Tiny
Fetching http://backpan.perl.org/authors/id/E/ET/ETHER/Try-Tiny-0.31.tar.gz ... OK
Configuring Try-Tiny-0.31 ... OK
Building and testing Try-Tiny-0.31 ... OK
Successfully installed Try-Tiny-0.31
Building and testing Test-Fatal-0.016 ... OK
Successfully installed Test-Fatal-0.016
--> Working on Time::HiRes
Fetching http://backpan.perl.org/authors/id/J/JH/JHI/Time-HiRes-1.9732.tar.gz ... OK
Configuring Time-HiRes-1.9732 ... OK
Building and testing Time-HiRes-1.9732 ... OK
Successfully installed Time-HiRes-1.9732 (upgraded from 1.9725)
--> Working on Test::Number::Delta
Fetching http://backpan.perl.org/authors/id/D/DA/DAGOLDEN/Test-Number-Delta-1.06.tar.gz ... OK
Configuring Test-Number-Delta-1.06 ... OK
Building and testing Test-Number-Delta-1.06 ... OK
Successfully installed Test-Number-Delta-1.06
Building and testing Time-Moment-0.38 ... OK
Successfully installed Time-Moment-0.38
--> Working on Mojolicious::Plugin::DBViewer
Fetching http://backpan.perl.org/authors/id/K/KI/KIMOTO/Mojolicious-Plugin-DBViewer-0.28.tar.gz ... OK
Configuring Mojolicious-Plugin-DBViewer-0.28 ... OK
Building and testing Mojolicious-Plugin-DBViewer-0.28 ... OK
Successfully installed Mojolicious-Plugin-DBViewer-0.28
--> Working on Mojolicious::Plugin::BasicAuth
Fetching http://backpan.perl.org/authors/id/T/TE/TEMPIRE/Mojolicious-Plugin-BasicAuth-0.08.tar.gz ... OK
Configuring Mojolicious-Plugin-BasicAuth-0.08 ... OK
Building and testing Mojolicious-Plugin-BasicAuth-0.08 ... OK
Successfully installed Mojolicious-Plugin-BasicAuth-0.08
<== Installed dependencies for .. Finishing.
42 distributions installed
yuki-kimoto commented 2 years ago

It seems like good.

brainchild0 commented 2 years ago

Can we merge a solution into the head of the main branch?

yuki-kimoto commented 2 years ago

It is ok to write the solution in documents and merge it.

brainchild0 commented 2 years ago

Sorry, I don't understand.

I would like to keep my local installation the same as the main branch.

yuki-kimoto commented 2 years ago

Dose "main" branch" means "master" branch?

brainchild0 commented 2 years ago

Yes.

It means the place where most users download a copy to install.

For this project, at this time, it means the master branch.

yuki-kimoto commented 2 years ago

Do you means fixing "setup_module" script in master branch?

brainchild0 commented 2 years ago

Yes, I mean fixing the master branch, so I can run setup_module without any error, and then run the application, also without any error.

yuki-kimoto commented 2 years ago

OK.

Can you fix setup_module in the following fixing.

If Module::CoreList is not found, do the following process.

perl cpanm -n -l extlib Module::CoreList
perl -Iextlib/lib/perl5 cpanm -f -L extlib ExtUtils::MakeMaker
perl -Iextlib/lib/perl5 cpanm -L extlib --installdeps .
# Cehck the existence
perl -MModule::CoreList -e 1
brainchild0 commented 2 years ago

Are you suggesting editing the script, or typing the commands in the shell?

yuki-kimoto commented 2 years ago

Yes.

brainchild0 commented 2 years ago

Which?:

  1. Editing the script.
  2. Typing the commands in the shell.
yuki-kimoto commented 2 years ago
  1. Editing the script.

and Pull Request.

yuki-kimoto commented 2 years ago

I wrote a fixed review.

brainchild0 commented 2 years ago

Sorry, where is the review? I don't see any activity in the PR.

yuki-kimoto commented 2 years ago

Sorry, I should add the link.

https://github.com/yuki-kimoto/gitprep/pull/183

brainchild0 commented 2 years ago

Yes, I see the PR, which I submitted, and which references this issue.

You said you wrote a review, but I can't find any review. I only see my own commit. Where is your review?

yuki-kimoto commented 2 years ago

a

brainchild0 commented 2 years ago

I don't see the same as you.


Screenshot from 2021-12-22 20-14-30

brainchild0 commented 2 years ago

Anyway, I see in the image the comment "Need else". What do you suggest putting inside the else block?

yuki-kimoto commented 2 years ago
if ! ( perl -MModule::CoreList -e 1 2> /dev/null ); then
    perl cpanm -n -l extlib Module::CoreList
    perl -Iextlib/lib/perl5 cpanm -f -L extlib ExtUtils::MakeMaker
    perl -Iextlib/lib/perl5 cpanm -L extlib --installdeps .
else 
    perl cpanm -L extlib --installdeps .
fi
brainchild0 commented 2 years ago

OK, I pushed.