MATLAB License Manager Linux (binaries not found)

After going through the LM install procedure (with default install location) the startup scripts cannot seem to access the binaries.
I receive the following error:
Checking license file for local hostname and local hostid . . .
/usr/local/MATLAB/R2022a/etc/lmhostid: 332: /usr/local/MATLAB/R2022a/etc/glnxa64/lmhostid: not found
All the binaries are located in that directory appropriately:
root@licenses:/usr/local/MATLAB/R2022a/etc/glnxa64# ls -al
total 17224
drwxr-xr-x 2 root root 4096 Mar 31 13:35 .
drwxr-xr-x 4 root root 4096 Mar 31 13:37 ..
-r-xr-xr-x 1 root root 1064448 Nov 23 02:04 keycheck
-r-xr-xr-x 1 root root 1263896 Nov 13 00:32 lmborrow
-r-xr-xr-x 1 root root 1263896 Nov 13 00:32 lmdiag
-r-xr-xr-x 1 root root 1263896 Nov 13 00:32 lmdown
-r-xr-xr-x 1 root root 1282616 Nov 12 22:34 lmgrd
-r-xr-xr-x 1 root root 1263896 Nov 13 00:32 lmhostid
-r-xr-xr-x 1 root root 1263896 Nov 13 00:32 lmremove
-r-xr-xr-x 1 root root 1263896 Nov 13 00:32 lmreread
-r-xr-xr-x 1 root root 1263896 Nov 13 00:32 lmstat
-r-xr-xr-x 1 root root 1263896 Nov 13 00:32 lmswitchr
-r-xr-xr-x 1 root root 1263896 Nov 12 22:34 lmutil
-r-xr-xr-x 1 root root 1263896 Nov 13 00:32 lmver
-r-xr-xr-x 1 root root 1595936 Nov 12 22:34 MLM
-r-xr-xr-x 1 root root 1023128 Nov 23 02:04 ParallelServerLicenseCheck
Running lmgrd from $MATLAB/etc/glxna64 also results in a strange error message:
root@licenses:/usr/local/MATLAB/R2022a/etc/glnxa64# ./lmgrd
bash: ./lmgrd: No such file or directory
This is a VM running Ubuntu 20.04.1 x86_64.
Ideas?

5 Comments

A long shot... but is it possible that those files are located on a mount point that is marked noexec? (USB flash drives tend to be mounted noexec as a security measure.)
Good idea, but all files are on local storage to the VM. Thanks for the reply!
@Nathan Metheny I would suggest contacting MathWorks Technical Support (support@mathworks.com) to help resolve this.
Thanks! As opposed to just grabbing the LM install, I'm going to do a LM install from the full ISO to see if that resolves it. I will contact support proper after if that does not resolve the issue.
It did not resolve the issue. Thanks for your suggestion.

Sign in to comment.

Answers (2)

TLDR: sudo apt install lsb-core
when you look at the FlexLM files, they reference a specific library:
etc/glnxa64$ file *
keycheck: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=64e97478a60a6f9d0b496f1f02c1fb51a73809fc, for GNU/Linux 3.2.0, stripped
lmborrow: 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
.....
on my system /lib64/ld-linux-x86-64.so.2 existed but /lib64/ld-lsb-x86-64.so.3 does not
Installing lsb-core fixes that. You may be able to get away with just creating a symlink to ld-linux-x86-64.so.2

1 Comment

Hi,
Debian has discontinued LSB support in 2015.
I confirm that making the symlink did the trick. Thank you @Matt Forrest
ln -s /lib64/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3

Sign in to comment.

I have the same problem, on Ubuntu 24.04.
I followed all your advice but the problem was not solved.

1 Comment

Solved it,
I created a new link to ld-linux-x86-64.so.2 in /usr/lib64 directory:
ld-linux-x86-64.so.2 -> ../lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
ld-lsb-x86-64.so.3 -> /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2

Sign in to comment.

Categories

Products

Release

R2022a

Asked:

on 31 Mar 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!