Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Perl won't execute - "-bash: /usr/bin/perl: cannot execute binary file"

Featured Replies

I'm trying to run the Logitech Media Server plugin on a relatively new install of beta 12, and perl won't execute.  The file type is ELF 32-bit LSB executable, but it just won't run.  Anyone know why?  The error message is:

-bash: /usr/bin/perl: cannot execute binary file

 

I get the same message for /usr/bin/perl5.10.1 which perl softlinks to. 

I would guess because Unraid 6 is 64-bit and does not include support for running 32-bit binaries.

  • Author

Isn't perl installed by default? Or could the lms plugin have installed the wrong one?

Isn't perl installed by default? Or could the lms plugin have installed the wrong one?

 

If the plugin installed any perl version, it likely messed up.

 

root@:/mnt/cache/downloads/extracted# cat /etc/unraid-version

version="6.0-beta12"

 

root@:/mnt/cache/downloads/extracted# which perl

/usr/bin/perl

 

root@:/mnt/cache/downloads/extracted# ls -al /usr/bin/perl

lrwxrwxrwx 1 root root 10 Nov 28 23:23 /usr/bin/perl -> perl5.18.1*

 

 

root@:/mnt/cache/downloads/extracted# perl --version

 

This is perl 5, version 18, subversion 1 (v5.18.1) built for x86_64-linux-thread-multi

 

Copyright 1987-2013, Larry Wall

 

Perl may be copied only under the terms of either the Artistic License or the

GNU General Public License, which may be found in the Perl 5 source kit.

 

Complete documentation for Perl, including FAQ lists, should be found on

this system using "man perl" or "perldoc perl".  If you have access to the

Internet, point your browser at http://www.perl.org/, the Perl Home Page.

 

root@:/mnt/cache/downloads/extracted# perl -V

Summary of my perl5 (revision 5 version 18 subversion 1) configuration:

 

  Platform:

    osname=linux, osvers=3.10.9, archname=x86_64-linux-thread-multi

    uname='linux hive64 3.10.9 #1 smp wed aug 21 14:50:51 cdt 2013 x86_64 amd phenom ii x6 1100t processor authenticamd gnulinux '

    config_args='-de -Dprefix=/usr -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 -Darchlib=/usr/lib64/perl5 -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib64/perl5/vendor_perl -Dscriptdir=/usr/bin -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dlibpth=/usr/local/lib64 /usr/lib64 /lib64 -Doptimize=-O2 -fPIC -Dusethreads -Duseithreads -Duseshrplib -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Darchname=x86_64-linux'

    hint=recommended, useposix=true, d_sigaction=define

    useithreads=define, usemultiplicity=define

    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef

    use64bitint=define, use64bitall=define, uselongdouble=undef

    usemymalloc=n, bincompat5005=undef

  Compiler:

    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',

    optimize='-O2 -fPIC',

    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'

    ccversion='', gccversion='4.8.1', gccosandvers=''

    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678

    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16

    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8

    alignbytes=8, prototype=define

  Linker and Libraries:

    ld='cc', ldflags =' -fstack-protector'

    libpth=/usr/local/lib64 /usr/lib64 /lib64

    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc

    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc

    libc=/lib64/libc-2.17.so, so=so, useshrplib=true, libperl=libperl.so

    gnulibc_version='2.17'

  Dynamic Linking:

    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE'

    cccdlflags='-fPIC', lddlflags='-shared -O2 -fPIC -fstack-protector'

 

 

Characteristics of this binary (from libperl):

  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS

                        PERL_DONT_CREATE_GVSV

                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD

                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP

                        PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL

                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES

                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE

                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF

                        USE_REENTRANT_API

  Built under linux

  Compiled at Sep  2 2013 18:11:30

  @INC:

    /usr/local/lib64/perl5

    /usr/local/share/perl5

    /usr/lib64/perl5/vendor_perl

    /usr/share/perl5/vendor_perl

    /usr/lib64/perl5

    /usr/share/perl5

    .

 

  • Author

Alright thanks, must have been the plugin.  Apparently there is a docker version for this, but I haven't delved into that yet.  Still I have to undo the damage this plugin did.  Great. 

Alright thanks, must have been the plugin.  Apparently there is a docker version for this, but I haven't delved into that yet.  Still I have to undo the damage this plugin did.  Great.

 

Remove the plugin and reboot.

Damage undone.

8)

 

  • Author

Cool, thanks. Time for me to figure out docker.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.