nix icon indicating copy to clipboard operation
nix copied to clipboard

lmutil: No such file or directory - with lsb-release under nix-shell

Open farebord opened this issue 5 years ago • 5 comments

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.

farebord avatar Aug 30 '20 14:08 farebord

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.

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

prehonor avatar Sep 09 '20 07:09 prehonor

I marked this as stale due to inactivity. → More info

stale[bot] avatar Mar 16 '21 03:03 stale[bot]

I closed this issue due to inactivity. → More info

stale[bot] avatar Apr 19 '22 04:04 stale[bot]

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

peteut avatar Nov 21 '25 15:11 peteut

patchelf does the trick for me:

patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 `which <binary-to-patch>`

peteut avatar Nov 23 '25 12:11 peteut