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

Faustin Lammler faustin at fala.red
Wed Sep 23 11:11:32 BST 2020


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20200923/bf087d60/attachment.sig>


More information about the pkg-mysql-maint mailing list