Perl-Evozon / PearlBee

116 stars 44 forks source link

Fresh install fails. #28

Open StylusEater opened 10 years ago

StylusEater commented 10 years ago

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 ...

Successfully installed Sub-Exporter-ForMethods-0.100051
! Installing the dependencies failed: Module 'CPAN::Uploader' is not installed
! Bailing out the installation for Dist-Zilla-5.015.
167 distributions installed
./build.sh: line 5: dzil: command not found
user@somehost:~/PearlBee# ./build.sh

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:

Configuring XML-SAX-Expat-0.51 ... OK
==> Found dependencies: XML::Parser
--> Working on XML::Parser
Fetching http://www.cpan.org/authors/id/T/TO/TODDR/XML-Parser-2.41.tar.gz ... OK
Configuring XML-Parser-2.41 ... OK
Building and testing XML-Parser-2.41 ... FAIL
! Installing XML::Parser failed. See /root/.cpanm/work/1398011586.16659/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'XML::Parser' is not installed
! Bailing out the installation for XML-SAX-Expat-0.51.
! Installing the dependencies failed: Module 'XML::SAX::Expat' is not installed
! Bailing out the installation for XML-Simple-2.20.
85 distributions installed

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.

StylusEater commented 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/