Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't locate lib/mtr_process.pl in @INC on Ubuntu 18.04.1 #885

Closed
spetrunia opened this issue Oct 15, 2018 · 1 comment
Closed

Can't locate lib/mtr_process.pl in @INC on Ubuntu 18.04.1 #885

spetrunia opened this issue Oct 15, 2018 · 1 comment
Assignees

Comments

@spetrunia
Copy link
Contributor

An attempt to run mysql-test-run on Ubuntu 18.04.1 produces this error:

Can't locate lib/mtr_process.pl in @inc (@inc contains: lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./mtr line 105.

This is because mysql-test-run.pl has this

use lib "lib";
...
require "lib/mtr_process.pl";

Older versions of Perl have "." (current directory) in their @INC by default. Newer Perl version do not have "." in in @INC, and so one gets the error.

@spetrunia spetrunia self-assigned this Oct 15, 2018
@spetrunia
Copy link
Contributor Author

spetrunia commented Oct 15, 2018

MariaDB's solution to this was to use

require "mtr_process.pl";

instead, see MariaDB/server@f77bd5f

MySQL 8.0 has this:

push @INC, ".";

which also fixes the problem

spetrunia added a commit to spetrunia/mysql-5.6 that referenced this issue Oct 15, 2018
… 18.04.1

Add "." to @inc array like upstream does.
abhinav04sharma pushed a commit to abhinav04sharma/mysql-5.6 that referenced this issue Nov 29, 2018
Summary:
Change is needed in MySQL 5.6 and 5.7 as well.

Should resolve facebook#885.

Test Plan: mtr

Reviewers: mung, rtm

Reviewed By: mung

Subscribers: butterflybot, aubertg, webscalesql-eng@fb.com

Differential Revision: https://phabricator.intern.facebook.com/D10407251

Tags: perl, aubertg

Signature: 10407251:1539714602:3fcc6db698efb7bc8e895daa5661edab30edf0f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant