Gscan2pdf not starting

Somehow I am getting errors while trying to run gscan2pdf after install any tips to get it to work?
gscan2pdf 2.13.2-1

❯ which perl
❯ perl --version

This is perl 5, version 38, subversion 0 (v5.38.0) built for x86_64-linux-thread-multi
❯ gscan2pdf --debug
given is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 242.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 243.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 250.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 253.
given is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 257.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 258.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 261.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 264.
given is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 390.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 391.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 395.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 399.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 404.
given is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 537.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 538.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 541.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 544.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 547.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 550.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/Scanner/ line 553.
given is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 123.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 124.
given is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 132.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 133.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 137.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 140.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 143.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 146.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 149.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 152.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 155.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 207.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 213.
given is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 445.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 446.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 492.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 498.
given is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 586.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 587.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 590.
when is deprecated at /usr/share/perl5/site_perl/Gscan2pdf/ line 594.
Attempt to reload Compress/ aborted.
Compilation failed in require at /usr/share/perl5/site_perl/PDF/Builder/ line 12.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/PDF/Builder/ line 12.
Compilation failed in require at /usr/share/perl5/site_perl/PDF/Builder/ line 16.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/PDF/Builder/ line 16.
Compilation failed in require at /usr/share/perl5/site_perl/PDF/ line 28.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/PDF/ line 28.
Compilation failed in require at /usr/share/perl5/site_perl/Gscan2pdf/ line 33.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/Gscan2pdf/ line 33.
Compilation failed in require at /usr/share/perl5/site_perl/Gscan2pdf/Dialog/ line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/Gscan2pdf/Dialog/ line 7.
Compilation failed in require at /usr/bin/gscan2pdf line 61.
BEGIN failed--compilation aborted at /usr/bin/gscan2pdf line 61.

Did you install gscan2pdf from the official repo’s or elsewhere?

No matter.
Both perl and gscan2pdf are current and they seem to have installed without issue. Gscan2pdf does also require pdftk to be installed, if you haven’t already:

sudo pacman -S pdftk

Invoking gscan2pdf by itself should launch the GUI, however, it should really be launched using the gscan2pdf.desktop file (or link) created during install.

I expected to find this perhaps under “Utilities” in the menu, though it actually landed under “Lost & Found”. If “Lost & Found” isn’t displayed in your menu, use the menu’s Search and it should magically appear.

To use gscan2pdf on the command-line, additional options should be added – See man gscan2pdf or gscan2pdf at Sourceforge.

While the undesired output can be annoying, it can probably be ignored. You can always submit a Support Request with the Developer(s) if it’s too troublesome.

Using the GUI bypasses this annoyance completely.

I have pdftk installed so that cannot be the issue. gscan2pdf is everytime sensitive to perl package change. e.g. 5.36 → 5.38

The following perl packages are installed too:

