Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1025878 > unrolled thread

Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory

Started byLucio Crusca <lucio@sulweb.org>
First post2020-09-21 15:00 +0200
Last post2020-09-23 15:00 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory Lucio Crusca <lucio@sulweb.org> - 2020-09-21 15:00 +0200
    Bug#970681: [debian-mysql] Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory Faustin Lammler <faustin@fala.red> - 2020-09-23 12:30 +0200
      Bug#970681: [debian-mysql] Bug#970681: Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory Otto Kekäläinen <otto@debian.org> - 2020-09-23 15:00 +0200
        Bug#970681: [debian-mysql] Bug#970681: Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory Faustin Lammler <faustin@fala.red> - 2020-09-23 15:00 +0200

#1025878 — Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory

FromLucio Crusca <lucio@sulweb.org>
Date2020-09-21 15:00 +0200
SubjectBug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory
Message-ID<ARtAe-4D7-9@gated-at.bofh.it>
Package: mariadb-client-10.3
Version: 1:10.3.24-2
Severity: normal
File: /usr/bin/mytop

Dear Maintainer,

mytop does not start: `env` bails out with:

‘perl -w’: No such file or directory
use -[v]S to pass options in shebang lines



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (992, 'testing'), (991, 'unstable'), (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-10-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mariadb-client-10.3 depends on:
ii  debianutils               4.9.1
ii  libc6                     2.31-3
ii  libconfig-inifiles-perl   3.000003-1
ii  libgnutls30               3.6.15-4
ii  libstdc++6                10.2.0-7
ii  mariadb-client-core-10.3  1:10.3.24-2
ii  perl                      5.30.3-4
ii  zlib1g                    1:1.2.11.dfsg-2

Versions of packages mariadb-client-10.3 recommends:
ii  libdbd-mariadb-perl   1.21-1
ii  libdbi-perl           1.643-2
ii  libterm-readkey-perl  2.38-1+b1

mariadb-client-10.3 suggests no packages.

-- no debconf information

[toc] | [next] | [standalone]


#1026123 — Bug#970681: [debian-mysql] Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory

FromFaustin Lammler <faustin@fala.red>
Date2020-09-23 12:30 +0200
SubjectBug#970681: [debian-mysql] Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory
Message-ID<ASaca-5bp-7@gated-at.bofh.it>
In reply to#1025878

[Multipart message — attachments visible in raw view] — view raw

Control: forwarded -1 https://jira.mariadb.org/browse/MDEV-23697

Hi Lucio!
Thanks for your report.

Indeed:
| docker run --name test --privileged -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro fauust/docker-systemd:debian-sid
| docker exec -it test bash -c "apt update && apt -y install mariadb-server"
| docker exec -it test bash -c "systemctl start mariadb && mytop"
| /usr/bin/env: 'perl -w': No such file or directory
| /usr/bin/env: use -[v]S to pass options in shebang lines

Seems to be related with https://jira.mariadb.org/browse/MDEV-23697.

Workaround is to edit '/usr/bin/mytop' and replace:
| #!/usr/bin/env perl -w
with
| #!/usr/bin/env perl

But then there is a dependency problem:
| Unknown option: default-character-set
| install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.3 /usr/local/share/perl/5.30.3 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl) at (eval 21) line 3.
| Perhaps the DBD::mysql perl module hasn't been fully installed,
| or perhaps the capitalisation of 'mysql' isn't right.
| Available drivers: DBM, ExampleP, File, Gofer, MariaDB, Mem, Proxy, Sponge.
|  at /usr/bin/mytop line 291.

And you have to install 'libdbd-mysql-perl' packages:
| sudo apt install libdbd-mysql-perl

Faustin

[toc] | [prev] | [next] | [standalone]


#1026143 — Bug#970681: [debian-mysql] Bug#970681: Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory

FromOtto Kekäläinen <otto@debian.org>
Date2020-09-23 15:00 +0200
SubjectBug#970681: [debian-mysql] Bug#970681: Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory
Message-ID<AScxj-6t0-3@gated-at.bofh.it>
In reply to#1026123
Hello!

Just for the record, the perl -w option is to print out warnings and
should not be used in production:

https://manpages.debian.org/buster/perl-base/perl.1.en.html#DIAGNOSTICS
       The "use warnings" pragma produces some lovely diagnostics. One
can also use the -w flag,
       but its use is normally discouraged, because it gets applied to
all executed Perl code,
       including that not under your control.

In 10.5.5 mytop is not using -w anymore. Only mariadb-report and some
test suite scripts and ColumnStore use -w (although ColumnStore is
alpha, so printing warnings there is I guess intentional).


The error "Unknown option: default-character-set" is also fixed in
MariaDB 10.5.5 as the /etc/mysql/mariadb.conf.d/50-client.cnf no
longer defines anything about charsets or utf8mb4 (it relies on the
server to enforce utf8mb4 anyway).

[toc] | [prev] | [next] | [standalone]


#1026144 — Bug#970681: [debian-mysql] Bug#970681: Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory

FromFaustin Lammler <faustin@fala.red>
Date2020-09-23 15:00 +0200
SubjectBug#970681: [debian-mysql] Bug#970681: Bug#970681: /usr/bin/mytop: mytop fails to start: ‘perl -w’: No such file or directory
Message-ID<AScxj-6t0-1@gated-at.bofh.it>
In reply to#1026143

[Multipart message — attachments visible in raw view] — view raw

Hi Otto!

Otto Kekäläinen <otto@debian.org>,
23/09/2020 – 15:52:34 (+0300):

> The error "Unknown option: default-character-set" is also fixed in
> MariaDB 10.5.5 as the /etc/mysql/mariadb.conf.d/50-client.cnf no
> longer defines anything about charsets or utf8mb4 (it relies on the
> server to enforce utf8mb4 anyway).
Great!

Do you have any idea how to handle the dependency problem on
libdbd-mysql-perl then?

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web