Lmutil needs lsb

Is it possible to run licensed software like Maple, Matlab, or Mathematica in Clear Linux? Many such programs use FlexNet command line utilities (lmutil) for license management. The lmutil command depends on lsb. But LSB is not available in Clear Linux. Should it be possible to install lsb-core from a deb or rpm? Should these apps be run in an Ubuntu or Debian docker container that provides LSB compatibility? Should the user somehow bundle these apps with their dependencies using mixer? What is the recommended method?

$ ldd ./lmutil
    linux-vdso.so.1 (0x00007ffc3b3ec000)
    libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fb09e864000)
    libm.so.6 => /usr/lib64/haswell/libm.so.6 (0x00007fb09e720000)
    libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fb09e705000)
    libc.so.6 => /usr/lib64/haswell/libc.so.6 (0x00007fb09e513000)
    libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fb09e50d000)
    /lib64/ld-lsb-x86-64.so.3 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fb09e8bd000)

Update 1: I was able to work around the LSB limitation by manually copying /usr/bin/lsb_release and /usr/lib64/ld-lsb-x86-64.so.3 from a gentoo linux install.

Update 2: lsb_release and a symbolic link from ld-lsb-x86-64.so.3 to ld-linux-x86-64.so.2 are sufficient for lmutil.

$ cd /lib64
$ sudo ln -s ld-linux-x86-64.so.2 ld-lsb-x86-64.so.3
$ ls -al /lib64/ | grep ld-linux
lrwxrwxrwx   2 root root        10 Jan 13  2017 ld-linux-x86-64.so.2 -> ld-2.30.so
lrwxrwxrwx   1 root root        20 Oct 18 17:35 ld-lsb-x86-64.so.3 -> ld-linux-x86-64.so.2

We can provide “fake” LSB compatibility, but Clear Linux isn’t LSB compatible per se, so that would sort of be cheating it a bit.

However, for many parts, Clear Linux (and almost all Linux OSs) are entirely compatible with LSB.

1 Like