Open StylusEater opened 10 years ago
After install I also experienced this failure on first time startup:
user@somehost:~/PearlBee# plackup -R lib/ bin/app.pl Watching lib/ bin/lib bin/app.pl for file updates. Error while loading /root/PearlBee/bin/app.pl: Can't locate Dancer2/Plugin/REST.pm in @INC (@INC contains: /root/PearlBee/bin/../lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /root/PearlBee/bin/../lib/PearlBee/REST.pm line 5. BEGIN failed--compilation aborted at /root/PearlBee/bin/../lib/PearlBee/REST.pm line 5. Compilation failed in require at /root/PearlBee/bin/../lib/PearlBee.pm line 18. BEGIN failed--compilation aborted at /root/PearlBee/bin/../lib/PearlBee.pm line 18. Compilation failed in require at /root/PearlBee/bin/app.pl line 6. BEGIN failed--compilation aborted at /root/PearlBee/bin/app.pl line 6.
Looking at the build.log I found the issue...
t/00-report-prereqs.t ................. ok # Failed test 'headers have content_type set to (?^:text/x-data-dumper; charse t=UTF-8)' # at t/02_prepare_serializer_for_format.t line 66. # 'text/x-data-dumper' # doesn't match '(?^:text/x-data-dumper; charset=UTF-8)' # Looks like you failed 1 test of 10. t/02_prepare_serializer_for_format.t .. Dubious, test returned 1 (wstat 256, 0x100)
Doing the following fixed it but the test needs to be fixed:
cpanm --force -i Dancer2::Plugin::REST
Authen::Captcha fails to install even with libgd2-xpm-dev installed. I suspect it's something related to GD failing to install due to a version mismatch. I had to ...
cpanm --force -i GD cpanm -i Authen::Captcha
before successfully doing ...
user@somehost:~/PearlBee# plackup -R lib/ bin/app.pl Watching lib/ bin/lib bin/app.pl for file updates. HTTP::Server::PSGI: Accepting connections at http://0:5000/
On a fresh Debian 7 x64 droplet at digitalocean.com I ran ...
apt-get install build-essential apt-get install libgd2-xpm-dev ./build.sh
and a lot of dependencies installed but after some time I got a failure message ...
It seems Net::SSLeay was the issue and doing the following fixed it:
apt-get update apt-get install libssl-dev ./build.sh
I then ran into this issue:
It seems I was missing another library and doing the following fixed it:
apt-get install libxml2-dev ./build.sh
If I have time I'll create a patch to the README and/or build.sh to help.