On 26 January 2017 at 00:33, ina cpan via RT
<bug-Strict-Perl@rt.cpan.org> wrote:
Show quoted text
It is not anywhere, the module is not installed:
[ben@mikan] {10:14 12} Strict-Perl-2015.08 538 $ cd software/install
/home/ben/software/install
[ben@mikan] {10:14 20} install 539 $ find . -name "Perl.pm"
./lib/perl5/site_perl/5.18.2/i386-freebsd/AnyEvent/IO/Perl.pm
./lib/perl5/site_perl/5.18.2/i386-freebsd/AnyEvent/Impl/Perl.pm
./lib/perl5/site_perl/5.18.2/Perl/Critic/Utils/Perl.pm
./lib/perl5/site_perl/5.18.2/File/Find/Rule/Perl.pm
./lib/perl5/site_perl/5.18.2/Shell/Perl.pm
./lib/perl5/site_perl/5.18.2/TAP/Parser/SourceHandler/Perl.pm
./lib/perl5/site_perl/5.18.2/Authen/SASL/Perl.pm
./lib/perl5/site_perl/5.18.2/MooseX/Types/Perl.pm
./lib/perl5/site_perl/5.18.2/Config/Any/Perl.pm
./lib/perl5/site_perl/5.18.2/Log/Report/Dispatcher/Perl.pm
./lib/perl5/site_perl/5.18.2/Dist/Zilla/MVP/Reader/Perl.pm
./lib/perl5/site_perl/5.18.2/ShipIt/ProjectType/Perl.pm
./lib/perl5/site_perl/5.18.2/Modern/Perl.pm
./lib/perl5/site_perl/5.18.2/Test2/Require/Perl.pm
./lib/perl5/site_perl/5.18.2/Probe/Perl.pm
./lib/perl5/site_perl/5.18.2/Specio/Library/Perl.pm
./lib/perl5/5.18.2/TAP/Parser/SourceHandler/Perl.pm
Show quoted text> -------------------------------------------------------------------
> @INC contains:
> /home/ben/software/install/lib/perl5/site_perl/5.18.2/i386-freebsd
> /home/ben/software/install/lib/perl5/site_perl/5.18.2
> /home/ben/software/install/lib/perl5/5.18.2/i386-freebsd
> /home/ben/software/install/lib/perl5/5.18.2
> /home/ben/software/install/lib/perl5/site_perl
> .(dot)
> -------------------------------------------------------------------
>
> 2) Which version of perl of "perl test.pl" (maybe 5.18.2 :) and...
Here is a complete output of installing the module from the source
code and demonstration that it doesn't work when installed like this.
What I typed is after the $ sign.
-----------------------------------------
$ mkdir ina
$ cd ina
/home/ben/ina
$ wget
https://cpan.metacpan.org/authors/id/I/IN/INA/Strict/Perl/Strict-Perl-2015.08.tar.gz
--2017-01-26 10:07:58--
https://cpan.metacpan.org/authors/id/I/IN/INA/Strict/Perl/Strict-Perl-2015.08.tar.gz
Resolving cpan.metacpan.org (cpan.metacpan.org)... 151.101.72.249
Connecting to cpan.metacpan.org
(cpan.metacpan.org)|151.101.72.249|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10882 (11K) [application/x-gzip]
Saving to: ‘Strict-Perl-2015.08.tar.gz’
Strict-Perl-2015.08 100%[===================>] 10.63K --.-KB/s in 0s
2017-01-26 10:07:58 (82.2 MB/s) - ‘Strict-Perl-2015.08.tar.gz’ saved
[10882/10882]
$ perl -V
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
Platform:
osname=freebsd, osvers=10.1-release-p5, archname=i386-freebsd
uname='freebsd mikan 10.1-release-p5 freebsd 10.1-release-p5 #0:
tue jan 27 08:52:50 utc 2015
root@amd64-builder.daemonology.net:usrobjusrsrcsysgeneric i386 '
config_args='-Dprefix=/home/ben/software/install -d'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
optimize='-O',
cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.2.1 Compatible FreeBSD Clang 3.4.1
(tags/RELEASE_34/dot1-final 208032)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E -fstack-protector -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lgdbm -lm -lcrypt -lutil -lc
perllibs=-lm -lcrypt -lutil -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib
-fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under freebsd
Compiled at Sep 11 2015 16:17:22
@INC:
/home/ben/software/install/lib/perl5/site_perl/5.18.2/i386-freebsd
/home/ben/software/install/lib/perl5/site_perl/5.18.2
/home/ben/software/install/lib/perl5/5.18.2/i386-freebsd
/home/ben/software/install/lib/perl5/5.18.2
/home/ben/software/install/lib/perl5/site_perl
.
$ tar xfz Strict-Perl-2015.08.tar.gz
$ cd Strict-Perl-2015.08
/home/ben/ina/Strict-Perl-2015.08
$ ls
Changes META.yml README Test/ t/
MANIFEST Makefile.PL* Strict/ pMakefile.PL*
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: NAME must be a package name
Generating a Unix-style Makefile
Writing Makefile for Strict-Perl
Writing MYMETA.yml and MYMETA.json
$ make
"/usr/home/ben/software/install/bin/perl5.18.2" "-Iblib/arch"
"-Iblib/lib" pMakefile.PL pMakefile
[ben@mikan] {10:08 34} Strict-Perl-2015.08 527 $ make test
PERL_DL_NONLAZY=1 "/usr/home/ben/software/install/bin/perl5.18.2"
"-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef
*Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')"
t/*.t
t/001_test.t .. ok
All tests successful.
Files=1, Tests=30, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.62 cusr
0.16 csys = 0.80 CPU)
Result: PASS
[ben@mikan] {10:08 39} Strict-Perl-2015.08 528 $ make install
"/usr/home/ben/software/install/bin/perl5.18.2" "-Iblib/arch"
"-Iblib/lib" pMakefile.PL pMakefile
Appending installation info to
/home/ben/software/install/lib/perl5/5.18.2/i386-freebsd/perllocal.pod
$ cat > test.pl
use Strict::Perl;
$ perl test.pl
Strict::Perl:
Strict::Perl 2015.08 version required like 'use Strict::Perl
2015.08;', stopped at test.pl line 1.
[3] (eval) in test.pl
0001* use Strict::Perl;
[2] main::BEGIN in test.pl
0001* use Strict::Perl;
[1] Strict::Perl::import in test.pl
0001* use Strict::Perl;
$ cd
$ perl ina/Strict-Perl-2015.08/test.pl
Can't locate Strict/Perl.pm in @INC (you may need to install the
Strict::Perl module) (@INC contains:
/home/ben/software/install/lib/perl5/site_perl/5.18.2/i386-freebsd
/home/ben/software/install/lib/perl5/site_perl/5.18.2
/home/ben/software/install/lib/perl5/5.18.2/i386-freebsd
/home/ben/software/install/lib/perl5/5.18.2
/home/ben/software/install/lib/perl5/site_perl .) at
ina/Strict-Perl-2015.08/test.pl line 1.
BEGIN failed--compilation aborted at ina/Strict-Perl-2015.08/test.pl line 1.
------------------------------
The module runs from its own directory, but it does not run from the
/home/ben directory.
Show quoted text> 3) Which version of perl of "cpanm Strict::Perl" (same as 2)?)
--------------------------------------------
$ which cpanm
/home/ben/software/install/bin/cpanm
$ cpanm --version
cpanm (App::cpanminus) version 1.7042 (/home/ben/software/install/bin/cpanm)
perl version 5.018002 (/usr/home/ben/software/install/bin/perl5.18.2)
%Config:
archname=i386-freebsd
installsitelib=/home/ben/software/install/lib/perl5/site_perl/5.18.2
installsitebin=/home/ben/software/install/bin
installman1dir=/home/ben/software/install/share/man/man1
installman3dir=/home/ben/software/install/share/man/man3
sitearchexp=/home/ben/software/install/lib/perl5/site_perl/5.18.2/i386-freebsd
sitelibexp=/home/ben/software/install/lib/perl5/site_perl/5.18.2
archlibexp=/home/ben/software/install/lib/perl5/5.18.2/i386-freebsd
privlibexp=/home/ben/software/install/lib/perl5/5.18.2
%ENV:
@INC:
FatPacked::679949136=HASH(0x28873350)
/home/ben/software/install/lib/perl5/site_perl/5.18.2/i386-freebsd
/home/ben/software/install/lib/perl5/site_perl/5.18.2
/home/ben/software/install/lib/perl5/5.18.2/i386-freebsd
/home/ben/software/install/lib/perl5/5.18.2
/home/ben/software/install/lib/perl5/site_perl
.
----------------------------------------
Show quoted text> Thank you!
No problem, let me know if you have any more questions. Sorry about
the long message but hopefully this is better than leaving out
something important.