How do I uninstall and reinstall MathWorks Service Host?

8.074 visualizzazioni (ultimi 30 giorni)

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 23 Apr 2024 alle 0:00
Modificato: MathWorks Support Team circa 7 ore fa
The MathWorks Service Host provides services which are required by other MathWorks products, such as licensing functionality for MATLAB and web service functionality for MATLAB Drive Connector. Uninstalling and reinstalling MathWorks Service Host may be necessary if you are encountering startup issues with either of these. The steps below should help you accomplish this.
Note: MATLAB itself should not be uninstalled and reinstalled when performing the workflows below.

 

1. End the process
Windows
  1. Open Task Manager. This can be done by pressing Ctrl+Shift+Esc on your keyboard.
    • If you are using Windows 10 and do not see tabs such as "Processes" & "Performance", select "More details" in the bottom left corner of the Window. You should then navigate to the "Details" tab near the top of the window.
    • If you are using Windows 11, on the left side of Task Manager, select the icon that looks like 3 tiny boxes. This will bring you to the "Processes" tab.
  2. Find any tasks that are related to "MATLAB" or "MathWorks". You may be able to find these more easily by searching in the search bar for "MathWorks" and "MATLAB".
  3. Highlight these and select "End Task" in the bottom right corner of the Window
macOS
  1. Open the app Terminal by searching for it Spotlight Search. Spotlight Search is the magnifying glass in the top right corner of your Mac OS screen.
  2. Type in sudo killall MathWorksServiceHost
  3. Type in your Mac's account password if prompted
  4. Press enter/return on your keyboard
Linux
  1. Open Terminal. Doing this will vary depending on your Linux distribution
  2. Type in killall MathWorksServiceHost
  3. Press enter on your keyboard
If needed, run the command above as root, if you are unable to end the process as the non-root user.

 

2. Uninstall the MathWorks Service Host
Windows
  1. Press Windows Key+R on your keyboard.
  2. Type in %localappdata%\MathWorks\ServiceHost and then press Enter on your keyboard.
  3. You should now be in a folder named "ServiceHost". Delete all the contents found in this folder.
  4. Press Windows Key+R on your keyboard
  5. Type in %localappdata%\MathWorks\MATLABConnector and then press Enter on your keyboard.
  6. You should now be in a folder named "MATLABConnector". Delete all the contents found in this folder.
macOS
  1. Open Finder
  2. In the top left corner of your screen, you should see buttons such as "File, Edit, View". Select "Go".
  3. Select the second-to-last option "Go to Folder..."
  4. Type in the following: ~/Library/Application Support/MathWorks
  5. Press return/enter on your keyboard.
  6. Delete the MATLABConnector folder.
  7. Delete the ServiceHost folder.
  8. Empty your Trash.
Linux
Please note that some of the folders that you will be navigating into are hidden folders. You may need to perform additional commands or enable the ability to view hidden folders with your file explorer. Doing this will vary depending on your Linux distribution and file explorer used.
  1. Delete the directories listed below, including their contents:
  • ~/.MathWorks/ServiceHost/
  • ~/.MATLABConnector

 

3. Reinstall the MathWorks Service Host
All Operating Systems
  1. Download the latest MATLAB Drive Connector Installer from this link: Install MATLAB Drive Connector
  2. Run the file that is downloaded.
  3. Allow the installer to finish installing MathWorks Service Host.
  4. If you are prompted to setup MATLAB Drive Connector, you may quit this window, unless you plan to use MATLAB Drive.
You may try to launch MATLAB to see if your issue has been resolved.

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by