Bug#681925: libimage-size-perl: imgsize script fails when a local perl is in $PATH
Moritz Lenz
moritz at faui2k3.org
Tue Jul 17 19:38:19 UTC 2012
Package: libimage-size-perl
Version: 3.232-1
Severity: normal
Dear Maintainer,
when I have a perl binary in $PATH other than the system perl,
the 'imgsize' program fails to find the Image::Size module:
$ imgsize
Can't locate Image/Size.pm in @INC (@INC contains:
/home/moritz/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/x86_64-linux
/home/moritz/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2
/home/moritz/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux
/home/moritz/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 .) at
/usr/bin/imgsize line 23.
BEGIN failed--compilation aborted at /usr/bin/imgsize line 23.
That's because /usr/bin/imgsize has a shebang line of
#!/usr/bin/env perl
which causes it pick up my own perl (which doesn't have Image::Size
installed)
instead of the system perl.
Changing the shebang line to
#!/usr/bin/perl
should fix the problem
Best regards,
Moritz Lenz
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libimage-size-perl depends on:
ii perl 5.14.2-12
libimage-size-perl recommends no packages.
Versions of packages libimage-size-perl suggests:
ii perlmagick 8:6.7.7.10-2
-- no debconf information
More information about the pkg-perl-maintainers
mailing list