Zend Guard on Linux 64 - bad ELF interpreter

Follow
Applies To
Zend Guard
Linux 64-bit
 
Problem
When running Zend Guard CLI tools, you might get this error: bad ELF interpreter
 
Technical
By default, 32-bit libraries are not installed on 64-bit Linux systems.
 
You can install them on your system, or manually link to the executable if deploying by hand.
 
Ubuntu / Debian
Prepare the system for 32-bit apps:
sudo dpkg --add-architecture i386
sudo apt-get install lib32stdc++6
 
CentOS / RPM
Install one of these packages using yum:
compat-libstdc++
libstdc++.i686
 
You can verify the executable libraries by using ldd:
sudo ldd ./plugins/com.zend.guard.core.resources.linux.x86_6.0.0.201305051318/resources/zendenc54
        linux-gate.so.1 =>  (0xf77d7000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf77ba000)
        libm.so.6 => /lib32/libm.so.6 (0xf7774000)
        libc.so.6 => /lib32/libc.so.6 (0xf75c9000)
 
Once you have the 32-bit libraries linked in the system, you should be able to execute all Zend Guard CLI tools under the /resources directory.
 
_____
Tags: Guard, library, libraries, error, linux, 32-bit
Have more questions? Submit a request

Comments

Powered by Zendesk