innobackupex should not assume /usr/bin/perl

Bug #892393 reported by Devananda van der Veen on 2011-11-18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Stewart Smith
Stewart Smith
Stewart Smith

Bug Description

On hosts where perl is not installed in /usr/bin/, the innobackup script fails to find a valid interpreter.

[deva@host ]$ innobackupex --apply-log --use-mem=2G ./
bash: /usr/local/bin/innobackupex: /usr/bin/perl: bad interpreter: No such file or directory
[deva@host ]$ which perl

By comparison, all the percona-toolkit scripts work fine because they begin with:

#!/usr/bin/env perl

instead of:


Related branches

Stewart Smith (stewart) on 2011-11-21
Changed in percona-xtrabackup:
importance: Undecided → Low
status: New → In Progress
assignee: nobody → Stewart Smith (stewart)
Brian Fraser (fraserbn) wrote :

I wonder if using env perl is correct in any case -- for instance, my Linux box didn't have env originally. A nice point of comparison is Tom Christiansen's Unicode::Tussle, particularly the hacks that scripts like unichars ( ) go through to find a usable Perl.

But this is more of a nitpick than anything, so don't give it too much attention.

Stewart Smith (stewart) wrote :

Well... it works on all the platforms we officially support :)

Baron Schwartz (baron-xaprb) wrote :

It'll usually work on platforms we don't support, too. I've never seen it fail, personally. If it doesn't work, then I don't think any standard shebang line would work.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers