Matlab installation error

2 views (last 30 days)
Murali Mohan
Murali Mohan on 9 Jan 2012
Answered: Adithya on 27 Apr 2023
Hi,
Matlab Error while installing on ubuntu, "There is no TEMP directory, please set up a TEMP directory and re-start the installer."
Thanks for the help.
Regards, Murali
  2 Comments
Daniel Shub
Daniel Shub on 9 Jan 2012
Are you running the installer as root/sudo?
Murali Mohan
Murali Mohan on 9 Jan 2012
running as sudo.

Sign in to comment.

Answers (1)

Adithya
Adithya on 27 Apr 2023
The "There is no TEMP directory, please set up a TEMP directory and re-start the installer" error message in MATLAB usually occurs when the installer cannot find the temporary directory on your Ubuntu system. Here are the steps to resolve this issue:
  1. Open the Terminal on your Ubuntu system.
  2. Type "sudo mkdir /tmp" (without the quotes) and press Enter. This command will create a temporary directory named "tmp" in the root directory of your system.
  3. Type "sudo chmod a+rwx /tmp" (without the quotes) and press Enter. This command will grant read, write, and execute permissions to all users on the "tmp" directory.
  4. Close the Terminal and restart the MATLAB installer.
The MATLAB installer should now be able to find the temporary directory and continue with the installation process. If you still encounter the same error message after following these steps, you may want to check that you have the necessary permissions to create and modify files and directories on your Ubuntu system.

Categories

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

Community Treasure Hunt

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

Start Hunting!