./install in terminal gives error "sudo: ./install: command not found"

I want to install Matlab in Ubuntu. I downloaded the latest version of matlab software, unziped, In the terminal chaged the current directory to the file where i extracted the matlab installation file. I tried the command " sudo ./install" it gives following error "sudo: ./install: command not found" I also observed, there is no file name install in the installation folder

8 Comments

I got command not found, even after using install.sh
I corrected the mistake, I was downloading windows installation file. Thanks
If ./install exists in your current directory, and you are using Linux, but sudo ./install says that the command is not found, then you might be accessing a filesystem that has the no-execute flag set. In that case you can try
sudo sh ./install
it still says permission denied,
./install: 1: exec: /root/matlab_R2024b_Linux/bin/linux-arm-64/install_unix_legacy: not found
root@395e5367ea7a:~/matlab_R2024b_Linux# cd bin
root@395e5367ea7a:~/matlab_R2024b_Linux/bin# cd glnxa64/
install_unix_legacy is not supported, looks like they want you to figure this out your self, anything without GUI is no longer supported, they have moved all these legacy files away.

Sign in to comment.

Answers (1)

it says 'sh: 0: Can't open ./install'

10 Comments

Does install exist in the current directory? What permissions does it have?
No, there is not any install directory
Please, has anyone been able to solve this problem?
In my case, I got "sudo: ./install: command not found" when running "sudo ./install". Then, I tried " sudo sh ./install" as recommended above, but it still did not work "./install: 1: exec: /home/gaofei/Matlab_setup/setup/matlab2020a/bin/glnxa64/install_unix: Permission denied".
I am trying to install Matlab 2020a on a Linux server
Please, any suggestions would be highly appreciated.
@Patrice Monkam is that file system mounted with the noexec flag?
For example is a USB thumb drive mounted there, or a disk image? USB thumb drives tend to automatically mount with noexec .
@Walter Roberson Sorry, I am not sure whether I understood you very well. Actually, the downloaded file is in iso format (that could be seen as CD). I simply unzipped the content to my current directory. I had installed it before, but on windows operating system.
I have tried various tricks based on online contents, but all in vain. I have been stuck here for almost a day now.
This is what I am getting now as error.
terminate called after throwing an instance of 'std::runtime_error'
what(): Unable to launch the MATLABWindow application
Aborted
after running
sudo sh ./install
I recommend contacting Mathworks for free installation assistance.
@Walter Roberson Thank you very much for your time and suggestions! I have submitted a request, still waiting for their reply.
In the meantime, anything to try while waiting?
Could still be -noexec problem or needs
sudo chmod -r ugo+x .
The final period is part of the command
Dear Mr. @Walter Roberson, I am very grateful for your time and help. It seems like the problem was from the way I extracted the installation files from the MATLAB ISO file downloaded online. I had to mount the iso file following the steps in this link.
Then, I activated the installed Matlab following this link
It took me almost three days. I will now proceed with installing other tools and packages.
I am sharing this in case it might help others.
Regards,

Sign in to comment.

Categories

Asked:

on 16 Sep 2018

Commented:

on 18 Apr 2025

Community Treasure Hunt

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

Start Hunting!