$ sudo ./install
/home/samir/Downloads/matlab/bin/glnxa64/install_unix: error while loading shared libraries: /home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1: file too short
What do you get as the output from the following?
file /home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1
and
ldd /home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1
samir@samirsvictus:~$ file /home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1
/home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1: ASCII text, with no line terminators
samir@samirsvictus:~$ ldd /home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1
not a dynamic executable
File is corrupt - you’ll need to download it again.
tried that. twice.
then tried downloading an older version. same thing.
Does the download site offer md5 or sha256 checksums against their products? Could be corrupt on the site in question, in which case you’ll want to inform them.
out of interest, what’s the reported size for that file.
ls -al /home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1
it offers releases. and an option to install or update.
after choosing you get a direct download link. the side menu next to the download button gives an options for mac and windows.
output of the command provided:
$ ls -al /home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1
ls: cannot access '/home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1': No such file or directory
Somewhat bizarre!
How about ls -al /home/samir/Downloads/matlab/bin/glnxa64/lib*
There is a much easier way to install matlab. It is actually a python package.
If you use pip install matlab as your user it will download the app, all its dependencies, and activate it for your use. It may be necessary to use dnf and install the python3-pip package first.
sorry i think i accidentally deleted the file you wanted to see.
here is the output
ls -al /home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1
-rwxrwxrwx. 1 samir samir 202408 Sep 1 09:07 /home/samir/Downloads/matlab/bin/glnxa64/libexpat.so.1
ok I’ll try that now.
You had me confused for a second! It was there and then gone.
You actually probably already have that same library installed in /usr/lib64, as it’s a frequently used library for parsing xml.
You could check by comparing the filesize of that file with any files of the same name you can find in /usr/lib64/. Iit will be symlinks to the currently installed version of that libexpat object file which is 1.11.0 at 174KB on my machine.
Try the python method as suggested, but if that fails you have nothing to lose by copying the equivalent file from /usr/lib64 version into your download folder and replacing that corrupt version.
The file may contain an error message.
it worked!!!
i got libexpat.so.1.11 from /usr/lib64/ and put it in the installation folder and it started installing now.
thank a lot for the help.
im sorry but i dont understand how is that helpful.
Sometimes you think you’ve successfully downloaded a file, but you look at the contents and what you actually got was the contents of a 404 error page or similar.
So if a file behaves unexpectedly (like yours, which showed as an ASCII file when you’d expect it to be a binary), it’s useful to cat it and see if it is just an error message rather than the real file.

