Skip to content

Instantly share code, notes, and snippets.

@jacoby
Created August 10, 2016 03:31
Show Gist options
  • Save jacoby/8499ca8e55ec973ae51e77e6994e452b to your computer and use it in GitHub Desktop.
Save jacoby/8499ca8e55ec973ae51e77e6994e452b to your computer and use it in GitHub Desktop.
Why won't cpan/cpanm work in Bash on Ubuntu on Windows?
cpanm (App::cpanminus) 1.7001 on perl 5.018002 built for x86_64-linux-gnu-thread-multi
Work directory is /home/jacoby/.cpanm/work/1470771427.434
You have make /usr/bin/make
You have LWP 6.05
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 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.
Searching YAML::XS on cpanmetadb ...
--> Working on YAML::XS
Fetching http://www.cpan.org/authors/id/T/TI/TINITA/YAML-LibYAML-0.63.tar.gz
-> OK
Unpacking YAML-LibYAML-0.63.tar.gz
Entering YAML-LibYAML-0.63
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66)
Configuring YAML-LibYAML-0.63
Running Makefile.PL
Checking if your kit is complete...
Warning: the following files are missing in your kit:
inc/Spiffy.pm
inc/Test/Base.pm
inc/Test/Base/Filter.pm
lib/YAML/LibYAML.pm
lib/YAML/LibYAML.pod
lib/YAML/XS.pm
lib/YAML/XS.pod
LibYAML/api.c
LibYAML/config.h
LibYAML/dumper.c
LibYAML/emitter.c
LibYAML/lib/YAML/XS/LibYAML.pm
LibYAML/LibYAML.xs
LibYAML/loader.c
LibYAML/Makefile.PL
LibYAML/parser.c
LibYAML/perl_libyaml.c
LibYAML/perl_libyaml.h
LibYAML/ppport.h
LibYAML/ppport_sort.h
LibYAML/reader.c
LibYAML/scanner.c
LibYAML/test.pl
LibYAML/update.sh
LibYAML/writer.c
LibYAML/yaml.h
LibYAML/yaml_private.h
t/000-require-modules.t
t/alias.t
t/api.t
t/ascii.t
t/author-pod-syntax.t
t/blessed.t
t/boolean.t
t/bug-pvf.t
t/bug-stack.t
t/code.t
t/data/basic.yml
t/dump-heuristics.t
t/dump.t
t/empty.t
t/empty.yaml
t/error.t
t/file.t
t/glob.t
t/io-handle.t
t/leak.t
t/load.t
t/loadfile-empty.t
t/long_plain_wrap.t
t/magic.t
t/native.t
t/null.t
t/numbers.t
t/path-class.t
t/pl_sv_undef.t
t/private.t
t/quote.t
t/ref-scalar.t
t/regexp.t
t/string_nulls.t
t/tags.t
t/TestYAML.pm
t/TestYAMLTests.pm
t/tied.t
t/utf8.t
t/yaml_tests.yaml
Please inform the author.
Writing Makefile for YAML::XS::LibYAML
Writing MYMETA.yml and MYMETA.json
Writing Makefile for YAML::LibYAML
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66)
Building and testing YAML-LibYAML-0.63
make[1]: Entering directory `/home/jacoby/.cpanm/work/1470771427.434/YAML-LibYAML-0.63/LibYAML'
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H api.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H dumper.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H emitter.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H loader.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H parser.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H perl_libyaml.c
perl_libyaml.c: In function ‘loader_error_msg’:
perl_libyaml.c:100:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=]
);
^
perl_libyaml.c:100:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=]
perl_libyaml.c:109:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ [-Wformat=]
);
^
perl_libyaml.c:109:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ [-Wformat=]
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H reader.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H scanner.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H writer.c
/usr/bin/perl /usr/share/perl/5.18.2/ExtUtils/xsubpp -typemap /usr/share/perl/5.18/ExtUtils/typemap LibYAML.xs > LibYAML.xsc && mv LibYAML.xsc LibYAML.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.18/CORE" -DHAVE_CONFIG_H LibYAML.c
Running Mkbootstrap for YAML::XS::LibYAML ()
chmod 644 LibYAML.bs
rm -f ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.so
cc -shared -L/usr/local/lib -fstack-protector api.o dumper.o emitter.o loader.o parser.o perl_libyaml.o reader.o scanner.o writer.o LibYAML.o -o ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.so \
\
chmod 755 ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.so
cp LibYAML.bs ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.bs
chmod 644 ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.bs
make[1]: Leaving directory `/home/jacoby/.cpanm/work/1470771427.434/YAML-LibYAML-0.63/LibYAML'
make[1]: Entering directory `/home/jacoby/.cpanm/work/1470771427.434/YAML-LibYAML-0.63/LibYAML'
make[1]: Leaving directory `/home/jacoby/.cpanm/work/1470771427.434/YAML-LibYAML-0.63/LibYAML'
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# No tests run!
t/000-require-modules.t .. skipped: (no reason given)
t/alias.t ................ ok
t/api.t .................. ok
t/ascii.t ................ ok
t/author-pod-syntax.t .... skipped: these tests are for testing by the author
t/blessed.t .............. ok
t/boolean.t .............. ok
t/bug-pvf.t .............. ok
t/bug-stack.t ............ ok
t/code.t ................. ok
# Failed test 'Literal Scalar'
# at t/dump-heuristics.t line 4.
# got: '--- '1234567890
#
# 1234567890
#
# 1234567890
#
# '
# '
# expected: '--- |
# 1234567890
# 1234567890
# 1234567890
# '
# Failed test 'Double Quoted Scalar'
# at t/dump-heuristics.t line 10.
# got: '--- 'A
#
# B
#
# C
#
# '
# '
# expected: '--- "A\nB\nC\n"
# '
# Looks like you failed 2 tests of 2.
t/dump-heuristics.t ......
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/dump.t ................. ok
t/empty.t ................ ok
t/error.t ................ ok
t/file.t ................. ok
t/glob.t ................. ok
Can't open 'IO::Pipe::End=GLOB(0xc89ec8)' for input:
No such file or directory at /usr/lib/perl5/YAML/XS.pm line 46.
# Looks like your test exited with 2 before it could output anything.
t/io-handle.t ............
Dubious, test returned 2 (wstat 512, 0x200)
Failed 6/6 subtests
t/leak.t ................. ok
t/load.t ................. ok
t/loadfile-empty.t ....... ok
t/long_plain_wrap.t ...... skipped: Failing test. Not yet implemented
t/magic.t ................ ok
t/native.t ............... ok
t/null.t ................. ok
t/numbers.t .............. ok
t/path-class.t ........... ok
t/pl_sv_undef.t .......... ok
t/private.t .............. ok
t/quote.t ................ ok
t/ref-scalar.t ........... ok
t/regexp.t ............... ok
t/string_nulls.t ......... ok
t/tags.t ................. ok
t/tied.t ................. ok
# Failed test 'Dumping Chinese hash works'
# at t/utf8.t line 31.
# got: '---
# Email: boss@opcafe.net
# 地址: 新竹市 300 石坊街 37-8 號
# 店名: OpCafé
# 時間: 11:01~23:59
# 電話: '03-5277806
#
# 0991-100087
#
# '
# '
# expected: '---
# Email: boss@opcafe.net
# 地址: 新竹市 300 石坊街 37-8 號
# 店名: OpCafé
# 時間: 11:01~23:59
# 電話: "03-5277806\n0991-100087\n"
# '
# Looks like you failed 1 test of 8.
t/utf8.t .................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests
Test Summary Report
-------------------
t/000-require-modules.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
t/dump-heuristics.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
t/io-handle.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 6 tests but ran 0.
t/utf8.t (Wstat: 256 Tests: 8 Failed: 1)
Failed test: 5
Non-zero exit status: 1
Files=35, Tests=272, 12 wallclock secs ( 0.28 usr 0.81 sys + 6.85 cusr 3.14 csys = 11.08 CPU)
Result: FAIL
Failed 4/35 test programs. 3/272 subtests failed.
make: *** [test_dynamic] Error 1
-> FAIL Installing YAML::XS failed. See /home/jacoby/.cpanm/work/1470771427.434/build.log for details. Retry with --force to force install it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment