You are not logged in.
Pages: 1
I installed gscan2pdf 0.9.23 with all needed dependencies from AUR, but when program starting I recieve a message 'PDF::API2 is missing' (installed from AUR).
Console says:
Constant subroutine main::LC_CTYPE redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_CTYPE () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_NUMERIC redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_NUMERIC () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_TIME redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_TIME () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_COLLATE redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_COLLATE () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_MONETARY redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_MONETARY () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_MESSAGES redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_MESSAGES () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_ALL redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_ALL () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
[michal@cubx Totem]$ gscan2pdf
Constant subroutine main::LC_CTYPE redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_CTYPE () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_NUMERIC redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_NUMERIC () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_TIME redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_TIME () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_COLLATE redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_COLLATE () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_MONETARY redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_MONETARY () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_MESSAGES redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_MESSAGES () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Constant subroutine main::LC_ALL redefined at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Prototype mismatch: sub main::LC_ALL () vs none at /usr/share/perl5/core_perl/Exporter.pm line 66.
at /usr/bin/perlbin/site/gscan2pdf line 127
Nothing about api2
Last edited by kwidzin (2008-04-23 10:05:30)
Offline
OK. I reinstalled perl-pdf-api2 with new paths to perl and solved the problem.
Here is updated PKBUILD for api2:
pkgname=perl-pdf-api2
pkgver=0.69
pkgrel=2
pkgdesc="A Perl Module Chain to faciliate the Creation and Modification of High-Quality 'Portable Document Format (aka. PDF)' Files."
url='http://search.cpan.org/~areibens/PDF-API2-0.69/lib/PDF/API2.pm'
license=('GPL')
depends=('perl' 'perl-compress-zlib')
arch=('i686' 'x86_64')
source=(http://cpan.org/modules/by-module/PDF/PDF-API2-$pkgver.tar.gz)
md5sums=('e812a35c4e9d7ef1d8eee223e0cd2a14')
build() {
cd $startdir/src/PDF-API2-$pkgver
# Force module installation to "current" perl directories.
eval `perl -V:archname`
perl Makefile.PL \
INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
make || return 1
make install DESTDIR=${startdir}/pkg
# remove perllocal.pod and .packlist
find ${startdir}/pkg -name perllocal.pod -delete
find ${startdir}/pkg -name .packlist -delete
}
# vim: ts=2 sw=2 et ft=sh
Last edited by kwidzin (2008-04-23 10:10:00)
Offline
Pages: 1