[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debconf failed configure



Joey Hess <joey@kitenet.net> writes:

> Kalle Valo wrote:
> > Bareword found where operator expected at /usr/share/perl5/Debconf/DbDriver.pm line 25, near "qr/$params{$field}/i"
> > syntax error at /usr/share/perl5/Debconf/DbDriver.pm line 25, near "qr/$params{$field}/i"
> 
> I wonder what version of perl you are using? I think that qr// has been
> valid syntax since at least perl 5.004, if not longer. You have some
> locally installed ancient perl, perhaps?

I should have a recent version from sid and I have never installed a
local version of perl.

litku:~$ perl --version

This is perl, v5.6.1 built for i386-linux

Copyright 1987-2001, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

litku:~$  dpkg -l perl
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  perl           5.6.1-5        Larry Wall's Practical Extraction and Report
litku:~$ which perl
/usr/bin/perl
litku:~$ 

> The md5sum of that file should be:
> 
> 4497c1e698977c07a704590ec7715583  /usr/share/perl5/Debconf/DbDriver.pm
> 
> In case yours got corrupted somehow.

I guess it's alright:

litku:~$ md5sum /usr/share/perl5/Debconf/DbDriver.pm
4497c1e698977c07a704590ec7715583  /usr/share/perl5/Debconf/DbDriver.pm
litku:~$ 

> If this command fails to compile, it is your perl at fault:
> 
> perl -e '$this->{$field}=qr/$params{$field}/i;'

Ok, it's my perl. 

litku:~$ perl -e '$this->{$field}=qr/$params{$field}/i;'
Bareword found where operator expected at -e line 1, near "qr/$params{$field}/i"
syntax error at -e line 1, near "qr/$params{$field}/i"
Execution of -e aborted due to compilation errors.
litku:~$ 

Thank you for pointing me to right direction. I'll look into what's
wrong with my perl installation. If anyone has any hints, please tell
me.

-- 
Kalle Valo



Reply to: