Questions tagged [patchelf]

Patchelf is a program which can change the dynamic linking parameters within an executable. Use this tag on questions which can be solved using the patchelf utility.

11 questions
17
votes
1 answer

Using alternate libc with ld-linux.so hacks; cleaner method?

I have a legacy system with a very old glibc, which we can't upgrade without incurring a mountain of testing/validation work. I have needed to run newer programs (such as Java 1.7) on that system several times now. I opted for a chroot solution,…
dataless
  • 1,689
  • 1
  • 13
  • 13
15
votes
2 answers

Cannot execute binary in NixOS - No such file or directory

I tried to install the current oracle jre on a VM running NixOS. Now the following happens: [michas@cc:~]$ tar xvzf jre-7u40-linux-x64.tar.gz |grep bin/java jre1.7.0_40/bin/javaws jre1.7.0_40/bin/java_vm jre1.7.0_40/bin/java [michas@cc:~]$ ls -l…
michas
  • 21,190
  • 4
  • 63
  • 93
9
votes
2 answers

executing binary file: file not found

I know there are similar questions out there, but I haven't found a solution nor this exact case. The binary was built on Arch Linux using its GCC 4.7. The package works fine on the build system. The commands below were executed on: Linux…
rubenvb
  • 370
  • 1
  • 2
  • 14
6
votes
1 answer

Linux : Alternative of install_name_tool of MAC in CentOS

I am looking for alternative of install_name_tool of MAC in CentOS. Exactly I want to build MySQL on non default location. Also the shared libraries of the mysql binary should be on non default location and properly linked. I wasnt able to link…
John D
  • 61
  • 1
  • 3
5
votes
0 answers

installing .net core sdk 2.0 on NixOs (can't find templates)

Resume I am currently trying to install dot-net-core-sdk 2.0 with the Nix package manager in NixOs. I am very new to both NixOs, Nix, bash scripting and stuff like ELF. Yet I think I've successfully managed to create a valid Nix package description…
Michelrandahl
  • 203
  • 1
  • 8
2
votes
0 answers

auto-patchelf could not satisfy dependency libQt5SerialPort.so.5

I am trying to run Qt Design Studio 2.3.1 Community on NixOS. My nix derivation code: flake.nix: { description = "Qt Design Studio"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; }; …
satk0
  • 41
  • 4
2
votes
1 answer

Nix -- how to use addAutoPatchelfSearchPath correctly?

I'm packaging a tool that includes some shared objects natively, and I think the right approach to add those objects to the rpath is to use the addAutoPatchelfSearchPath function to the installPhase of my Nix expression, but it's not picking up the…
aionos242
  • 21
  • 1
1
vote
1 answer

Cannot exceute binary: required file not found

I see that there are other questions like this out there, but the answers there did not work for me. I am using I downloaded the Julia 1.9.2 (Linux, x86-64, glibc) prebuilt binary and tried to execute the binary, but I get the following error. bash:…
loonatick
  • 141
  • 7
1
vote
1 answer

ldconfig creating links with strange names after patching libraries with patchelf?

I am patching several libraries on my development server to remove unneeded dependencies using the patchelf tool. These get packaged into an RPM and installed on my runtime system. After the install, ldconfig gets called, and strange links are…
swaggy p
  • 111
  • 3
1
vote
1 answer

Cannot chroot bash after setting RUNPATH in ld-linux-x86-64.so.2 with patchelf 0.6 and 0.8

I am testing how dynamic linking works with RUNPATH variable, and trying to run bash in a minimal chroot directory: $ find dir_chroot/ -type…
xealits
  • 2,093
  • 3
  • 19
  • 27
0
votes
0 answers

Usage of objcopy / elfedit to patchelf symbol (versions) in elf file

The context is as follows: on my o.s. there is (already) liba.so.v2 of "liba" which contains the string 'symbol_version-2' as the symbol version for its functions , e.g. functionX@version-2 (in my case, for ex. wrefresh@NCURSES6_5.0.19991023 in…
cg79
  • 11
  • 2