❯ pamac search perl | grep -b1 Installed
12959-    A simple email archiver written in perl
13003:texlive-pstricks  2023.66594-19 [Installed]                                extra
13084-    TeX Live - PSTricks
13108:texlive-latexextra  2023.66594-19 [Installed]                              extra
13189-    TeX Live - LaTeX additional packages
13230:texlive-bibtexextra  2023.66594-19 [Installed]                             extra
13311-    TeX Live - BibTeX additional styles
22708-    Register Perl interpreter
22738:pango-perl  1.227-16 [Installed]                                           extra
22819-    Perl bindings for Pango
22847:glib-perl  1.329.3-4 [Installed]                                           extra
22928-    Perl wrappers for glib 2.x, including GObject
22978:cairo-perl  1.109-3 [Installed]                                            extra
23059-    Perl wrappers for cairo
49266-    Deprecated libraries slated for removal from perl5
49321:perlbrew  0.97-1 [Installed]                                               extra
49402-    Manage perl installations in your $HOME
405337-    Test Module for Alien::Base
405369:perl-xml-writer  0.900-2 [Installed]                                       extra
405450-    Module for writing XML documents
405487:perl-xml-sax-base  1.09-5 [Installed]                                      extra
405568-    Base class SAX Drivers and Filters
405607:perl-xml-sax  1.02-1 [Installed]                                           extra
405688-    Simple API for XML
405711:perl-xml-parser  2.46-5 [Installed]                                        extra
405792-    Expat-based XML parser module for perl
405835:perl-xml-namespacesupport  1.12-5 [Installed]                              extra
405916-    Generic namespace helpers (ported from SAX2)
405965:perl-xml-libxml  2.0209-1 [Installed]                                      extra
406046-    Interface to the libxml library
406082:perl-www-robotrules  6.02-12 [Installed]                                   extra
406163-    Database of robots.txt-derived permissions
406210:perl-uri  5.20-1 [Installed]                                               extra
406291-    Uniform Resource Identifiers (absolute and relative)
406348:perl-try-tiny  0.31-3 [Installed]                                          extra
406429-    Minimal try/catch with proper localization of $@
406482:perl-tk  804.036-5 [Installed]                                             extra
406563-    A graphical user interface toolkit for Perl
406611:perl-timedate  2.33-5 [Installed]                                          extra
406692-    Date formating subroutines
406723:perl-test-requires  0.11-5 [Installed]                                     extra
406804-    Checks to see if the module can be loaded
406850:perl-term-readkey  2.38-8 [Installed]                                      extra
406931-    Provides simple control over terminal driver modes
406986:perl-set-intspan  1.19-8 [Installed]                                       extra
407067-    Manages sets of integers, newsrc style
407110:perl-readonly  2.05-4 [Installed]                                          extra
407191-    Facility for creating read-only scalars, arrays, hashes
407251:perl-proc-processtable  0.636-1 [Installed]                                extra
407332-    Provides a consistent interface to process table information.
407398:perl-pdf-builder  3.025-1 [Installed]                                      extra
407479-    Facilitates the creation and modification of PDF files
407538:perl-pdf-api2  2.044-1 [Installed]                                         extra
407619-    Faciliates the creation and modification of PDF files
407677:perl-path-tiny  0.144-2 [Installed]                                        extra
407758-    File path utility
407780:perl-net-http  6.23-2 [Installed]                                          extra
407861-    Low-level HTTP connection (client)
407900:perl-module-pluggable  5.2-9 [Installed]                                   extra
407981-    automatically give your module the ability to have plugins
408044:perl-mailtools  2.21-7 [Installed]                                         extra
408125-    Various e-mail related modules
408160:perl-lwp-mediatypes  6.04-4 [Installed]                                    extra
408241-    Guess the media type of a file or a URL
408285:perl-log-log4perl  1.57-2 [Installed]                                      extra
408366-    Log4j implementation for Perl
408400:perl-local-lib  2.000029-2 [Installed]                                     extra
408481-    Create and use a local lib/ for perl modules with PERL5LIB
408544:perl-locale-gettext  1.07-14 [Installed]                                   extra
408625-    Permits access from Perl to the gettext() family of functions
408691:perl-locale-codes  3.73-2 [Installed]                                      extra
408772-    Distribution of modules to handle locale codes
408823:perl-list-moreutils-xs  0.430-4 [Installed]                                extra
408904-    Provide the stuff missing in List::Util
408948:perl-list-moreutils  0.430-4 [Installed]                                   extra
409029-    Provide the stuff missing in List::Util
409073:perl-libwww  6.67-2 [Installed]                                            extra
409154-    The World-Wide Web library for Perl
409194:perl-libintl-perl  1.33-2 [Installed]                                      extra
409275-    Perl Module: Localization support
409313:perl-ipc-run3  0.048-11 [Installed]                                        extra
409394-    run a subprocess with input/ouput redirection
409444:perl-io-string  1.08-12 [Installed]                                        extra
409525-    IO::File interface for in-core strings
409568:perl-io-html  1.004-4 [Installed]                                          extra
409649-    Open an HTML file with automatic charset detection
409704:perl-image-sane  5-5 [Installed]                                           extra
409785-    Perl extension for the SANE (Scanner Access Now Easy) Project
409851:perl-image-exiftool  12.60-3 [Installed]                                   extra
409932-    Reader and rewriter of EXIF information that supports raw files
410000:perl-http-negotiate  6.01-12 [Installed]                                   extra
410081-    Choose a variant to serve
410111:perl-http-message  6.44-2 [Installed]                                      extra
410192-    HTTP style messages
410216:perl-http-date  6.06-1 [Installed]                                         extra
410297-    Date conversion routines
410326:perl-http-daemon  6.16-2 [Installed]                                       extra
410407-    Simple http server class
410436:perl-http-cookies  6.10-4 [Installed]                                      extra
410517-    HTTP cookie jars
410538:perl-html-tagset  3.20-14 [Installed]                                      extra
410619-    Data tables useful in parsing HTML
410658:perl-html-parser  3.81-2 [Installed]                                       extra
410739-    Perl HTML parser class
410766:perl-gtk3-simplelist  0.21-1 [Installed]                                   extra
410847-    Perl interface to the Gtk3's complex MVC list widget
410904:perl-gtk3-imageview  10-3 [Installed]                                      extra
410985-    Image viewer widget for Gtk3
411018:perl-gtk3  0.038-4 [Installed]                                             extra
411099-    Perl interface to the 3.x series of the GTK+ toolkit
411156:perl-graphics-tiff  20-2 [Installed]                                       extra
411237-    Extension for the libtiff library
411275:perl-goocanvas2  0.06-6 [Installed]                                        extra
411356-    Perl bindings for GooCanvas2 widget using Glib::Object::Introspection
411430:perl-glib-object-introspection  0.050-3 [Installed]                        extra
411511-    Dynamically create Perl language bindings
411557:perl-font-ttf  1.06-5 [Installed]                                          extra
411638-    Font::TTF - Perl module for TrueType font hacking
411692:perl-file-which  1.27-3 [Installed]                                        extra
411773-    Portable implementation of which
411810:perl-filesys-df  0.92-14 [Installed]                                       extra
411891-    Perl extension for filesystem disk space information
411948:perl-file-pushd  1.016-6 [Installed]                                       extra
412029-    Change directory temporarily for a limited scope
412082:perl-file-path-tiny  1.0-2 [Installed]                                     extra
412163-    recursive versions of mkdir() and rmdir() without as much overhead as
412237-    File::Path
412252:perl-file-listing  6.16-2 [Installed]                                      extra
412333-    parse directory listing
412361:perl-file-chdir  0.1011-5 [Installed]                                      extra
412442-    a more sensible way to change directories
412488:perl-ffi-checklib  0.31-3 [Installed]                                      extra
412569-    Check that a library is available for FFI
412615:perl-extutils-pkgconfig  1.16-11 [Installed]                               extra
412696-    The Perl Pkgconfig module
412726:perl-extutils-depends  0.8001-4 [Installed]                                extra
412807-    The Perl depends module
412835:perl-exporter-tiny  1.006002-2 [Installed]                                 extra
412916-    an exporter with the features of Sub::Exporter but only core
412981-    dependencies
412998:perl-exception-class  1.45-3 [Installed]                                   extra
413079-    A module that allows you to declare real exception classes in Perl
413150:perl-error  0.17029-5 [Installed]                                          extra
413231-    Perl/CPAN Error module - Error/exception handling in an OO-ish way
413302:perl-encode-locale  1.05-11 [Installed]                                    extra
413383-    Determine the locale encoding
413417:perl-devel-stacktrace  2.04-3 [Installed]                                  extra
413498-    An object representing a stack trace
413539:perl-devel-patchperl  2.08-2 [Installed]                                   extra
413620-    Patch perl source a la Devel::PPPort's
413676:perl-dbi  1.643-6 [Installed]                                              extra
413757-    Database independent interface for Perl
413801:perl-date-calc  6.4-11 [Installed]                                         extra
413882-    Perl module for Gregorian calendar date calculations
413939:perl-data-uuid  1.226-4 [Installed]                                        extra
414020-    Globally/Universally Unique Identifiers (GUIDs/UUIDs)
414078:perl-cpan-perl-releases  5.20230820-1 [Installed]                          extra
414159-    Mapping Perl releases on CPAN to the location of the tarballs
414225:perl-config-general  2.65-2 [Installed]                                    extra
414306-    Generic Config Module
414332:perl-clone  0.46-2 [Installed]                                             extra
414413-    Recursive copy of nested objects.
414451:perl-class-data-inheritable  0.09-4 [Installed]                            extra
414532-    Inheritable, overridable class data
414572:perl-carp-clan  6.08-7 [Installed]                                         extra
414653-    Report errors from perspective of caller of a "clan" of modules
414721:perl-capture-tiny  0.48-7 [Installed]                                      extra
414802-    Capture STDOUT and STDERR from Perl, XS or external programs
414867:perl-cairo-gobject  1.005-2 [Installed]                                    extra
414948-    Integrate Cairo into the Glib type system
414994:perl-bit-vector  7.4-15 [Installed]                                        extra
415075-    Efficient bit vector, set of integers and "big int" math library
415144:perl-alien-libxml2  0.19-2 [Installed]                                     extra
415225-    Install the C libxml2 library on your system
415274:perl-alien-build  2.80-2 [Installed]                                       extra
415355-    Build external dependencies for use in CPAN
415403:perl  5.38.0-1 [Installed]                                                  core
415484-    A highly capable, feature-rich programming language

Maybe there is a problem with perl on my system?

I’m only an occasional user of Perl, and on that basis it has never failed me, so I won’t make a guess of that nature.

Did you look for the gscan2pdf.desktop file as I suggested two months ago? Beyond that, I have nothing useful to suggest. Someone else might, though. @cscs @Mirdarthos .

Y’know, this could have been done simply with:

pamac search --installed perl

And now, I’ll be off again!


Except for the above :point_up: I got nuffink…sorry


That’s not much.

EXACTLY equal to zero. Or 0. Or even 0

Not sure why. But it is working again.

Nothing happens with magical intervention. No doubt whichever offending package was updated as a matter of course; whether that be gscan2pdf, or one of its dependents. Cheers.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.