You are not logged in.
Pages: 1
Topic closed
I installed perl-cpanplus-dist-arch with:
sudo pacman -S perl-cpanplus-dist-arch
and set it up with:
setupdistarch
Then I went ahead installing Term::ReadKey with:
cpanp -i Term::ReadKey
However, the installation failed
Installing Term::ReadKey (2.38)
[MSG] Module 'Term::ReadKey' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
Running [/usr/bin/perl -MCPANPLUS::Internals::Utils::Autoflush ~/.cpanplus/5.34.0/build/iL8EFj75Et/TermReadKey-2.38/Makefile.PL]...
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Term::ReadKey
Writing MYMETA.yml and MYMETA.json
[MSG] Module 'Term::ReadKey' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
==> Making package: perl-term-readkey 2.38-1 (Fri 16 Jul 2021 04:05:08 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found TermReadKey-2.38.tar.gz
==> Validating source files with md5sums...
TermReadKey-2.38.tar.gz ... Passed
==> Validating source files with sha512sums...
TermReadKey-2.38.tar.gz ... Passed
==> Extracting sources...
-> Extracting TermReadKey-2.38.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Generating a Unix-style Makefile
Writing Makefile for Term::ReadKey
Writing MYMETA.yml and MYMETA.json
Running Mkbootstrap for ReadKey ()
chmod 644 "ReadKey.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs 644
cc -c -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DVERSION=\"2.38\" -DXS_VERSION=\"2.38\" -fPIC "-I/usr/lib/perl5/5.34/core_perl/CORE" ReadKey.c
In file included from ReadKey.xs:7:
ppport.h:4385: warning: "WIDEST_UTYPE" redefined
4385 | # define WIDEST_UTYPE U64TYPE
|
In file included from /usr/lib/perl5/5.34/core_perl/CORE/perl.h:2930,
from ReadKey.xs:5:
/usr/lib/perl5/5.34/core_perl/CORE/handy.h:1382: note: this is the location of the previous definition
1382 | # define WIDEST_UTYPE U64
|
rm -f blib/arch/auto/Term/ReadKey/ReadKey.so
cc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -fstack-protector-strong ReadKey.o -o blib/arch/auto/Term/ReadKey/ReadKey.so \
\
chmod 755 blib/arch/auto/Term/ReadKey/ReadKey.so
"/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" ReadKey.pm.PL ReadKey.pm
Creating ReadKey.pm
Bootstrapping the XS for blockoptions: 5
Done
Skip blib/arch/Term/ReadKey.pm (unchanged)
Manifying 1 pod document
==> Starting check()...
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs 644
"/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" ReadKey.pm.PL ReadKey.pm
Creating ReadKey.pm
Bootstrapping the XS for blockoptions: 5
Done
Skip blib/arch/Term/ReadKey.pm (unchanged)
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01_basic.t ............... ok
t/02_terminal_functions.t .. ok
All tests successful.
Files=2, Tests=8, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.07 cusr 0.00 csys = 0.09 CPU)
Result: PASS
==> Entering fakeroot environment...
==> Starting package()...
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs 644
"/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" ReadKey.pm.PL ReadKey.pm
Creating ReadKey.pm
Bootstrapping the XS for blockoptions: 5
Done
Skip blib/arch/Term/ReadKey.pm (unchanged)
Manifying 1 pod document
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing ~/.cpanplus/5.34.0/pacman/build/perl-term-readkey-2.38/pkg/perl-term-readkey/usr/lib/perl5/5.34/vendor_perl/auto/Term/ReadKey/ReadKey.so
Installing ~/.cpanplus/5.34.0/pacman/build/perl-term-readkey-2.38/pkg/perl-term-readkey/usr/lib/perl5/5.34/vendor_perl/Term/ReadKey.pm
Installing ~/.cpanplus/5.34.0/pacman/build/perl-term-readkey-2.38/pkg/perl-term-readkey/usr/share/man/man3/Term::ReadKey.3pm
Appending installation info to ~/.cpanplus/5.34.0/pacman/build/perl-term-readkey-2.38/pkg/perl-term-readkey/usr/lib/perl5/5.34/core_perl/perllocal.pod
==> Tidying install...
-> Removing empty directories...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "perl-term-readkey"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: perl-term-readkey 2.38-1 (Fri 16 Jul 2021 04:05:12 PM EDT)
[ERROR] Path to package file has not been set.
Someone is using CPANPLUS::Dist::Arch incorrectly.
Tell them to call create() before install().
*** Install log written to:
~/.cpanplus/install-logs/Term-ReadKey-2.38-1626465912.log
Error installing 'Term::ReadKey'
Problem installing one or more modules
The following is the file
~/.cpanplus/install-logs/Term-ReadKey-2.38-1626465912.log:
[MSG] [Fri Jul 16 16:05:05 2021] Using cached file '~/.cpanplus/authors/id/J/JS/JSTOWE/CHECKSUMS' on disk; ttl (3600s) is not exceeded
[MSG] [Fri Jul 16 16:05:05 2021] Checksum matches for 'TermReadKey-2.38.tar.gz'
[MSG] [Fri Jul 16 16:05:05 2021] Extracting 'TermReadKey-2.38.tar.gz'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/example/'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/example/test.pl'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/META.yml'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/genchars.pl'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/Makefile.PL'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/ReadKey.pm.PL'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/MANIFEST.SKIP'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/t/'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/t/02_terminal_functions.t'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/t/01_basic.t'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/ReadKey.xs'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/Configure.pm'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/MANIFEST'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/META.json'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/SIGNATURE'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/ppport.h'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/Changes'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/README'
[MSG] [Fri Jul 16 16:05:05 2021] Extracted 'Term::ReadKey' to '~/.cpanplus/5.34.0/build/iL8EFj75Et/TermReadKey-2.38'
[MSG] [Fri Jul 16 16:05:05 2021] Module 'Term::ReadKey' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
[MSG] [Fri Jul 16 16:05:05 2021] Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Term::ReadKey
Writing MYMETA.yml and MYMETA.json
[MSG] [Fri Jul 16 16:05:05 2021] DEFAULT 'filter_prereqs' HANDLER RETURNING 'sub return value'
[MSG] [Fri Jul 16 16:05:05 2021] Module 'Term::ReadKey' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well
[ERROR] [Fri Jul 16 16:05:12 2021] Path to package file has not been set.
Someone is using CPANPLUS::Dist::Arch incorrectly.
Tell them to call create() before install().
Please help, thank you so much.
Offline
Greetings fellow Archer.
Did you find any solution to this problem?
I am facing the same issue, irrespective of which module I try to install with it (Even CPANPLUS::Dist::Arch itself).
Thanks.
===EDIT===
A slight workaround, it's very manual though:
Note: Directly trying to install the src.tar.gz with pacman -U will fail.
It's just a source ball, after all.
cpan2aur Module::Name
tar -xf perl-module-name-version.src.tar.gz
cd perl-module-name
makepkg -si
===EDIT(Again...)===
Doesn't handle dependencies not in official repos very well (eg AUR stuff).
This is because makepkg uses pacman.
So you will have to manually install dependencies that are not in official repositories
yourself.
If you want to install them as dependencies, you will need a slightly different method:
cpan2aur Module::Name
tar -xf perl-module-name-version.src.tar.gz
cd perl-module-name
makepkg -s
sudo pacman -U --asdeps perl-module-name-version.pkg.tar.zst
Last edited by all_hail_the_shadow (2021-08-02 17:12:45)
Offline
You can probably script the whole damn thing with perl, if you were keen enough.
But that was the whole idea of the cpanplus-dist-arch thing anyway.
===Edit===
This might be better posted in the "System Administration" section, rather than
the "Applications & Desktop Environments", but not sure.
Anyway, good luck.
Last edited by all_hail_the_shadow (2021-08-02 17:20:52)
Offline
There are more than 3 kinds of 'COMPRESSION DEFAULTS' defined in file '/etc/makepkg.conf', i.e.
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSZST=(zstd -c -z -q -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
COMPRESSLZ4=(lz4 -q)
COMPRESSLZ=(lzip -c -f)
Accordingly, you may add 6 extras to get all 9 now, e.g.
--- CPANPLUS-Dist-Arch-1.32/lib/CPANPLUS/Dist/Arch.pm 2015-10-06 06:51:21.000000000 +0800
+++ CPANPLUS-Dist-Arch-1.32/lib/CPANPLUS/Dist/Arch.pm 2015-10-06 06:51:21.000000000 +0800
@@ -357,7 +357,7 @@
_DEBUG "Searching for file starting with $pkgfile";
- my ($found) = grep { -f $_ } map { "$pkgfile.$_" } qw/ xz gz bz2 /;
+ my ($found) = grep { -f $_ } map { "$pkgfile.$_" } qw/ gz bz2 xz zst lrz lzo Z lz4 lz /;
_DEBUG ( $found ? "Found $found" : "No package file found!" );
Sorry for digging such almost 1 year old post but I just encountered this issue last week ...
I installed perl-cpanplus-dist-arch with:
sudo pacman -S perl-cpanplus-dist-arch
and set it up with:
setupdistarch
Then I went ahead installing Term::ReadKey with:
cpanp -i Term::ReadKey
However, the installation failed
Installing Term::ReadKey (2.38) [MSG] Module 'Term::ReadKey' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well Running [/usr/bin/perl -MCPANPLUS::Internals::Utils::Autoflush ~/.cpanplus/5.34.0/build/iL8EFj75Et/TermReadKey-2.38/Makefile.PL]... Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Term::ReadKey Writing MYMETA.yml and MYMETA.json [MSG] Module 'Term::ReadKey' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well ==> Making package: perl-term-readkey 2.38-1 (Fri 16 Jul 2021 04:05:08 PM EDT) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found TermReadKey-2.38.tar.gz ==> Validating source files with md5sums... TermReadKey-2.38.tar.gz ... Passed ==> Validating source files with sha512sums... TermReadKey-2.38.tar.gz ... Passed ==> Extracting sources... -> Extracting TermReadKey-2.38.tar.gz with bsdtar ==> Removing existing $pkgdir/ directory... ==> Starting build()... Generating a Unix-style Makefile Writing Makefile for Term::ReadKey Writing MYMETA.yml and MYMETA.json Running Mkbootstrap for ReadKey () chmod 644 "ReadKey.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs 644 cc -c -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DVERSION=\"2.38\" -DXS_VERSION=\"2.38\" -fPIC "-I/usr/lib/perl5/5.34/core_perl/CORE" ReadKey.c In file included from ReadKey.xs:7: ppport.h:4385: warning: "WIDEST_UTYPE" redefined 4385 | # define WIDEST_UTYPE U64TYPE | In file included from /usr/lib/perl5/5.34/core_perl/CORE/perl.h:2930, from ReadKey.xs:5: /usr/lib/perl5/5.34/core_perl/CORE/handy.h:1382: note: this is the location of the previous definition 1382 | # define WIDEST_UTYPE U64 | rm -f blib/arch/auto/Term/ReadKey/ReadKey.so cc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -fstack-protector-strong ReadKey.o -o blib/arch/auto/Term/ReadKey/ReadKey.so \ \ chmod 755 blib/arch/auto/Term/ReadKey/ReadKey.so "/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" ReadKey.pm.PL ReadKey.pm Creating ReadKey.pm Bootstrapping the XS for blockoptions: 5 Done Skip blib/arch/Term/ReadKey.pm (unchanged) Manifying 1 pod document ==> Starting check()... "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs 644 "/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" ReadKey.pm.PL ReadKey.pm Creating ReadKey.pm Bootstrapping the XS for blockoptions: 5 Done Skip blib/arch/Term/ReadKey.pm (unchanged) PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01_basic.t ............... ok t/02_terminal_functions.t .. ok All tests successful. Files=2, Tests=8, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.07 cusr 0.00 csys = 0.09 CPU) Result: PASS ==> Entering fakeroot environment... ==> Starting package()... "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs 644 "/usr/bin/perl" "-Iblib/arch" "-Iblib/lib" ReadKey.pm.PL ReadKey.pm Creating ReadKey.pm Bootstrapping the XS for blockoptions: 5 Done Skip blib/arch/Term/ReadKey.pm (unchanged) Manifying 1 pod document Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing ~/.cpanplus/5.34.0/pacman/build/perl-term-readkey-2.38/pkg/perl-term-readkey/usr/lib/perl5/5.34/vendor_perl/auto/Term/ReadKey/ReadKey.so Installing ~/.cpanplus/5.34.0/pacman/build/perl-term-readkey-2.38/pkg/perl-term-readkey/usr/lib/perl5/5.34/vendor_perl/Term/ReadKey.pm Installing ~/.cpanplus/5.34.0/pacman/build/perl-term-readkey-2.38/pkg/perl-term-readkey/usr/share/man/man3/Term::ReadKey.3pm Appending installation info to ~/.cpanplus/5.34.0/pacman/build/perl-term-readkey-2.38/pkg/perl-term-readkey/usr/lib/perl5/5.34/core_perl/perllocal.pod ==> Tidying install... -> Removing empty directories... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> Creating package "perl-term-readkey"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: perl-term-readkey 2.38-1 (Fri 16 Jul 2021 04:05:12 PM EDT) [ERROR] Path to package file has not been set. Someone is using CPANPLUS::Dist::Arch incorrectly. Tell them to call create() before install(). *** Install log written to: ~/.cpanplus/install-logs/Term-ReadKey-2.38-1626465912.log Error installing 'Term::ReadKey' Problem installing one or more modules
The following is the file
~/.cpanplus/install-logs/Term-ReadKey-2.38-1626465912.log:[MSG] [Fri Jul 16 16:05:05 2021] Using cached file '~/.cpanplus/authors/id/J/JS/JSTOWE/CHECKSUMS' on disk; ttl (3600s) is not exceeded [MSG] [Fri Jul 16 16:05:05 2021] Checksum matches for 'TermReadKey-2.38.tar.gz' [MSG] [Fri Jul 16 16:05:05 2021] Extracting 'TermReadKey-2.38.tar.gz' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/example/' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/example/test.pl' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/META.yml' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/genchars.pl' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/Makefile.PL' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/ReadKey.pm.PL' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/MANIFEST.SKIP' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/t/' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/t/02_terminal_functions.t' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/t/01_basic.t' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/ReadKey.xs' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/Configure.pm' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/MANIFEST' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/META.json' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/SIGNATURE' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/ppport.h' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/Changes' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'TermReadKey-2.38/README' [MSG] [Fri Jul 16 16:05:05 2021] Extracted 'Term::ReadKey' to '~/.cpanplus/5.34.0/build/iL8EFj75Et/TermReadKey-2.38' [MSG] [Fri Jul 16 16:05:05 2021] Module 'Term::ReadKey' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well [MSG] [Fri Jul 16 16:05:05 2021] Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Term::ReadKey Writing MYMETA.yml and MYMETA.json [MSG] [Fri Jul 16 16:05:05 2021] DEFAULT 'filter_prereqs' HANDLER RETURNING 'sub return value' [MSG] [Fri Jul 16 16:05:05 2021] Module 'Term::ReadKey' depends on 'ExtUtils::MakeMaker', may need to build a 'CPANPLUS::Dist::Arch' package for it as well [ERROR] [Fri Jul 16 16:05:12 2021] Path to package file has not been set. Someone is using CPANPLUS::Dist::Arch incorrectly. Tell them to call create() before install().
Please help, thank you so much.
Offline
Closing this old topic.
How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.
Online
Pages: 1
Topic closed