Docunext


Install NCPL on Debian

February 3rd, 2007
cd /usr/src/
wget http://downloads.sourceforge.net/ncpl/NCPL-1.000.047.tar.gz?modtime=1167773851&big_mirror=0
apt-get install -s perl
apt-get install libextutils-autoinstall-perl
apt-get install libmodule-depends-perl
tar -xzvf NCPL-1.000.047.tar.gz
cd NCPL-1.000047/

Responded with:

ExtUtils::MakeMaker v6.31, required for 'perl Makefile.PL' via CPAN
perl -MCPAN -e 'install ExtUtils::MakeMaker'

Then:

apt-get install libmodule-build-perl
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:  libarchive-tar-perl libcompress-zlib-perl libextutils-cbuilder-perl libextutils-parsexs-perl libio-zlib-perl
Suggested packages:  libio-string-perl
The following NEW packages will be installed:  libarchive-tar-perl libcompress-zlib-perl libextutils-cbuilder-perl libextutils-parsexs-perl libio-zlib-perl libmodule-build-perl
0 upgraded, 6 newly installed, 0 to remove and 113 not upgraded.
Need to get 356kB of archives.
After unpacking 1163kB of additional disk space will be used.
Do you want to continue? [Y/n] 

Yes!

Still no go, following their step:

perl -MCPAN -e 'install ExtUtils::MakeMaker'

Results in:

Can't locate object method "install" via package "ExtUtils::MakeMaker" at -e line 1.

Bummer!

apt-get install libextutils-pkgconfig-perl

No go...

cpan
... conf ...
install Bundle::CPAN

Cancelled - need make.

apt-get install make
cpan
install Bundle::CPAN

Hmm that didn't help, letting it run. No good. Need to fix config to reflect installed make

nano /etc/perl/CPAN/Config.pm
cpan
install Bundle::CPAN

Good to go! Builds are working...

cpan
install ExtUtils::MakeMaker

cpan is messed up, need to install these manually: Warning: prerequisite CGI::Session 4.13 not found. Warning: prerequisite CGI::Session::Driver::DBI not found. Warning: prerequisite CGI::Simple not found. Warning: prerequisite Config::General not found. Warning: prerequisite HTML::Entities not found. Warning: prerequisite IO::CaptureOutput not found. Warning: prerequisite Mail::Sendmail not found. Warning: prerequisite Tie::IxHash not found.

Done, running

perl Makefile.pm

Done. Not so bad.

Not yet working, now getting this error in Apache's error_log:

Can't locate NCPL.pm in @INC

Found it in the source:

cp /usr/src/NCPL-1.000047/lib/NCPL.pm /etc/perl/
cp -av /usr/src/NCPL-1.000047/lib/NCPL/ /etc/perl/NCPL

Worked, no db yet.

DBI connect('ncpl:localhost:3306','ncpl',...) failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client at /etc/perl/NCPL/Database.pm line 146
apt-get install libdbd-mysql-perl
Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022