How to install GCC piece by piece with GMP, MPFR, MPC, ELF, without shared libraries?

The Easy Way If you’re a typical developer, you can install the easy way, using instructions at http://gcc.gnu.org/wiki/InstallingGCC or your system package manager such as: apt install gcc # for Debian, Ubuntu, etc. yum install gcc # for RedHat, CentOS, etc. brew install gcc # for Mac OS X The Hard Way GCC says the … Read more

CentOS 64 bit bad ELF interpreter

You’re on a 64-bit system, and don’t have 32-bit library support installed. To install (baseline) support for 32-bit executables (if you don’t use sudo in your setup read note below) Most desktop Linux systems in the Fedora/Red Hat family: pkcon install glibc.i686 Possibly some desktop Debian/Ubuntu systems?: pkcon install ia32-libs Fedora or newer Red Hat, … Read more

Determine direct shared object dependencies of a Linux binary?

You can use readelf to explore the ELF headers. readelf -d will list the direct dependencies as NEEDED sections. $ readelf -d elfbin Dynamic section at offset 0xe30 contains 22 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libssl.so.1.0.0] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x400520 0x000000000000000d (FINI) 0x400758 …

tech