lmutil: No such file or directory - with lsb-release under nix-shell
Describe the bug
I'm trying to install a software which relies heavily in the lmutil. This one needs lsb-release which I have installed. The issue is whether I run lmutil under env containing lsb-release or not it returns me the same message: lmutil: No such file or directory.
I've tried many different things to avoid this error, for eg: creating a custom buildFHSUserEnv that targets the script that calls lmutil and still returns the same error.
lmutil is a license manager utility which allows me to get to the hostid by calling lmutil lmhostid. Many different software uses it for example MapleSoft Maple.
Expected behavior
Calling lmutil lmhostid returns the host id requires to validates the license.
This is a weird bug because I have the required pkg installed (lsb-release) and this work perfectly in the archlinux environment.
Describe the bug
I'm trying to install a software which relies heavily in the lmutil. This one needs lsb-release which I have installed. The issue is whether I run lmutil under env containing lsb-release or not it returns me the same message: lmutil: No such file or directory.
I've tried many different things to avoid this error, for eg: creating a custom
buildFHSUserEnvthat targets the script that calls lmutil and still returns the same error.lmutil is a license manager utility which allows me to get to the
hostidby callinglmutil lmhostid. Many different software uses it for example MapleSoft Maple.Expected behavior
Calling
lmutil lmhostidreturns the host id requires to validates the license.This is a weird bug because I have the required pkg installed (lsb-release) and this work perfectly in the archlinux environment.
ldd /ah/prehonor/Programmers/maple2019/bin.X86_64_LINUX/lmutil linux-vdso.so.1 (0x00007fff13dcd000) libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f00fd558000) libm.so.6 => /usr/lib/libm.so.6 (0x00007f00fd418000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f00fd3fe000) libc.so.6 => /usr/lib/libc.so.6 (0x00007f00fd23f000) libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f00fd23a000) /lib64/ld-lsb-x86-64.so.3 => /nix/store/0f0fma765b9k8iq50g6b5xv633ydi3r3-glibc-multi-2.30/lib/ld-linux-x86-64.so.2 (0x00007f00fd57b000)
patchelf --interpreter /nix/store/0f0fma765b9k8iq50g6b5xv633ydi3r3-glibc-multi-2.30/lib/ld-linux-x86-64.so.2 /ah/prehonor/Programmers/maple2019/bin.X86_64_LINUX/lmutil
I have successfully installed MapleSoft Maple on Nixos by “buildFHSUserEnv”。It works well。 Here is my nix script :https://github.com/prehonor/nixscript/blob/master/mathmatica.nix
I marked this as stale due to inactivity. → More info
I closed this issue due to inactivity. → More info
Bumped into this today.
The interpreter path is missing: /lib64/ld-lsb-x86-64.so.3.
$ file `which lmutil`
...
lmutil: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-lsb-x86-64.so.3, for GNU/Linux 2.6.18, stripped
$file /lib64/ld-lsb-x86-64.so.3
/lib64/ld-lsb-x86-64.so.3: cannot open `/lib64/ld-lsb-x86-64.so.3' (No such file or directory)
Path must be patched to /lib64/ld-linux-x86-64.so.2:
file /lib64/ld-linux-x86-64.so.2
/lib64/ld-linux-x86-64.so.2: symbolic link to /nix/store/daamdpmaz2vjvna55ccrc30qw3qb8h6d-glibc-2.40-66/lib/ld-linux-x86-64.so.2
patchelf does the trick for me:
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 `which <binary-to-patch>`