jmacdotorg / plerd

Ultralight Dropbox-friendly Markdown-based blogging.
MIT License
112 stars 21 forks source link

Failed to Compile #42

Open srimad-bhagavatam opened 5 years ago

srimad-bhagavatam commented 5 years ago

cat .cpanm/work/1565588453.21267/build.log

cpanm (App::cpanminus) 1.7044 on perl 5.024001 built for x86_64-linux-gnu-thread-multi Work directory is /root/.cpanm/work/1565588453.21267 You have make /usr/bin/make You have LWP 6.15 You have /bin/tar: tar (GNU tar) 1.29 Copyright (C) 2015 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. You have /usr/bin/unzip Searching Plerd () on cpanmetadb ... --> Working on Plerd Fetching http://www.cpan.org/authors/id/J/JM/JMAC/Plerd-1.811.tar.gz -> OK Unpacking Plerd-1.811.tar.gz Entering Plerd-1.811 Checking configure dependencies from META.json Checking if you have ExtUtils::MakeMaker 6.64 ... Yes (7.10_02) Configuring Plerd-1.811 Running Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Plerd Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have Data::GUID 0 ... Yes (0.049) Checking if you have App::Daemon 0 ... Yes (0.22) Checking if you have YAML 0 ... Yes (1.29) Checking if you have FindBin 0 ... Yes (1.51) Checking if you have Moose 0 ... Yes (2.2011) Checking if you have Path::Class 0 ... Yes (0.37) Checking if you have File::HomeDir 0 ... Yes (1.004) Checking if you have URI 0 ... Yes (1.71) Checking if you have HTML::SocialMeta 0.72 ... Yes (0.74003) Checking if you have DateTime::Format::W3CDTF 0 ... Yes (0.07) Checking if you have Text::MultiMarkdown 0 ... Yes (1.000035) Checking if you have Readonly 0 ... Yes (2.05) Checking if you have File::ChangeNotify 0 ... Yes (0.31) Checking if you have Template 0 ... Yes (2.29) Checking if you have Mojolicious::Lite 0 ... Yes (undef) Checking if you have DateTime 0 ... Yes (1.51) Checking if you have Web::Mention 0.6 ... Yes (0.703) Checking if you have HTML::Strip 0 ... Yes (2.10) Checking if you have List::Util 1.45 ... Yes (1.51) Checking if you have Capture::Tiny 0 ... Yes (0.48) Checking if you have Try::Tiny 0 ... Yes (0.30) Building and testing Plerd-1.811 cp lib/Plerd/SmartyPants.pm blib/lib/Plerd/SmartyPants.pm cp lib/Plerd/WebmentionQueue.pm blib/lib/Plerd/WebmentionQueue.pm cp README.pod blib/lib/README.pod cp lib/Plerd/Tag.pm blib/lib/Plerd/Tag.pm cp lib/Plerd.pm blib/lib/Plerd.pm cp lib/Plerd/Init.pm blib/lib/Plerd/Init.pm cp lib/Plerd/Post.pm blib/lib/Plerd/Post.pm cp lib/Plerd/Util.pm blib/lib/Plerd/Util.pm cp bin/plerdall blib/script/plerdall "/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/plerdall cp bin/plerdwatcher blib/script/plerdwatcher "/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/plerdwatcher Manifying 2 pod documents Manifying 8 pod documents PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/.t t/basic.t ... ok

Giving the Plerd daemon a few seconds to spin up...

Giving the Plerd daemon a a few seconds to process a change...

Failed test 'Success!'

at t/daemon.t line 99.

got: '0'

expected: '7'

Looks like you failed 1 test of 1.

t/daemon.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/init.t .... ok

Test Summary Report

t/daemon.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=3, Tests=46, 22 wallclock secs ( 0.04 usr 0.00 sys + 11.09 cusr 0.51 csys = 11.64 CPU) Result: FAIL Failed 1/3 test programs. 1/46 subtests failed. Makefile:919: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 -> FAIL Installing Plerd failed. See /root/.cpanm/work/1565588453.21267/build.log for details. Retry with --force to force install it.

jmacdotorg commented 5 years ago

If you retry with --force (per the last line of that output), does it install and work as expected?

iamllcoolray commented 4 years ago

I've installed Plerd but I've run into a few issues:

! Testing Plerd-1.820 failed but installing it anyway.

zsh: command not found: plerdall

zsh: command not found: plerdwatcher

For the first issue is it a serious error if not great! Now for the plerdall and plerdwatcher commands, how would I get them to work? I try exporting them in my .zshrc file on my Macbook but I have failed at every attempt. I know there is probably a simple solution but I cannot seem to figure it out.

jmacdotorg commented 4 years ago

Hi @iamllcoolray,

It sounds like there may be a path issue going on, if Plerd installed but your shell can't see its executables.

Could you please tell me more about what commands you ran to install plerd, and what its output was? I'm also curious about what version of macOS you're running.

iamllcoolray commented 4 years ago

Hey @jmacdotorg,

I am running macOS High Sierra-v10.13.6.

When I installed Plerd I ran:

sudo cpanm --force Plerd

This is the output I got:

--> Working on Plerd
Fetching http://www.cpan.org/authors/id/J/JM/JMAC/Plerd-1.820.tar.gz ... OK
Configuring Plerd-1.820 ... OK
Building and testing Plerd-1.820 ... FAIL
! Testing Plerd-1.820 failed but installing it anyway.
Successfully reinstalled Plerd-1.820
1 distribution installed

Thanks for taking the time to look this over.

jmacdotorg commented 4 years ago

OK, thanks!

And trying to run plerdall after that gives you a command not found error, still?

If so... could you just use your Mac's own local-file search tools (like the Finder's good File->Find) to see where plerdall ended up? :) I would expect there to be one copy in a temporary location that cpanm downloaded, but there should also be another copy in an "installed" place, like /usr/local/bin/.

iamllcoolray commented 4 years ago

The only two paths have for plerdall and plerdwatcher are:

/User/plerd/bin/plerdall
/User/plerd/bin/plerdwatcher
/User/plerd/blib/script/plerdall
/User/plerd/blib/script/plerdwatcher

So what I did was make a copy of each executables to /usr/local/bin/ but ran into this output:

plerdall
Can't start /usr/local/bin/plerdall: I can't find a Plerd config file in /Users/kurookami/plerd.conf, 
/Users/kurookami/conf/plerd.conf, /Users/kurookami/.plerd, or in /usr/local/bin/../conf/plerd.conf, 
and no other location was specified as a command-line argument. 
at /usr/local/Cellar/perl/5.30.1/lib/perl5/site_perl/5.30.1/Plerd/Util.pm line 39.

and

plerdwatcher
Can't start /usr/local/bin/plerdwatcher: I can't find a Plerd config file in /Users/kurookami/plerd.conf, 
/Users/kurookami/conf/plerd.conf, 
/Users/kurookami/.plerd, 
or in /usr/local/bin/../conf/plerd.conf, 
and no other location was specified as a command-line argument. 
at /usr/local/Cellar/perl/5.30.1/lib/perl5/site_perl/5.30.1/Plerd/Util.pm line 39.
jmacdotorg commented 4 years ago

I am pleased to report that this is good news - these messages are coming from Plerd, not your shell. So Plerd is compiling and running and immediately exiting because it doesn't have a config file set up, just like it says.

To amend this, follow the steps here: https://github.com/jmacdotorg/plerd#configuration

iamllcoolray commented 4 years ago

I just tested out the plerdall --init command in an empty directory and everything works. Thank you so much for your help.