Menu

#4582 package-updates: perl path

1.740
closed-fixed
nobody
None
3
2015-04-12
2015-04-11
Colin Brace
No

Hello,

The update notification feature of webmin isn't working under FreeBSD. The following error message is generated in the mail it sends:

/usr/local/bin/bash: /usr/local/etc/webmin/package-updates/update.pl: /usr/bin/perl: bad interpreter: No such file or directory

On my FreeBSD server, perl is here: /usr/local/bin/perl

Thanks

Discussion

  • Jamie Cameron

    Jamie Cameron - 2015-04-11

    What does the /etc/webmin/perl-path file contain on your system?

     
  • Colin Brace

    Colin Brace - 2015-04-11

    That file doesn't exist on my server:
    $ cat /etc/webmin/perl-path
    cat: /etc/webmin/perl-path: No such file or directory

    It's here:
    $ cat /usr/local/etc/webmin/perl-path
    /usr/bin/perl

    HTH

     
  • Jamie Cameron

    Jamie Cameron - 2015-04-11

    Ok, that's a problem - maybe perl was at /usr/bin/perl when Webmin was originally installed?

    Anyway, the fix is to edit that file to use the correct path, and also any .pl files under /usr/local/etc/webmin.

     
  • Colin Brace

    Colin Brace - 2015-04-12

    Fixed, thanks!

    I just checked on another FreeBSD server, and it does have a perl binary here: /usr/bin/perl

    I'll ask around, but the first thought that comes to mind is that there a perl interpreter included in the base OS, but if you move to a new perl release (ie, 19 -> 20), it gets installed under the /usr/local/ prefix.

    I should have been a little more circumspect in my OP: webmin wasn't broken under FreeBSD, but just on one particular server I have. The update notification function works fine on my other VPSs which all run debian, which is why I kinda jumped the gun, for which my apologies.

     
  • Jamie Cameron

    Jamie Cameron - 2015-04-12
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2015-04-12

    Ok, it sounds like the perl move was the cause of this.

     

Log in to post a comment.