MATLAB License Manager Linux (binaries not found)

28 views (last 30 days)
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
Nathan Metheny
Nathan Metheny on 6 Apr 2022
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.
Nathan Metheny
Nathan Metheny on 6 Apr 2022
It did not resolve the issue. Thanks for your suggestion.

Sign in to comment.

Answers (2)

Matt Forrest
Matt Forrest on 21 Apr 2022
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
Maël Jeuffrard
Maël Jeuffrard on 26 Aug 2022
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.


Stefano Angelone
Stefano Angelone on 5 Jun 2024
I have the same problem, on Ubuntu 24.04.
I followed all your advice but the problem was not solved.
  1 Comment
Stefano Angelone
Stefano Angelone on 6 Jun 2024
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

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!